/* Container del Banner Principale in Basso */
.preziosa-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    padding: 20px;
    font-family: inherit;
}

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

.preziosa-cookie-text {
    flex: 1 1 600px;
}

.preziosa-cookie-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.preziosa-cookie-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.preziosa-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preziosa-cookie-actions button {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.preziosa-cookie-actions .action.primary {
    background-color: #1976d2;
    color: #fff;
    border: none;
}

.preziosa-cookie-actions .action.secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}

.preziosa-cookie-actions .action.tertiary {
    background-color: transparent;
    color: #1976d2;
    border: 1px solid #1976d2;
}

/* Modale Granulare */
.preziosa-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preziosa-cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.preziosa-cookie-modal-box {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.preziosa-cookie-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preziosa-cookie-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.preziosa-cookie-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.preziosa-cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.preziosa-cookie-category {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.preziosa-cookie-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.preziosa-badge-required {
    font-size: 11px;
    background: #e0e0e0;
    color: #555;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.preziosa-cookie-cat-desc {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.preziosa-cookie-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #fff;
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .3s;
}

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

input:checked + .slider {
    background-color: #1976d2;
}

input:disabled + .slider {
    background-color: #4caf50;
    cursor: not-allowed;
    opacity: 0.8;
}

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

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Re-open Button Widget - Rettangolo Bianco con Bordo Nero */
.preziosa-cookie-reopen-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    height: auto;
    width: auto;
    padding: 8px 14px;
    border-radius: 4px;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 99990;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.preziosa-cookie-reopen-btn:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.preziosa-cookie-reopen-btn svg {
    stroke: currentColor;
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .preziosa-cookie-reopen-btn {
        bottom: 15px;
        left: 15px;
        padding: 6px 10px;
        font-size: 12px;
    }
}
