﻿#tmhPrivacyBanner.tmh-privacy-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    color: #111827;
    transform: translateY(110%);
    opacity: 0;
    transition:
        transform .45s cubic-bezier(.22,.61,.36,1),
        opacity .35s ease;
}

#tmhPrivacyBanner.tmh-privacy-banner.tmh-visible {
    transform: translateY(0);
    opacity: 1;
}

.tmh-privacy-banner__card {
    width: min(1200px, calc(100vw - 40px));
    margin: 0 auto 20px;
    padding: 24px 28px;
    background: #f8f9fb;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgb(0 0 0 / 22%);
}

.tmh-privacy-banner__text strong {
    display: block;
    margin-bottom: .65rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.tmh-privacy-banner__text p {
    margin: 0 0 .75rem;
    line-height: 1.55;
font-size:1rem;
opacity:.8;
}

.tmh-privacy-banner__link {
    display: inline-block;
    font-weight: 700;
    color: #111827;
    text-decoration: underline;
}

.tmh-privacy-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.tmh-privacy-banner button {
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    padding: .78rem 1.2rem;
    font-weight: 600;
    font-size: .92rem;
}

#tmhPrivacyAccept {
    background: #111827;
    color: #ffea00;
}

#tmhPrivacyReject,
#tmhPrivacyCustomize {
    background: #e5e7eb;
    color: #111827;
}


/* Preferences Modal Framework overlay */
#tmhPrivacyModal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}
.tmh-privacy-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.tmh-privacy-modal__container {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 550px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}
.tmh-privacy-modal__header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tmh-privacy-modal__header h2 { margin: 0; font-size: 1.25rem; color: #333; }
.tmh-privacy-modal__close {
    background: none; border: none; font-size: 1.75rem; cursor: pointer; color: #888;
}
.tmh-privacy-modal__body {
    padding: 20px;
    overflow-y: auto;
}
.tmh-privacy-modal__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.tmh-privacy-modal__row:last-child { border-bottom: none; }
.tmh-privacy-modal__info { padding-right: 20px; }
.tmh-privacy-modal__info strong { display: block; color: #222; font-size: 0.95rem; }
.tmh-privacy-modal__info p { margin: 4px 0 0 0; font-size: 0.85rem; color: #666; line-height: 1.3; }

/* Custom Checkbox Toggle Styles */
.tmh-privacy-modal__toggle-wrapper { position: relative; }
.tmh-privacy-modal__checkbox { display: none; }
.tmh-privacy-modal__toggle-label {
    display: block; width: 44px; height: 24px; background: #ccc; 
    border-radius: 12px; position: relative; cursor: pointer; transition: background 0.25s;
}
.tmh-privacy-modal__toggle-label::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
    background: #fff; border-radius: 50%; transition: left 0.25s;
}
.tmh-privacy-modal__checkbox:checked + .tmh-privacy-modal__toggle-label { background: #1c75bc; }
.tmh-privacy-modal__checkbox:checked + .tmh-privacy-modal__toggle-label::after { left: 22px; }
.tmh-privacy-modal__checkbox:disabled + .tmh-privacy-modal__toggle-label { background: #b0ccdb; cursor: not-allowed; }

.tmh-privacy-modal__footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}
/* Preferences Button Styling Fixes */
#tmhPrivacyCustomize {
    background: #e5e7eb;
    color: #111827;
    border: 2px solid transparent;
    font-weight: 600;
    text-transform: none;      /* Matches Reject/Accept text style */
    font-size: .92rem;         /* Matches global button size */
    padding: .78rem 1.2rem;    /* Matches global button padding */
    border-radius: 999px;      /* Matches capsule pill shapes */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#tmhPrivacyCustomize:hover,
#tmhPrivacyCustomize:focus {
    background-color: #d1d5db; /* Smooth slight darkening on hover */
    color: #111827;
}

/* Fix "Save Custom Choices" button styling inside the preferences modal pop-up box */
#tmhPrivacySaveCustom {
    background: #111827;
    color: #ffea00;
    border: 0;
    border-radius: 999px;
    padding: .78rem 1.6rem;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

#tmhPrivacySaveCustom:hover {
    background: #1f2937;
}

/* Ensure consistent flex alignment inside the action banner row wrapper */
.tmh-privacy-banner__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

/* Ensure all action buttons maintain a matched baseline height */
.tmh-privacy-banner__btn {
    font-family: inherit;
    line-height: 1.2;
}

@media (min-width: 900px) {
    .tmh-privacy-banner__card {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2rem;
        align-items: center;
    }

    .tmh-privacy-banner__actions {
        justify-content: flex-end;
        margin-top: 0;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .tmh-privacy-banner__card {
        width: calc(100vw - 24px);
        margin-bottom: 12px;
        padding: 20px;
    }

    .tmh-privacy-banner__actions {
        display: grid;
    }

    .tmh-privacy-banner button {
        width: 100%;
    }
}