.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    color: var(--color-text);
    padding: calc(var(--spacing-unit) * 4);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    border-top: 3px solid var(--color-sakura);
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
}

.cookie-text h3 {
    margin: 0 0 calc(var(--spacing-unit) * 1) 0;
    font-size: 1.125rem;
    color: var(--color-text);
}

.cookie-text p {
    margin: 0;
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text-light);
}

.cookie-actions {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border-radius: calc(var(--spacing-unit) * 1);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    font-family: var(--font-primary);
}

.cookie-accept {
    background-color: var(--color-sakura);
    color: var(--color-white);
    border-color: var(--color-sakura);
}

.cookie-accept:hover {
    background-color: var(--color-white);
    color: var(--color-sakura);
    border-color: var(--color-sakura);
}

.cookie-reject {
    background-color: var(--color-gray-light);
    color: var(--color-text);
    border-color: var(--color-gray-light);
}

.cookie-reject:hover {
    background-color: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.cookie-customize {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.cookie-customize:hover {
    background-color: var(--color-text);
    color: var(--color-white);
}

.cookie-link {
    color: var(--color-sakura);
    text-decoration: underline;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.cookie-link:hover {
    color: var(--color-matcha);
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: calc(var(--spacing-unit) * 3);
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background-color: var(--color-white);
    border-radius: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 5);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-content h3 {
    margin: 0 0 calc(var(--spacing-unit) * 4) 0;
    color: var(--color-text);
    font-size: 1.5rem;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.cookie-option {
    padding: calc(var(--spacing-unit) * 2.5);
    background-color: var(--color-gray-light);
    border-radius: calc(var(--spacing-unit) * 1);
    border: 2px solid transparent;
}

.cookie-option label {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    cursor: pointer;
    align-items: flex-start;
}

.cookie-option input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.cookie-option-text {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 0.5);
}

.cookie-option-text strong {
    color: var(--color-text);
    font-size: 1rem;
}

.cookie-option-text span {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.cookie-modal-actions {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    align-items: center;
    flex-wrap: wrap;
}

.cookie-modal-actions .cookie-btn {
    flex: 1;
    min-width: 140px;
}

.cookie-modal-actions .cookie-link {
    margin-left: auto;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal-content {
        padding: calc(var(--spacing-unit) * 3);
    }

    .cookie-modal-actions {
        flex-direction: column;
    }

    .cookie-modal-actions .cookie-btn {
        width: 100%;
    }

    .cookie-modal-actions .cookie-link {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}
