/* CSS για τους διακόπτες */
.pl-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin-left: 10px;
    flex-shrink: 0;
}

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

.pl-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #757575;
    transition: .4s;
    border-radius: 34px;
}

.pl-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ΔΙΟΡΘΩΣΗ: Χρώμα διακοπτών όπως στο παλιό */
input:checked + .pl-slider {
    background: linear-gradient(90deg, #6a1b9a, #d81b60);
}

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

.pl-slider:hover {
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* ΔΙΟΡΘΩΣΗ: Χρώμα focus */
input:focus + .pl-slider {
    outline: 2px solid #8e44ad;
    outline-offset: 2px;
}

/* Στυλ για τα details */
details[open] summary {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Στυλ για το "Πάντα ενεργές" με καλύτερη αντίθεση */
.pl-always-active {
    color: #1b5e20 !important;
    font-size: 12px;
    padding: 4px 8px;
    background: #e8f5e9;
    border-radius: 12px;
    border: 1px solid #c8e6c9;
    font-weight: 600;
    flex-shrink: 0;
}

/* Στυλ για την ασπίδα - ΔΙΟΡΘΩΣΗ ΧΡΩΜΑΤΩΝ */
#pl-shield {
    position: fixed;
    bottom: 65px !important;
    left: 20px;
    width: 45px;
    height: 45px;
    /* ΔΙΟΡΘΩΣΗ: Στο παλιό χρώμα */
    background: linear-gradient(135deg, #8e44ad, #f06292);
    border-radius: 50%;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
    border: none;
    outline: none;
}

#pl-shield:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#pl-shield:active {
    transform: scale(0.95);
}

/* Στυλ για το banner */
#pl-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    z-index: 999999;
    display: none;
    border: 1px solid #eee;
    max-width: 500px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
    animation: plFadeIn 0.3s ease-out;
}

@keyframes plFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Κουμπί κλεισίματος */
.pl-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Εικόνα logo */
#pl-banner img {
    max-height: 45px;
    margin: 0 auto 20px;
    display: block;
}

/* Τίτλος - ΔΙΟΡΘΩΣΗ ΧΡΩΜΑΤΟΣ */
#pl-banner-title {
    text-align: center;
    color: #8e44ad !important; /* Στο παλιό χρώμα */
    margin: 0 0 10px;
    font-size: 18px;
}

/* Περιγραφή */
#pl-banner-desc {
    font-size: 13px;
    color: #555;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Κατηγορίες */
.pl-categories details {
    background: #f9f9f9;
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
}

.pl-categories summary {
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    padding-right: 10px;
    list-style: none;
}

.pl-categories summary::-webkit-details-marker {
    display: none;
}

.pl-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pl-category-details {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
}

.pl-service {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-top: 5px;
    border: 1px solid #eee;
}

.pl-no-services {
    color: #999;
    font-style: italic;
}

/* Κουμπιά - ΔΙΟΡΘΩΣΗ ΧΡΩΜΑΤΩΝ */
.pl-button-primary {
    width: 100%;
    /* ΔΙΟΡΘΩΣΗ: Στο παλιό χρώμα */
    background: linear-gradient(90deg, #8e44ad, #f06292);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    min-height: 50px;
    transition: opacity 0.2s;
}

.pl-button-primary:hover {
    opacity: 0.9;
}

.pl-button-secondary {
    width: 100%;
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    padding: 12px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    min-height: 44px;
    transition: background 0.2s;
}

.pl-button-secondary:hover {
    background: #e8e8e8;
}

/* Links - ΔΙΟΡΘΩΣΗ ΧΡΩΜΑΤΟΣ */
.pl-links {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
}

.pl-links a {
    color: #8e44ad !important; /* Στο παλιό χρώμα */
    text-decoration: none;
    font-weight: 600;
}

.pl-links span {
    color: #ddd;
    margin: 0 8px;
}

/* Responsive για mobile */
@media (max-width: 768px) {
    #pl-banner {
        left: 20px !important;
        right: 20px !important;
        width: calc(100% - 40px) !important;
        max-width: calc(100% - 40px) !important;
        transform: none !important;
        bottom: 20px !important;
    }
    
    #pl-shield {
        bottom: 65px !important;
        left: 20px;
    }
}

/* Πολύ μικρές οθόνες */
@media (max-width: 480px) {
    #pl-banner {
        padding: 20px;
        border-radius: 20px;
        bottom: 15px !important;
    }
    
    #pl-shield {
        width: 40px;
        height: 40px;
        bottom: 60px !important;
        left: 15px;
    }
    
    .pl-button-primary,
    .pl-button-secondary {
        padding: 12px;
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}