/* ==========================================================================
   Meetanshi Cookie Notice - Premium Redesign
   ========================================================================== */

/* --- Cookie Settings Badge --- */
.v-badge {
    position: fixed !important;
    left: 24px !important;
    bottom: 0 !important;
    background: #004e52 !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 4px 4px 0 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 99999 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer !important;
}

.v-badge:hover {
    background: #004e52 !important;
}

/* --- Cookie Notice Container --- */
#m-cookienotice {
    position: fixed !important;
    bottom: 0px !important;
    left: 0px !important;
    right: auto !important;
    top: auto !important;
    width: calc(100% - 48px) !important;
    max-width: 580px !important;
    background: #ffffff !important;
    color: #334155 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    padding: 30px 40px !important;
    z-index: 999999 !important;
    box-sizing: border-box !important;
    border: none !important;
    text-align: left !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

/* --- Outer Wrapper Constraint override --- */
.cookie-div {
    width: auto !important;
    margin: 0 !important;
}

/* --- Cookie Notice Title & Icon --- */
#m-cookienotice .m-message.title {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 0 16px 0 !important;
    width: 100% !important;
    border: none !important;
}

#m-cookienotice .m-message.title .titlecookie {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0f1c3f !important;
    border-bottom: none !important;
    text-transform: none !important;
    letter-spacing: -0.02em !important;
}

#m-cookienotice .m-message.title .titlecookie::before {
    content: "" !important;
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ebb362' d='M257.5 27.6c-.8-5.4-4.9-9.8-10.3-10.6v0c-22.1-3.1-44.6 .9-64.4 11.4l-74 39.5C89.1 78.4 73.2 94.9 63.4 115L26.7 190.6c-9.8 20.1-13 42.9-9.1 64.9l14.5 82.8c3.9 22.1 14.6 42.3 30.7 57.9l60.3 58.4c16.1 15.6 36.6 25.6 58.7 28.7l83 11.7c22.1 3.1 44.6-.9 64.4-11.4l74-39.5c19.7-10.5 35.6-27 45.4-47.2l36.7-75.5c9.8-20.1 13-42.9 9.1-64.9v0c-.9-5.3-5.3-9.3-10.6-10.1c-51.5-8.2-92.8-47.1-104.5-97.4c-1.8-7.6-8-13.4-15.7-14.6c-54.6-8.7-97.7-52-106.2-106.8z'/%3E%3Ccircle cx='208' cy='176' r='28' fill='%235c3a21'/%3E%3Ccircle cx='176' cy='336' r='28' fill='%235c3a21'/%3E%3Ccircle cx='368' cy='304' r='28' fill='%235c3a21'/%3E%3Ccircle cx='280' cy='270' r='24' fill='%235c3a21'/%3E%3Ccircle cx='320' cy='160' r='26' fill='%235c3a21'/%3E%3Ccircle cx='120' cy='240' r='22' fill='%235c3a21'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* --- Cookie Notice Message --- */
#m-cookienotice #message-custom-css {
    display: block !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    color: #334155 !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    text-align: left !important;
    font-weight: 400 !important;
}

/* --- Cookie Notice Actions Wrapper --- */
#m-cookienotice #action-custom-css {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
}

/* --- Cookie Notice Buttons (Base) --- */
#m-cookienotice .m-button {
    box-sizing: border-box !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: 0px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* --- Secondary Link (Cookie Preferences) --- */
#m-cookienotice .m-button:not(.m-accept):not(.m-decline) {
    background: transparent !important;
    color: #0f1c3f !important;
    border: none !important;
    padding: 0 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    margin-left: auto !important;
    font-weight: 600 !important;
}

#m-cookienotice .m-button:not(.m-accept):not(.m-decline):hover {
    color: #2f43ff !important;
    background: transparent !important;
}

/* --- Responsive Styling --- */
@media (max-width: 600px) {
    #m-cookienotice {
        width: calc(100% - 24px) !important;
        padding: 20px 24px !important;
    }

    #m-cookienotice .m-message.title .titlecookie {
        font-size: 22px !important;
    }

    #m-cookienotice #action-custom-css {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    /* First row */
    #m-cookienotice .m-button.m-accept,
    #m-cookienotice .m-button.m-decline {
        flex: 1 1 calc(50% - 5px) !important;
        width: auto !important;
        box-sizing: border-box;
        text-align: center;
    }

    /* Second row */
    #m-cookienotice .m-button:not(.m-accept):not(.m-decline) {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        text-align: center;
    }
}