/* --- Main Consent Banner --- */
#mepage-pdpa-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    z-index: 10000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    line-height: 1.5;
}

.mepage-pdpa-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.mepage-pdpa-text {
    flex-grow: 1;
}

.mepage-pdpa-text a {
    color: #ecf0f1;
    text-decoration: underline;
}

.mepage-pdpa-button-group {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.mepage-pdpa-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.mepage-pdpa-btn:active {
    transform: translateY(1px);
}

#mepage-pdpa-accept-btn {
    background-color: #2980b9;
    color: white;
}
#mepage-pdpa-accept-btn:hover {
    background-color: #3498db;
}

.mepage-pdpa-btn-secondary {
    background-color: transparent;
    color: #ecf0f1;
    border: 1px solid #7f8c8d;
}
.mepage-pdpa-btn-secondary:hover {
    background-color: #34495e;
}


/* --- Settings Modal --- */
#mepage-pdpa-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex; /* Used instead of block for centering */
    align-items: center;
    justify-content: center;
}

.mepage-pdpa-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.mepage-pdpa-modal-content {
    position: relative;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: #333;
}

.mepage-pdpa-modal-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}
.mepage-pdpa-modal-content p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 0;
}
.mepage-pdpa-modal-content p.modal-description {
    margin-bottom: 20px;
}

.mepage-pdpa-cookie-category {
    border-top: 1px solid #eee;
    padding: 15px 0;
}
.mepage-pdpa-cookie-category:last-of-type {
    margin-bottom: 20px;
}

.mepage-pdpa-cookie-category h4 {
    margin: 0;
    font-size: 16px;
    color: #34495e;
}

.mepage-pdpa-cookie-category p {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 0;
}

#mepage-pdpa-save-settings-btn {
    width: 100%;
    background-color: #2980b9;
    color: white;
}
#mepage-pdpa-save-settings-btn:hover {
    background-color: #3498db;
}

/* --- Toggle Switch CSS --- */
.toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.mepage-pdpa-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

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

.mepage-pdpa-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}

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

input:checked + .mepage-pdpa-slider {
    background-color: #2980b9;
}

input:checked + .mepage-pdpa-slider:before {
    transform: translateX(22px);
}

/* --- Shortcode Trigger --- */
.mepage-pdpa-settings-trigger {
    color: #2980b9;
    text-decoration: underline;
    cursor: pointer;
}
.mepage-pdpa-settings-trigger:hover {
    color: #3498db;
}


/* --- Responsive --- */
@media (max-width: 768px) {
    .mepage-pdpa-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .mepage-pdpa-button-group {
        justify-content: center;
        margin-top: 10px;
    }
    .mepage-pdpa-btn {
        flex-grow: 1;
    }
}