/* Metodo S.p.A. - GDPR & Cookie Consent Stylesheet */

#metodo-gdpr-banner-root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    line-height: 1.5;
    box-sizing: border-box;
}

#metodo-gdpr-banner-root * {
    box-sizing: border-box;
}

/* Floating Banner */
.metodo-banner-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 460px;
    width: calc(100% - 48px);
    background: #0d1e2d;
    color: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 999999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.metodo-banner-container.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.metodo-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.metodo-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.metodo-banner-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.metodo-banner-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.metodo-banner-text {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 18px;
    line-height: 1.55;
}

.metodo-banner-text a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 600;
}

.metodo-banner-text a:hover {
    color: #7dd3fc;
}

/* Pulsanti Pari Dignità (Linee Guida Garante) */
.metodo-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.metodo-btn {
    flex: 1 1 120px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.metodo-btn-accept {
    background: #0284c7;
    color: #ffffff;
}

.metodo-btn-accept:hover {
    background: #0369a1;
}

.metodo-btn-reject {
    background: #1e293b;
    color: #ffffff;
    border-color: #334155;
}

.metodo-btn-reject:hover {
    background: #334155;
}

.metodo-btn-custom {
    flex: 1 1 100%;
    background: transparent;
    color: #94a3b8;
    border-color: #334155;
    font-size: 12px;
    font-weight: 600;
}

.metodo-btn-custom:hover {
    color: #ffffff;
    border-color: #64748b;
}

/* Modal Personalizzazione */
.metodo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.metodo-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.metodo-modal-card {
    background: #ffffff;
    color: #0f172a;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    border-radius: 16px;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.metodo-modal-overlay.is-open .metodo-modal-card {
    transform: scale(1);
}

.metodo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.metodo-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #0d1e2d;
    margin: 0;
}

.metodo-category-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.metodo-category-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.metodo-category-name {
    font-size: 14px;
    font-weight: 700;
    color: #0d1e2d;
}

.metodo-category-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

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

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

.metodo-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .2s;
    border-radius: 24px;
}

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

input:checked + .metodo-slider {
    background-color: #0284c7;
}

input:focus + .metodo-slider {
    box-shadow: 0 0 1px #0284c7;
}

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

.metodo-always-active {
    font-size: 11px;
    font-weight: 800;
    color: #059669;
    text-transform: uppercase;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 4px;
}

.metodo-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
}

/* Floating Cookie Badge Permanente */
.metodo-cookie-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    background: #0d1e2d;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 999998;
    transition: transform 0.2s, background 0.2s;
}

.metodo-cookie-badge:hover {
    transform: scale(1.1);
    background: #0284c7;
}

.metodo-cookie-badge svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .metodo-banner-container {
        bottom: 12px;
        right: 12px;
        width: calc(100% - 24px);
        padding: 18px;
    }
    .metodo-cookie-badge {
        bottom: 12px;
        left: 12px;
    }
}
