/* Mits Fish Co. Minimal Cookie Consent */
:root {
    --mf-ink: #172026;
    --mf-paper: #f7f4eb;
    --mf-red: #b43924;
    --mf-blue: #1f5a6b;
    --mf-gold: #c49346;
}

/* Consent Banner */
.mf-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--mf-ink);
    padding: 1rem 1.5rem;
    border-top: 3px solid var(--mf-red);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    font-family: "Work Sans", Arial, sans-serif;
    font-size: 0.9rem;
}

.mf-consent-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.mf-consent-content {
    color: #fff;
    flex: 1;
}

.mf-consent-content a {
    color: var(--mf-red);
    text-decoration: underline;
}

.mf-consent-content a:hover {
    color: var(--mf-gold);
}

/* Buttons */
.mf-consent-buttons {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}

.mf-consent-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: "Work Sans", Arial, sans-serif;
    transition: all 0.2s;
}

.mf-consent-btn--primary {
    background: var(--mf-red);
    color: #fff;
}

.mf-consent-btn--primary:hover {
    background: var(--mf-gold);
}

.mf-consent-btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--mf-red);
}

.mf-consent-btn--secondary:hover {
    background: var(--mf-red);
    border-color: var(--mf-red);
}

.mf-consent-btn--link {
    background: none;
    border: none;
    color: #fff;
    text-decoration: underline;
    padding: 0.5rem;
}

.mf-consent-btn--link:hover {
    color: var(--mf-gold);
}

/* Close button */
.mf-consent-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.6;
}

.mf-consent-close:hover {
    opacity: 1;
}

/* Settings Panel */
.mf-consent-settings {
    display: none;
    background: var(--mf-paper);
    color: var(--mf-ink);
    border-radius: 8px;
    padding: 1.2rem;
    margin-top: 1rem;
    border: 2px solid var(--mf-red);
}

.mf-consent-settings.mf-consent-settings--open {
    display: block;
}

.mf-consent-settings h3 {
    font-family: "Diplomata", "Source Serif 4", Georgia, serif;
    color: var(--mf-blue);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.mf-consent-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.mf-consent-category:last-child {
    border-bottom: none;
}

.mf-consent-category-info {
    flex: 1;
}

.mf-consent-category-name {
    font-weight: 600;
    color: var(--mf-ink);
}

.mf-consent-category-desc {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.2rem;
}

/* Toggle Switch */
.mf-consent-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.mf-consent-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mf-consent-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: 0.2s;
    cursor: pointer;
}

.mf-consent-toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.mf-consent-toggle input:checked + .mf-consent-toggle-slider {
    background: var(--mf-red);
}

.mf-consent-toggle input:checked + .mf-consent-toggle-slider::before {
    transform: translateX(18px);
}

.mf-consent-toggle.mf-consent-toggle--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Floating Trigger */
.mf-consent-trigger {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 9999;
    background: var(--mf-red);
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mf-consent-trigger svg {
    flex-shrink: 0;
}

.mf-consent-trigger:hover {
    background: var(--mf-gold);
}

/* Hide */
.mf-consent-banner.mf-consent-banner--hidden {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .mf-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .mf-consent-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .mf-consent-btn {
        flex: 1;
    }

    .mf-consent-close {
        top: 0.3rem;
        right: 0.3rem;
    }

    .mf-consent-trigger {
        bottom: 0.5rem;
        left: 0.5rem;
        font-size: 0.7rem;
    }
}

/* Slide up animation */
@keyframes mf-consent-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mf-consent-banner:not(.mf-consent-banner--hidden) {
    animation: mf-consent-slide-up 0.3s ease-out;
}
