/* static/home/css/checkout-retry.css */
body.checkout-retry-page {
    background-color: #f8f9fa; /* Light background for the page */
}

.checkout-retry-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: var(--font-secondary, sans-serif);
    color: var(--blue, #002fa7);
}

.checkout-retry-container h1 {
    font-family: var(--font-primary, serif);
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: var(--blue, #002fa7);
}

.retry-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.order-summary-retry {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(0, 47, 167, 0.02); /* Subtle blue background */
    border: 1px solid rgba(0, 47, 167, 0.1);
    border-radius: 4px;
}

.order-summary-retry h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--blue, #002fa7);
    border-bottom: 1px solid rgba(0, 47, 167, 0.1);
    padding-bottom: 10px;
}

.retry-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.item-name {
    flex-grow: 1;
}

.item-price {
    font-weight: 500;
}

.retry-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 47, 167, 0.2);
    text-align: right;
    font-size: 18px;
}

#retry-payment-form .element-container {
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(0, 47, 167, 0.1);
    border-radius: 4px;
    background: white;
}

#submit-retry-button {
    width: 100%;
    padding: 14px 24px;
    background: var(--blue, #002fa7);
    color: white;
    border: none;
    border-radius: 99px; /* Pill shape */
    font-family: var(--font-secondary, sans-serif);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#submit-retry-button:hover:not(:disabled) {
    background: var(--blue-dark, #00227a); /* Darker blue on hover */
    transform: translateY(-1px);
}

#submit-retry-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#submit-retry-button .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.error-message {
    display: none; /* Hidden by default, shown by JS */
    color: var(--red, #df1b41);
    background: rgba(223, 27, 65, 0.05);
    padding: 12px;
    border-radius: 4px;
    margin-top: 20px;
    font-family: var(--font-secondary, sans-serif);
    font-size: 14px;
    text-align: center;
}