/* Ported from PrestaShop module: front.css */

.content-input input,
.content-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.content-input input {
    visibility: hidden;
    position: absolute;
    right: 0;
}

.content-input {
    position: relative;
    margin-bottom: 30px;
    padding: 5px 0 5px 60px;
    /* Padding for the toggle switch */
    display: block;
}

/* Switch Track */
.content-input input+i {
    background: #ff0000;
    border: 2px solid rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 0;
    top: 0;
}

/* Switch dimensions for specific types if needed, generic here */

/* Checkbox specific styling */
.content-input input[type=checkbox]+i {
    width: 52px;
    height: 30px;
    border-radius: 15px;
}

/* Switch Knob */
.content-input input[type=checkbox]+i:before {
    content: '';
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    z-index: 1;
    left: 0px;
    top: 0px;
    -webkit-box-shadow: 3px 0 3px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 3px 0 3px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

/* Checked state */
.content-input input[type=checkbox]:checked+i:before {
    left: 22px;
    -webkit-box-shadow: -3px 0 3px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 3px 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.content-input input[type=checkbox]:checked+i {
    background: #2AC176;
}

/* Optional text inside switch */
.content-input input[type=checkbox]+i:after {
    position: absolute;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    top: 8px;
    left: 4px;
    opacity: 0;
    transition: all 0.25s ease 0.25s;
}

.content-input input[type=checkbox]:checked+i:after {
    opacity: 1;
}

.modal-content {
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 795px) {
    .cookieDataLayer {
        font-size: 9px;
    }

    .modal-content {
        align-items: center;
        justify-content: center;
        margin-right: 1px;
        margin-left: 1px;
    }
}

@media (max-width: 980px) {
    .buttons.d-flex.flex-lg-row {
        flex-direction: column;
        align-items: stretch;
    }
}

a#politicaread {
    padding: 5px;
    background: white;
    color: black;
    cursor: pointer;
}

/* Fallback Modal Styles for non-Bootstrap themes */
#cookieDataLayer {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 100000;
    /* Extremely high z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    font-family: sans-serif;
    /* Basic font reset */
    line-height: 1.5;
}

#cookieDataLayer.show {
    display: flex !important;
    /* Flex to center */
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 600px;
    /* Sensible max width */
    margin: 1.75rem auto;
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 12px;
    outline: 0;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.modal-body {
    padding: 15px;
    color: #333;
    font-size: 14px;
}

.modal-footer {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0.5;
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Buttons & Utils Fallback */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

.btn-success {
    color: #fff;
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-outline-info {
    color: #17a2b8;
    background-color: transparent;
    background-image: none;
    border-color: #17a2b8;
}

.btn-outline-info:hover {
    color: #fff;
    background-color: #17a2b8;
}

.btn-outline-warning {
    color: #ffc107;
    background-color: transparent;
    background-image: none;
    border-color: #ffc107;
}

.btn-outline-warning:hover {
    color: #212529;
    background-color: #ffc107;
}

.d-flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-lg-row {
    flex-direction: row !important;
}

/* Simplify for mobile defaults? */
.justify-content-between {
    justify-content: space-between !important;
}

@media (max-width: 768px) {
    .flex-lg-row {
        flex-direction: column !important;
    }

    .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Collapse Logic via CSS (if JS toggle class 'show') */
.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

/* Fix for body scroll */
body.modal-open {
    overflow: hidden;
}