/*
 * Frontend styles for Bezahlartikel PayPal Plugin
 */

.premium-content-gate {
    border: 2px solid #007cba;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #f7f9fc;
}

.premium-content-preview {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.premium-purchase-section {
    text-align: center;
    padding: 20px 0;
}

.premium-price-display {
    font-size: 24px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 15px;
}

.premium-purchase-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.premium-purchase-button:hover {
    background: #005a87;
}

.premium-purchase-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.premium-legal-info {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    line-height: 1.4;
}

.premium-legal-info a {
    color: #007cba;
    text-decoration: none;
}

.premium-legal-info a:hover {
    text-decoration: underline;
}

.premium-buyer-email-field {
    margin-bottom: 15px;
}

.premium-buyer-email-field label {
    font-size: 14px;
    color: #333;
}

.premium-email-input {
    width: 100%;
    max-width: 320px;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.premium-access-notice {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Consent dialog */
.bezahlartikel-consent-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.bezahlartikel-consent-dialog {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 550px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.consent-section {
    margin: 15px 0;
}

.consent-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.consent-withdrawal-info {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 12px;
    font-size: 13px;
    color: #555;
    margin: 15px 0;
}

.consent-buttons {
    text-align: right;
    margin-top: 20px;
}

.consent-accept-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.consent-accept-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.consent-cancel-button {
    background: #f1f1f1;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* Withdrawal Button (2026 compliance) */
.withdrawal-button-sticky {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #d63638;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    z-index: 9999;
    font-size: 14px;
    font-weight: bold;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.withdrawal-button-sticky:visited,
.withdrawal-button-sticky:hover,
.withdrawal-button-sticky:active {
    color: white;
    text-decoration: none;
}

.withdrawal-button-sticky:hover {
    background: #b32d2e;
    transform: translateY(-50%) translateX(-5px);
}

.withdrawal-button-sticky.hidden {
    display: none;
}

/* Withdrawal Portal */
.withdrawal-portal {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.withdrawal-step {
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.withdrawal-step-1 {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.withdrawal-step-2 {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.withdrawal-article-list {
    list-style: none;
    padding: 0;
}

.withdrawal-article-item {
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.withdrawal-article-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.withdrawal-article-meta {
    font-size: 14px;
    color: #666;
}

.withdrawal-confirm-button {
    background: #d63638;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 5px;
}

.withdrawal-confirm-button:hover {
    background: #b32d2e;
}

.withdrawal-cancel-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px 5px;
}

.withdrawal-cancel-button:hover {
    background: #5a6268;
}

/* Loading and status indicators */
.bezahlartikel-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bezahlartikel-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.bezahlartikel-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.bezahlartikel-warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .premium-content-gate {
        margin: 15px 0;
        padding: 15px;
    }
    
    .premium-price-display {
        font-size: 20px;
    }
    
    .withdrawal-portal {
        margin: 20px;
        padding: 20px;
    }
    
    .withdrawal-button-sticky {
        font-size: 12px;
        padding: 8px 12px;
    }
}