/* Denthekim cookie-consent theme */
.lcc-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
    z-index: 2147483646 !important;
}

.lcc-modal {
    position: fixed !important;
    top: auto !important;
    right: 24px !important;
    bottom: 24px !important;
    left: auto !important;
    transform: none !important;
    width: min(440px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 28px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 24, 44, .34);
    background: #fff !important;
    color: #003057 !important;
    font-family: inherit;
    z-index: 2147483647 !important;
}

.lcc-modal__title {
    color: #003057 !important;
    font-weight: 700;
}

.lcc-text {
    color: #38546d !important;
    line-height: 1.6;
}

.lcc-text a {
    color: #003057 !important;
    font-weight: 700;
    text-decoration: underline;
}

.lcc-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lcc-modal .lcc-modal__actions > * {
    margin-top: 0;
}

.lcc-button,
.lcc-button.lcc-button--ghost {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #003057 !important;
    border-radius: 7px;
    background: #003057 !important;
    color: #fff !important;
    font-weight: 600;
}

.lcc-button:focus,
.lcc-button:hover {
    border-color: #00508f !important;
    background: #00508f !important;
    color: #fff !important;
}

.lcc-button.lcc-button--ghost {
    background: #003057 !important;
    color: #fff !important;
}

.lcc-button.lcc-button--ghost:focus,
.lcc-button.lcc-button--ghost:hover {
    background: #00508f !important;
    color: #fff !important;
}

.lcc-modal__close {
    color: #003057 !important;
}

.lcc-label {
    color: #003057 !important;
}

.lcc-label input {
    accent-color: #003057;
}

/* Keep the detailed preference dialog easy to read. */
.lcc-modal--settings {
    background: #fff !important;
    color: #003057 !important;
}

.lcc-modal--settings .lcc-modal__title,
.lcc-modal--settings .lcc-modal__close {
    color: #003057 !important;
}

.lcc-modal--settings .lcc-text {
    color: #38546d !important;
}

.lcc-modal--settings .lcc-text a {
    color: #003057 !important;
}

.rtl .lcc-modal {
    direction: rtl;
    text-align: right;
    right: auto !important;
    left: 24px !important;
}

.rtl .lcc-label > * {
    margin-right: 0;
    margin-left: 10px;
}

.rtl .lcc-modal .lcc-modal__close {
    right: auto;
    left: 0;
}

/* Privacy notice checkbox used in contact forms. */
.privacy-consent .form-check-label {
    color: #6c757d;
}

.privacy-consent .form-check-input {
    accent-color: #003057;
}

.privacy-consent .form-check-label a,
.privacy-consent .form-check-label a:visited,
.privacy-consent .form-check-label a:hover,
.privacy-consent .form-check-label a:focus,
.privacy-consent .form-check-label a:active {
    color: #003057;
    font-weight: 600;
    text-decoration: underline;
}

/* The homepage contact area has a dark background; use white legal text there. */
.home-page .privacy-consent .form-check-label,
.home-page .privacy-consent .form-check-label a,
.home-page .privacy-consent .form-check-label a:visited,
.home-page .privacy-consent .form-check-label a:hover,
.home-page .privacy-consent .form-check-label a:focus,
.home-page .privacy-consent .form-check-label a:active {
    color: #fff;
}

/* Contact Us uses a light surface, so retain the primary brand color. */
.contact-us-page .privacy-consent .form-check-label a,
.contact-us-page .privacy-consent .form-check-label a:visited,
.contact-us-page .privacy-consent .form-check-label a:hover,
.contact-us-page .privacy-consent .form-check-label a:focus,
.contact-us-page .privacy-consent .form-check-label a:active {
    color: #003057;
}

/* Newsletter: place consent directly below the email input while keeping the button aligned. */
.subscribe-form {
    align-items: flex-start;
}

.subscribe-form .subscribe-fields {
    flex: 1 1 70%;
    min-width: 0;
}

.subscribe-form .subscribe-fields .item {
    width: 100%;
}

.subscribe-form .subscribe-fields .privacy-consent {
    margin: 8px 0 0 !important;
}

.subscribe-form .subscribe-btn {
    align-self: flex-start;
}

@media (max-width: 575.98px) {
    .subscribe-form {
        flex-wrap: wrap;
    }

    .subscribe-form .subscribe-fields,
    .subscribe-form .subscribe-btn {
        flex-basis: 100%;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .lcc-modal {
        right: 16px !important;
        bottom: 16px !important;
        left: 16px !important;
        width: auto;
        padding: 22px 18px;
    }

    .rtl .lcc-modal {
        right: 16px !important;
        left: 16px !important;
    }

    .lcc-modal__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .lcc-button {
        width: 100%;
    }
}
