/*
==================================
   Cookie Consent Css
   (devrabiul/laravel-cookie-consent)
==================================
*/
:root {
    --cc-card-bg-color: var(--thm-white);
    --cc-card-text-color: var(--thm-black);
    --cc-button-bg-color-rgb: var(--thm-primary-color-rgb);
    --cc-button-bg-opacity: 1;
    --cc-button-text-color: var(--thm-white);
}

/* Banner */
.cookie-consent-root {
    font-family: var(--thm-font);
    border-radius: 0;
    border-top: 3px solid var(--thm-primary-color);
    box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.15);
}

.cookie-consent-root.consent-layout-box-wide {
    --cookie-consent-width: 34rem;
    --cookie-consent-bottom: 30px;
    inset-inline-start: 30px;
    inset-inline-end: auto;
}

.cookie-consent-content-container {
    padding: 30px 30px 25px;
}

.cookie-consent-content-title {
    position: relative;
    font-family: var(--thm-font-2);
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    color: var(--thm-heading-font-color);
    padding: 0 0 12px 42px;
}

.cookie-consent-content-title::before {
    content: "\f564";
    position: absolute;
    top: 2px;
    left: 0;
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 28px;
    line-height: 1;
    color: var(--thm-primary-color);
}

.cookie-consent-content-description,
.cookie-consent-content-description p {
    font-size: 15px;
    line-height: 25px;
    color: var(--thm-body-font-color);
    opacity: 1;
    margin: 0;
}

/* Buttons */
.cookie-consent-root .cookie-consent-button-container button,
.cookie-preferences-modal .primary-button {
    position: relative;
    padding: 8px 26px;
    border: 1px solid var(--thm-primary-color);
    border-radius: 0;
    font-family: var(--thm-font);
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    text-transform: capitalize;
    background-color: var(--thm-primary-color);
    color: var(--thm-white);
    transition: all 0.3s linear;
}

.cookie-consent-root .cookie-consent-button-container button:hover,
.cookie-preferences-modal .primary-button:hover,
.cookie-preferences-modal .primary-button:focus {
    border-color: var(--thm-black);
    background-color: var(--thm-black);
    color: var(--thm-white);
}

.cookie-consent-root .cookie-consent-button-container button.cookie-consent-reject,
.cookie-preferences-modal .primary-button.cookie-consent-reject {
    background-color: transparent;
    color: var(--thm-black);
    border-color: var(--thm-black);
}

.cookie-consent-root .cookie-consent-button-container button.cookie-consent-reject:hover,
.cookie-preferences-modal .primary-button.cookie-consent-reject:hover {
    background-color: var(--thm-black);
    color: var(--thm-white);
}

.cookie-consent-root .cookie-consent-button-container button.preferences-btn {
    padding-left: 0;
    padding-right: 0;
    border-color: transparent;
    background-color: transparent;
    color: var(--thm-primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cookie-consent-root .cookie-consent-button-container button.preferences-btn:hover {
    border-color: transparent;
    background-color: transparent;
    color: var(--thm-black);
}

/* Policy links */
.cookie-consent-links-container {
    padding: 12px 30px;
    text-align: start;
    background: var(--thm-gray-bg);
}

.cookie-consent-links-container ul {
    width: auto;
}

.cookie-consent-links-container a {
    font-size: 14px;
    color: var(--thm-black);
    transition: all 200ms linear;
}

.cookie-consent-links-container a:hover {
    color: var(--thm-primary-color);
    text-decoration: none;
}

/* Preferences modal */
.cookie-preferences-modal {
    font-family: var(--thm-font);
}

.cookie-preferences-modal-content {
    border-radius: 0;
    border-top: 3px solid var(--thm-primary-color);
}

.cookie-preferences-modal-header {
    padding: 20px 30px;
    border-bottom-color: var(--thm-border-color);
}

.cookie-preferences-modal-header h2 {
    font-family: var(--thm-font-2);
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    color: var(--thm-heading-font-color);
}

.cookie-preferences-modal-close {
    border-radius: 0;
    background-color: var(--thm-gray-bg);
    color: var(--thm-black);
}

.cookie-preferences-modal-close:hover,
.cookie-preferences-modal-close:focus {
    background-color: var(--thm-primary-color);
    color: var(--thm-white);
}

.cookie-preferences-modal-body {
    padding: 25px 30px;
}

.cookie-preferences-modal p {
    font-size: 15px;
    line-height: 25px;
    color: var(--thm-body-font-color);
    opacity: 1;
}

.cookie-category {
    border-bottom-color: var(--thm-border-color);
}

.cookie-category-header h3 {
    font-family: var(--thm-font-2);
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    color: var(--thm-heading-font-color);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--thm-primary-color);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: rgba(var(--thm-primary-color-rgb), .45);
}

.cookie-preferences-modal-footer {
    padding: 20px 30px;
    border-top-color: var(--thm-border-color);
}

/* Responsive */
@media only screen and (max-width: 767px) {
    .cookie-consent-root.consent-layout-box-wide {
        --cookie-consent-bottom: 15px;
        inset-inline-start: 15px;
        inset-inline-end: 15px;
    }

    .cookie-consent-content-container {
        padding: 25px 20px 20px;
    }

    .cookie-consent-content-title {
        font-size: 24px;
        line-height: 30px;
    }

    .cookie-consent-links-container {
        padding: 12px 20px;
    }
}

@media only screen and (max-width: 575px) {
    .cookie-consent-root.consent-layout-box-wide .cookie-consent-button-action {
        flex-direction: column;
    }
}

/* Keep after the layout overrides above, otherwise they win over the package's hide rule */
.cookie-consent-root.cookie-consent-hide {
    --cookie-consent-bottom: -150%;
    visibility: hidden;
    pointer-events: none;
}
