/* Styles for PianetaShopping Cookie Consent banner and modal */

.pscc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background-color: #ffffff;
    color: #222222;
    border-top: 1px solid #dddddd;
    padding: 20px;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.4;
}

.pscc-banner p {
    margin: 0 0 10px;
}

.pscc-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pscc-btn {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color .2s;
}

.pscc-accept-all {
    background-color: #0073aa;
    color: #ffffff;
}
.pscc-accept-all:hover {
    background-color: #005c8c;
}

.pscc-reject {
    background-color: #e0e0e0;
    color: #333333;
}
.pscc-reject:hover {
    background-color: #cccccc;
}

.pscc-customize {
    background-color: #f2f2f2;
    color: #333333;
}
.pscc-customize:hover {
    background-color: #e5e5e5;
}

.pscc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pscc-modal-content {
    background-color: #ffffff;
    padding: 20px 24px;
    max-width: 480px;
    width: 100%;
    border-radius: 6px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pscc-modal-content h3 {
    margin-top: 0;
    font-size: 20px;
}

.pscc-toggle {
    margin-bottom: 15px;
}

.pscc-toggle label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.pscc-switch {
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-right: 10px;
    background-color: #cccccc;
    border-radius: 10px;
    position: relative;
    transition: background-color .3s;
}

.pscc-switch::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #ffffff;
    top: 1px;
    left: 1px;
    transition: transform .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.pscc-toggle input:checked + .pscc-switch {
    background-color: #0073aa;
}

.pscc-toggle input:checked + .pscc-switch::before {
    transform: translateX(20px);
}

.pscc-description {
    margin-left: 50px;
    font-size: 12px;
    color: #666666;
}

.pscc-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.pscc-preferences-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color .2s;
}

.pscc-preferences-button:hover {
    background-color: #005c8c;
}

/* Table styling for policy page */
.pscc-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.pscc-cookie-table th,
.pscc-cookie-table td {
    border: 1px solid #dddddd;
    padding: 8px;
    text-align: left;
}

.pscc-cookie-table th {
    background-color: #f7f7f7;
    font-weight: 600;
}

@media (max-width: 480px) {
    .pscc-modal-content {
        max-width: 95%;
    }
    .pscc-preferences-button {
        bottom: 15px;
        right: 15px;
    }
}