/* =====================================================================
   Restyles the tvcmscookiesnotice banner into the Max Trade card look
   (same tokens as maxtradetopbar / maxtradereassurance / country modal).

   The theme's own markup is untouched — only presentation is overridden:
     .tvcmscookies-notice
       .tvcookies-notice-img-wrapper      -> the card
         .tvcookies-notice-img-inner      -> text column
           .tvcookie-content-box > .tvcookies-notice-title > p
           .tvcookie-btn-wrapper          -> (theme hides these buttons)
         .tvcookies-notice-icon > button.tvclose-icon > span  -> accept button

   Can be switched off with Configuration PCME_STYLE_COOKIE_NOTICE = 0.
   ===================================================================== */

/* Full-width fixed layer -> transparent, so only the card is visible */
.tvcmscookies-notice {
    background-color: transparent !important;
    padding: 0 16px 16px !important;
    z-index: 1999999997 !important;
    pointer-events: none !important;
    text-align: center !important;
}

/* The card itself */
.tvcmscookies-notice .tvcookies-notice-img-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 660px !important;
    margin: 0 auto !important;
    padding: 16px 20px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #dfdfdf !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Poppins', sans-serif !important;
    text-align: left !important;
    pointer-events: auto !important;
}

/* Cookie icon in the white rounded box used across Max Trade blocks */
.tvcmscookies-notice .tvcookies-notice-img-wrapper::before {
    content: '';
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #e2eff5;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e21a22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 3 3 0 0 1-4-4 3 3 0 0 1-3-3 3.5 3.5 0 0 1-3-3z'/%3E%3Ccircle cx='9' cy='10' r='1.1' fill='%23e21a22' stroke='none'/%3E%3Ccircle cx='14' cy='14.5' r='1.1' fill='%23e21a22' stroke='none'/%3E%3Ccircle cx='9.5' cy='15.5' r='1' fill='%23e21a22' stroke='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    box-sizing: border-box;
}

/* Text column */
.tvcmscookies-notice .tvcookies-notice-img-inner {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: block !important;
}

.tvcmscookies-notice .tvcookie-content-box {
    width: 100% !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    float: none !important;
}

.tvcmscookies-notice .tvcookies-notice-title {
    color: #555555 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    text-align: left !important;
}

.tvcmscookies-notice .tvcookies-notice-title p {
    margin: 0 !important;
    color: #555555 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.tvcmscookies-notice .tvcookies-notice-title a {
    color: #003755 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.tvcmscookies-notice .tvcookies-notice-title a:hover {
    color: #e21a22 !important;
}

/* Privacy policy link injected by pcme_country_selector.js */
.tvcmscookies-notice a.pcme-cookie-privacy {
    display: inline-block !important;
    margin-left: 2px !important;
    color: #003755 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    white-space: nowrap !important;
}

.tvcmscookies-notice a.pcme-cookie-privacy:hover {
    color: #e21a22 !important;
}

/* Accept button — same look as the primary button of the country modal */
.tvcmscookies-notice .tvcookies-notice-icon {
    flex: 0 0 auto !important;
}

.tvcmscookies-notice .tvcookie-btn-wrapper {
    float: none !important;
}

.tvcmscookies-notice .tvclose-icon {
    margin: 0 !important;
    padding: 11px 22px !important;
    background-color: #003755 !important;
    border: 1px solid #003755 !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

.tvcmscookies-notice .tvclose-icon:hover {
    background-color: #002a41 !important;
    border-color: #002a41 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 55, 85, 0.18) !important;
}

/* Mobile: stack the card, full-width button */
@media (max-width: 575px) {
    .tvcmscookies-notice {
        padding: 0 10px 10px !important;
    }
    .tvcmscookies-notice .tvcookies-notice-img-wrapper {
        flex-wrap: wrap !important;
        gap: 12px !important;
        padding: 14px 16px !important;
    }
    .tvcmscookies-notice .tvcookies-notice-img-wrapper::before {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        background-size: 17px 17px;
    }
    .tvcmscookies-notice .tvcookies-notice-icon {
        flex: 1 1 100% !important;
    }
    .tvcmscookies-notice .tvclose-icon {
        width: 100% !important;
    }
}
