/* MemoryMantle Cookie Consent Banner */

/* Banner - fixed to bottom */
.mm-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.mm-cookie-banner.active {
    transform: translateY(0);
}

.mm-cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.mm-cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.mm-cookie-text {
    flex: 1;
}

.mm-cookie-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}

.mm-cookie-text p {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

.mm-cookie-text a {
    color: #d4a853;
    text-decoration: none;
}

.mm-cookie-text a:hover {
    text-decoration: underline;
}

.mm-cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: center;
    flex-wrap: wrap;
}

.mm-cookie-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}

.mm-cookie-btn-accept {
    background: #5a8a5a;
    color: white;
}

.mm-cookie-btn-accept:hover {
    background: #4d7a4d;
}

.mm-cookie-btn-essential {
    background: #777777;
    color: white;
}

.mm-cookie-btn-essential:hover {
    background: #555555;
}

.mm-cookie-btn-customise {
    background: transparent;
    color: #2a2a2a;
    border: 2px solid #2a2a2a;
}

.mm-cookie-btn-customise:hover {
    background: #2a2a2a;
    color: white;
}

/* Preferences Modal */
.mm-cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mm-cookie-modal-overlay.active {
    display: flex;
}

.mm-cookie-modal {
    background: white;
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mm-cookie-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e8e4df;
}

.mm-cookie-modal-header h2 {
    font-size: 1.35rem;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.mm-cookie-modal-header p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0.5rem 0 0;
}

.mm-cookie-modal-body {
    padding: 1.5rem 2rem;
}

.mm-cookie-category {
    padding: 1rem 0;
    border-bottom: 1px solid #f0ede8;
}

.mm-cookie-category:last-child {
    border-bottom: none;
}

.mm-cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mm-cookie-category-name {
    font-weight: 600;
    color: #2a2a2a;
    font-size: 1rem;
}

.mm-cookie-category-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Toggle Switch */
.mm-cookie-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.mm-cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mm-cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d5d0c8;
    border-radius: 26px;
    transition: 0.3s;
}

.mm-cookie-toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.mm-cookie-toggle input:checked + .mm-cookie-toggle-slider {
    background-color: #5a8a5a;
}

.mm-cookie-toggle input:checked + .mm-cookie-toggle-slider::before {
    transform: translateX(22px);
}

.mm-cookie-toggle input:disabled + .mm-cookie-toggle-slider {
    background-color: #5a8a5a;
    opacity: 0.6;
    cursor: not-allowed;
}

.mm-cookie-always-on {
    font-size: 0.8rem;
    color: #5a8a5a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mm-cookie-modal-footer {
    padding: 1rem 2rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Floating settings button */
.mm-cookie-settings-float {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    width: 44px;
    height: 44px;
    background: #2a2a2a;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(42, 42, 42, 0.4);
    z-index: 9999;
    transition: all 0.2s;
}

.mm-cookie-settings-float:hover {
    background: #1a1a1a;
    transform: scale(1.1);
}

.mm-cookie-settings-float.active {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .mm-cookie-settings-float.active {
        display: none;
    }

    .mm-cookie-banner-inner {
        flex-direction: column;
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

    .mm-cookie-icon {
        display: none;
    }

    .mm-cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .mm-cookie-btn {
        flex: 1;
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .mm-cookie-modal {
        max-height: 90vh;
    }

    .mm-cookie-modal-header,
    .mm-cookie-modal-body,
    .mm-cookie-modal-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
