/**
 * ThirtyFourWP Payment Wall styles
 */

/* Main Container */
.tfwp-payment-wall {
    max-width: 600px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    color: #333;
    padding: 30px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Header */
.tfwp-payment-wall-header {
    text-align: center;
    margin-bottom: 30px;
}

.tfwp-payment-wall-logo {
    font-size: 28px;
    font-weight: bold;
    color: #004aab;
}

.tfwp-payment-wall-description {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
}

/* Benefits */
.tfwp-payment-wall-benefits {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tfwp-payment-wall-benefit-item {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 15px 10px;
    margin: 0 5px 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.tfwp-payment-wall-benefit-icon {
    margin-bottom: 10px;
}

.tfwp-payment-wall-benefit-icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    color: #004aab;
}

.tfwp-payment-wall-benefit-text {
    font-size: 14px;
    font-weight: 500;
}

/* Plans */
.tfwp-payment-wall-plans {
    margin-bottom: 30px;
}

.tfwp-payment-wall-plan-detail {
    text-align: center;
}

.tfwp-payment-wall-plan-price {
    margin-bottom: 10px;
    font-size: 16px;
}

.tfwp-payment-wall-price-amount {
    font-weight: bold;
    font-size: 24px;
    color: #004aab;
}

.tfwp-payment-wall-price-period {
    color: #666;
}

/* Terms */
.tfwp-payment-wall-terms {
    text-align: center;
    font-size: 12px;
    color: #757575;
    margin-bottom: 20px;
}

.tfwp-payment-wall-logout-link {
    display: block;
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tfwp-payment-wall-logout-link:hover {
    color: #004aab;
    text-decoration: underline;
}

.tfwp-payment-wall-logging-out {
    color: #9e9e9e;
    cursor: default;
}

.tfwp-payment-wall-logging-out:hover {
    color: #9e9e9e;
    text-decoration: none;
}

/* Buttons */
.tfwp-payment-wall-buttons {
    text-align: center;
    margin-bottom: 25px;
    margin-top: 15px;
}

.tfwp-payment-wall-button-primary,
.payment-wall-button-primary {
    background-color: #004aab;
    color: white !important;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(98, 0, 234, 0.3);
    text-decoration: none;
    display: inline-block;
}

.tfwp-payment-wall-button-primary:hover,
.payment-wall-button-primary:hover {
    background-color: #003cab;
    text-decoration: none;
}

.tfwp-payment-wall-button-primary:disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
    box-shadow: none;
}

.tfwp-payment-wall-button-secondary {
    background-color: transparent;
    color: #666 !important;
    border: 1px solid #ccc;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    text-decoration: none;
    display: inline-block;
}

.tfwp-payment-wall-button-secondary:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #333 !important;
    text-decoration: none;
}

.tfwp-payment-wall-button-secondary:disabled {
    background-color: #f5f5f5;
    color: #bbb !important;
    border-color: #ddd;
    cursor: not-allowed;
}

/* Payment Methods */
.tfwp-payment-wall-payment-methods {
    margin-top: 30px;
    text-align: center;
}

.tfwp-payment-wall-payment-method-list {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tfwp-payment-wall-payment-method {
    margin: 0 10px;
}

.tfwp-payment-wall-payment-method img {
    height: 16px;
    width: auto;
}

/* Error Messages */
.payment-wall-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

/* Access Granted */
.payment-wall-access-granted {
    max-width: 600px;
    background-color: #fff;
    color: #2e7d32;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    }

.payment-wall-access-granted h2 {
    color: #2e7d32;
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 15px;
}

.payment-wall-access-granted p {
    font-size: 16px;
    margin-bottom: 10px;
}

.payment-wall-continue-button {
    margin: 15px 0;
    text-align: center;
}

.payment-wall-continue-button a {
    padding: 12px 24px;
    background-color: #2e7d32;
    color: white !important;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.payment-wall-continue-button a:hover {
    background-color: #225c26;
    text-decoration: none;
}

/* OR Divider */
.payment-wall-or-divider {
    text-align: center;
    font-weight: bold;
    color: #666;
    position: relative;
}

/* Responsive */
@media (max-width: 600px) {
    .tfwp-payment-wall {
        padding: 20px;
        width: 95%;
        max-height: 95vh;
    }
    
    .tfwp-payment-wall-benefits {
        flex-direction: column;
    }
    
    .tfwp-payment-wall-benefit-item {
        margin-bottom: 10px;
    }
}

/* Admin CSS */
.tfwp-payment-wall-help {
    margin-top: 30px;
    background: #fff;
    padding: 15px 20px;
    border-left: 4px solid #4a80f5;
}

.tfwp-payment-wall-help h2 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.tfwp-payment-wall-help ol {
    padding-left: 20px;
}

/* Plan total */
.tfwp-payment-wall-plan-total {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Subscription Options */
.payment-wall-subscription-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-wall-renew-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.payment-wall-renew-section h3 {
    color: #333;
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 10px;
}

.payment-wall-renew-section p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.payment-wall-renew-button {
    margin: 15px 0;
}

.payment-wall-renew-button .tfwp-payment-wall-button-primary {
    background-color: #004aab;
}

/* Expired Subscription */
.payment-wall-subscription-expired {
    border-radius: 8px;
    text-align: center;
}

.payment-wall-subscription-expired h2 {
    margin-top: 0;
    font-size: 22px;
    margin-bottom: 15px;
}

.payment-wall-subscription-expired p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 30px;
} 