/* Cookie Consent Popup Styles - Woodworking Dynamics */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 25px 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: none;
    animation: slideUp 0.5s ease-out;
    border-top: 3px solid #999900;
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-consent-icon {
    flex-shrink: 0;
}

.cookie-consent-icon i {
    font-size: 48px;
    color: #999900;
    filter: drop-shadow(0 2px 4px rgba(153, 153, 0, 0.3));
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    color: #999900;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.cookie-consent-text p {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-text a {
    color: #999900;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.cookie-consent-text a:hover {
    color: #bfbf00;
    text-decoration: none;
}

.cookie-consent-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-consent-btn {
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cookie-consent-btn-accept {
    background: #999900;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(153, 153, 0, 0.3);
}

.cookie-consent-btn-accept:hover {
    background: #808000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 153, 0, 0.4);
}

.cookie-consent-btn-decline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #666666;
}

.cookie-consent-btn-decline:hover {
    background: #666666;
    border-color: #777777;
    color: #ffffff;
}

.cookie-consent-btn-settings {
    background: transparent;
    color: #999900;
    border: 2px solid #999900;
}

.cookie-consent-btn-settings:hover {
    background: #999900;
    color: #ffffff;
}

/* Close button */
.cookie-consent-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #999900;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.cookie-consent-close:hover {
    background: rgba(153, 153, 0, 0.1);
    transform: rotate(90deg);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    padding: 20px;
    overflow-y: auto;
}

.cookie-settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.cookie-settings-content {
    background: #ffffff;
    max-width: 700px;
    width: 100%;
    border-radius: 10px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cookie-settings-header {
    border-bottom: 3px solid #999900;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.cookie-settings-header h3 {
    color: #2c2c2c;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.cookie-settings-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #999900;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.cookie-settings-close:hover {
    background: rgba(153, 153, 0, 0.1);
    transform: rotate(90deg);
}

.cookie-category {
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #999900;
}

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

.cookie-category-header h4 {
    color: #2c2c2c;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #999900;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category-description {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cookie-settings-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

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

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

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-btn {
        flex: 1;
        min-width: 120px;
    }

    .cookie-settings-content {
        padding: 30px 20px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .cookie-consent-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 20px 0;
    }

    .cookie-consent-text h4 {
        font-size: 18px;
    }

    .cookie-consent-text p {
        font-size: 14px;
    }

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

    .cookie-consent-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .cookie-settings-header h3 {
        font-size: 22px;
        padding-right: 40px;
    }
}
