
/* ==========================================
   MY CARE WIZARD - COOKIE CONSENT
========================================== */

.mcw-cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 95px;
    transform: translateX(-50%);

    z-index: 10000;

    width: min(560px, calc(100vw - 24px));
    max-height: calc(100dvh - 115px);
    overflow-y: auto;

    background: #ffffff;
    color: #243b30;

    border: 1px solid #d5e5da;
    border-radius: 18px;

    padding: 22px;

    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.18);
}

.mcw-cookie-banner[hidden] {
    display: none !important;
}

.mcw-cookie-banner *,
.mcw-cookie-banner *::before,
.mcw-cookie-banner *::after {
    box-sizing: border-box;
}

.mcw-cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mcw-cookie-header span {
    font-size: 26px;
}

.mcw-cookie-header h2 {
    margin: 0;
    font-size: 22px;
    color: #153b31;
}

.mcw-cookie-banner p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #607068;
}

.mcw-cookie-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcw-cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    padding: 13px;
    border: 1px solid #e0eae3;
    border-radius: 10px;
}

.mcw-cookie-option > span:first-child {
    flex: 1;
    min-width: 0;
}

.mcw-cookie-option strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #173f34;
}

.mcw-cookie-option small {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: #66776d;
}

.mcw-cookie-option input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #176b50;
    cursor: pointer;
}

.mcw-cookie-required {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    color: #176b50;
}

.mcw-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.mcw-cookie-actions button {
    min-height: 44px;
    padding: 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.mcw-cookie-primary {
    background: #0d4f3c;
    border: 1px solid #0d4f3c;
    color: white;
}

.mcw-cookie-primary:hover {
    background: #176b50;
}

.mcw-cookie-secondary {
    background: white;
    border: 1px solid #bdcec2;
    color: #174b38;
}

.mcw-cookie-save {
    grid-column: 1 / -1;
    background: #e8f5ee;
    border: 1px solid #b7d8c4;
    color: #15563d;
}

.mcw-cookie-policy {
    display: block;
    margin-top: 14px;
    text-align: center;
    color: #176b50;
    font-size: 12px;
    text-decoration: underline;
}

.mcw-cookie-banner button:focus-visible,
.mcw-cookie-banner input:focus-visible,
.mcw-cookie-banner a:focus-visible {
    outline: 3px solid #23835f;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .mcw-cookie-banner {
        bottom: 80px;
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 100px);
        padding: 16px;
        border-radius: 14px;
    }

    .mcw-cookie-header h2 {
        font-size: 19px;
    }

    .mcw-cookie-option {
        padding: 10px;
    }
}
