/* /static/css/paypal/paypal_subscribe.css */

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

.paypal-card {
    width: 100%;
    max-width: 24rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* Styles for the subscription check feature */
.subscription-check-container {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.subscription-check-container p {
    font-size: 0.9rem;
    color: #4a5568;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

#show-check-form-link {
    color: #26a69a;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

#show-check-form-link:hover {
    text-decoration: underline;
}

.subscription-check-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

#check-email-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

#check-email-input:focus {
    outline: none;
    border-color: #26a69a;
}

#check-sub-btn {
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #26a69a;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

#check-sub-btn:disabled {
    background-color: #9db5b2;
    cursor: not-allowed;
}

#subscription-results-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    text-align: left;
}

.subscription-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.subscription-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
}
.subscription-list li:last-child {
    border-bottom: none;
}
.subscription-list .username {
    font-weight: 600;
}

.plan-details {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-amount {
    font-size: 2.25rem;
    font-weight: 600;
    color: #1a202c;
}

.plan-interval {
    display: block;
    font-size: 1rem;
    color: #718096;
    margin-top: 0.25rem;
}

/* ADDED: Style for the PayPal error message box */
.error-message {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Success Card Styles */
.success-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.success-icon {
    background-color: #28a745;
    color: white;
    font-size: 24px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.success-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.success-header p {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.5rem;
}

.success-details-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.success-details-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.success-details-table tr:last-child td {
    border-bottom: none;
}

.success-details-table td:first-child {
    font-weight: 600;
    color: #4a5568;
    width: 40%;
}

.success-details-table td:last-child {
    color: #2d3748;
    word-break: break-all;
}

/* Action and Results Buttons */
.success-actions,
.results-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.action-button {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    border: none;
    box-sizing: border-box;
}

.save-btn {
    background-color: #26a69a; /* Teal color */
    color: white;
}
.save-btn:hover {
    background-color: #219187;
}

.login-btn {
    background-color: #6c757d; /* Grey color */
    color: white;
}
.login-btn:hover {
    background-color: #5a6268;
}

.close-results-btn {
    background-color: #6c757d;
    color: white;
    margin-top: 1rem;
}
.close-results-btn:hover {
    background-color: #5a6268;
}