/**
 * Cookie Consent - Minimal Icon Style
 * Primary color: Tangerine (#e1523d)
 */

/* Floating Cookie Icon Button */
.ic-cookie-icon-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #e1523d;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(225, 82, 61, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ic-cookie-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(225, 82, 61, 0.5);
}

.ic-cookie-icon-btn:active {
    transform: scale(0.95);
}

.ic-cookie-icon-btn svg {
    width: 26px;
    height: 26px;
    fill: white;
}

/* Hide icon when panel is open */
.ic-cookie-icon-btn.hidden {
    display: none;
}

/* Overlay */
.ic-cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ic-cookie-overlay.visible {
    opacity: 1;
}

/* Settings Panel */
.ic-cookie-panel {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ic-cookie-panel.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ic-cookie-panel-content {
    padding: 20px;
}

/* Header */
.ic-cookie-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ic-cookie-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.ic-cookie-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.ic-cookie-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Description */
.ic-cookie-desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.ic-cookie-desc a {
    color: #e1523d;
    text-decoration: none;
}

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

/* Options */
.ic-cookie-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.ic-cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.ic-cookie-option-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ic-cookie-option-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.ic-cookie-badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: #e1523d;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Toggle Switch */
.ic-cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.ic-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ic-cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: background 0.3s ease;
}

.ic-cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ic-cookie-switch input:checked + .ic-cookie-slider {
    background: #e1523d;
}

.ic-cookie-switch input:checked + .ic-cookie-slider:before {
    transform: translateX(20px);
}

.ic-cookie-switch input:disabled + .ic-cookie-slider {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Action Buttons */
.ic-cookie-actions {
    display: flex;
    gap: 10px;
}

.ic-cookie-btn-reject,
.ic-cookie-btn-accept {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.ic-cookie-btn-reject {
    background: #f3f4f6;
    color: #374151;
}

.ic-cookie-btn-reject:hover {
    background: #e5e7eb;
}

.ic-cookie-btn-accept {
    background: #e1523d;
    color: white;
}

.ic-cookie-btn-accept:hover {
    background: #c9402d;
}

/* Mobile adjustments */
@media (max-width: 400px) {
    .ic-cookie-icon-btn {
        width: 46px;
        height: 46px;
        bottom: 16px;
        left: 16px;
    }

    .ic-cookie-icon-btn svg {
        width: 24px;
        height: 24px;
    }

    .ic-cookie-panel {
        left: 10px;
        right: 10px;
        bottom: 70px;
        width: auto;
        max-width: none;
    }

    .ic-cookie-panel-content {
        padding: 16px;
    }

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