.cookie-popup {
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    background: #FFF;
    z-index: 10050;
    padding: 20px 0;
    font-family: Roboto, sans-serif;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}
.cookie-popup__content {
    margin-left: 2em;
    line-height: 20px;
    position: relative;
    width: 100%;
    padding: 8px 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.cookie-popup__info {
    -ms-flex-preferred-size: 65%;
    flex-basis: 65%;
}
.cookie-popup__action {
    width: auto;
    padding-left: 2%;
    padding-right: 2%;
    display: flex;
    justify-content: flex-end;
}
.cookie-filter {
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}
.cookie-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cookie-definition {
    text-decoration:underline;
    display: flex;
    align-items: center;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}
.cookie-definition:hover {
    opacity: 0.5;
}
.cookie-accept-all:hover {
    opacity: 0.5;
}
.cookie-popup__title {
    font-weight: 700;
    font-size: 18px;
    line-height: 20px;
    margin: 0;
    padding: 0;
    color: #fff;
}
.cookie-popup__text {
    color: #6c757d;
    font-size: 15px;
    display: inline-block;
    float: left;
    padding-right: 15px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    line-height: 1.6;
}
.cookie-popup__text a{
    color:#1f55c9 !Important;
    text-decoration:underline;
    font-weight: 700;
}
.cookie-accept-all{
    color: #fff !important;
    background-color: #1f55c9 !important;
    border-color: #1f55c9;
    border-style: solid;
    border-width: 1px;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: .375rem .75rem;
    font-size: 15px;
    line-height: 1.5;
    border-radius: .25rem;
    -webkit-transition: color .15s ease-in-out , background-color .15s ease-in-out , border-color .15s ease-in-out , -webkit-box-shadow .15s ease-in-out;
    transition: color .15s ease-in-out , background-color .15s ease-in-out , border-color .15s ease-in-out , -webkit-box-shadow .15s ease-in-out;
    transition: color .15s ease-in-out , background-color .15s ease-in-out , border-color .15s ease-in-out , box-shadow .15s ease-in-out;
    transition: color .15s ease-in-out , background-color .15s ease-in-out , border-color .15s ease-in-out , box-shadow .15s ease-in-out , -webkit-box-shadow .15s ease-in-out;
    cursor: pointer;
}
.cookie-definition {
    color: #1f55c9 !important;
}
.container-option-cookie {
    display: flex;
    justify-content: center;
    align-items: center;
}
.container-title-cookie {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
    margin-right: 10px;
}
.title-cookie {
    margin: 0;
    color: #0f2747;
    font-size: 14px;
    font-weight: 700;
}
.cookie-always-acepted {
    margin: 0;
    white-space: nowrap;
    color: #1f55c9;
    font-size: 13px;
    font-weight: 700;
}

#modalOptionsCookies {
    z-index: 10060;
}

#modalOptionsCookies.is-visible {
    display: block !important;
    opacity: 1;
}

 #modalOptionsCookies,
.cookie-modal-content {
    font-family: Roboto, sans-serif;
}

body.modal-open {
    overflow: hidden;
}

.cookie-modal-dialog {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 520px;
    max-width: 100%;
    margin: 0;
    height: 100vh;
    -webkit-transform: translate(0, 0) !important;
    -ms-transform: translate(0, 0) !important;
    -o-transform: translate(0, 0) !important;
    transform: translate(0, 0) !important;
}

.cookie-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 0;
    border-radius: 0 18px 18px 0;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 16, 17, 0.24);
}

.cookie-modal-logo {
    max-height: 36px;
    width: auto;
}

#modalOptionsCookies .close {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    color: #1f2a37;
    font-size: 30px;
    line-height: 1;
    opacity: 1;
}

#modalOptionsCookies .close:hover {
    opacity: 0.7;
}

#modalOptionsCookies .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 24px 24px 24px;
    color: #25313f;
}

#modalOptionsCookies .modal-body h4 {
    margin: 0 0 14px;
    color: #0f2747;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 30px;
}

#modalOptionsCookies .modal-body p {
    margin: 0 0 18px;
    color: #516172;
    font-size: 15px;
    line-height: 1.65;
}

#modalOptionsCookies .modal-body a {
    color: #1f55c9;
    text-decoration: underline;
}

#modalOptionsCookies .modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding: 18px 24px 24px;
    border-top: 1px solid #dbe3ee;
    background: #fff;
}

.cookie-reject {
    color: #fff !important;
    background-color: #007BFF !important;
    border: 1px solid #007BFF;
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: .375rem .75rem;
    font-size: 15px;
    line-height: 1.5;
    border-radius: .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;
}

.cookie-reject:hover {
    opacity: 0.85;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.card {
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 39, 71, 0.06);
}

.card-header {
    padding: 18px 20px;
    background: #fff;
}

.card-header .mb-0 {
    margin: 0;
}

.container-option-cookie,
.container-title-cookie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.container-option-cookie {
    width: 100%;
}

.container-title-cookie {
    margin: 0;
    padding: 18px 20px 0;
}

.btn.btn-link.js-cookie-collapse-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: #0f2747;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.btn.btn-link.js-cookie-collapse-toggle:hover,
.btn.btn-link.js-cookie-collapse-toggle:focus {
    color: #1f55c9;
    text-decoration: none;
    outline: none;
}

.btn.btn-link.js-cookie-collapse-toggle::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #edf3ff;
    color: #1f55c9;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.btn.btn-link.js-cookie-collapse-toggle[aria-expanded="true"]::after {
    content: "-";
}

.collapse {
    display: none;
}

.collapse.in {
    display: block;
}

.card-body {
    padding: 0 20px 20px;
    color: #516172;
    font-size: 15px;
    line-height: 1.65;
}

.custom-control {
    position: relative;
    flex-shrink: 0;
}

.custom-control-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-control-label {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    margin: 0;
    border-radius: 999px;
    background: #c7d2de;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-control-label::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 16, 17, 0.18);
    transition: transform 0.2s ease;
}

.custom-control-input:checked + .custom-control-label {
    background: #1f55c9;
}

.custom-control-input:checked + .custom-control-label::after {
    transform: translateX(22px);
}

.custom-control-input:focus + .custom-control-label {
    box-shadow: 0 0 0 3px rgba(31, 85, 201, 0.18);
}

.cookie-modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10055;
}

.cookie-modal-backdrop.is-visible {
    display: block;
}

@media (max-width: 768px) {
    .cookie-popup {
        padding: 16px 0;
    }

    .cookie-popup__content {
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-popup__info,
    .cookie-popup__action {
        width: 100%;
        flex-basis: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-modal-dialog {
        width: 100%;
        max-width: 100%;
    }

    #modalOptionsCookies .modal-header,
    #modalOptionsCookies .modal-body,
    #modalOptionsCookies .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    #modalOptionsCookies .modal-body h4 {
        font-size: 21px;
    }

    .container-option-cookie,
    .container-title-cookie {
        flex-direction: column;
        align-items: flex-start;
    }

    .title-cookie,
    .cookie-always-acepted {
        margin-right: 0;
    }

    .cookie-accept-all {
        width: 100%;
    }
}
