/**
 * GDPR Cookie Consent Styles
 * Giardini Arredamenti
 */

/* Cookie Banner */
#gdpr-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 25px 30px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #000000;
}

#gdpr-cookie-banner.gdpr-visible {
    transform: translateY(0);
}

.gdpr-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.gdpr-banner-text {
    flex: 1;
    min-width: 300px;
}

.gdpr-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.gdpr-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
}

.gdpr-banner-text a {
    color: #000000;
    text-decoration: underline;
    font-weight: 600;
}

.gdpr-banner-text a:hover {
    color: #333333;
}

.gdpr-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gdpr-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.gdpr-btn-accept {
    background: #000000;
    color: #ffffff;
}

.gdpr-btn-accept:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gdpr-btn-reject {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.gdpr-btn-reject:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.gdpr-btn-customize {
    background: transparent;
    color: #666666;
    border: 2px solid #cccccc;
}

.gdpr-btn-customize:hover {
    border-color: #000000;
    color: #000000;
}

/* Settings Button (floating) */
#gdpr-settings-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

#gdpr-settings-button.gdpr-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#gdpr-settings-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    background: #333333;
}

#gdpr-settings-button svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

/* Customize Panel */
#gdpr-customize-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 30px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #000000;
    max-height: 80vh;
    overflow-y: auto;
}

#gdpr-customize-panel.gdpr-visible {
    transform: translateY(0);
}

.gdpr-customize-content {
    max-width: 900px;
    margin: 0 auto;
}

.gdpr-customize-header {
    margin-bottom: 25px;
}

.gdpr-customize-header h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
}

.gdpr-customize-header p {
    margin: 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

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

.gdpr-cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gdpr-cookie-category-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 5px 0;
}

.gdpr-cookie-category-description {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

.gdpr-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

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

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

input:checked + .gdpr-toggle-slider {
    background-color: #000000;
}

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

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

.gdpr-customize-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    #gdpr-cookie-banner {
        padding: 20px 15px;
    }

    .gdpr-banner-content {
        flex-direction: column;
        gap: 15px;
    }

    .gdpr-banner-text {
        min-width: 100%;
        text-align: center;
    }

    .gdpr-banner-text h3 {
        font-size: 16px;
    }

    .gdpr-banner-text p {
        font-size: 13px;
    }

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

    .gdpr-btn {
        width: 100%;
        padding: 14px 20px;
    }

    #gdpr-settings-button {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }

    #gdpr-settings-button svg {
        width: 24px;
        height: 24px;
    }

    #gdpr-customize-panel {
        padding: 20px 15px;
    }

    .gdpr-cookie-category {
        padding: 15px;
    }

    .gdpr-cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .gdpr-customize-actions {
        flex-direction: column;
    }

    .gdpr-customize-actions .gdpr-btn {
        width: 100%;
    }
}

/* Customize Panel */
#gdpr-customize-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 30px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #000000;
    max-height: 80vh;
    overflow-y: auto;
}

#gdpr-customize-panel.gdpr-visible {
    transform: translateY(0);
}

.gdpr-customize-content {
    max-width: 900px;
    margin: 0 auto;
}

.gdpr-customize-header {
    margin-bottom: 25px;
}

.gdpr-customize-header h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
}

.gdpr-customize-header p {
    margin: 0;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

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

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

.gdpr-cookie-category-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.gdpr-cookie-category-description {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

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

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

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

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

input:checked + .gdpr-toggle-slider {
    background-color: #000000;
}

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

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

.gdpr-customize-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: flex-end;
}

/* Mobile responsive for customize panel */
@media screen and (max-width: 768px) {
    #gdpr-customize-panel {
        padding: 20px 15px;
    }

    .gdpr-cookie-category {
        padding: 15px;
    }

    .gdpr-customize-actions {
        flex-direction: column;
    }

    .gdpr-customize-actions .gdpr-btn {
        width: 100%;
    }
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

