.bc-payment-wrapper {
    max-width: 700px;
    margin: 0 auto;
    font-family: inherit;
}

.bc-payment-header {
    margin-bottom: 2rem;
    text-align: center;
}

.bc-payment-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.bc-payment-header p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.bc-payment-option {
    background: #f9f9fb;
    border: 1px solid #e2e2e8;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    transition: box-shadow 0.2s;
}

.bc-payment-option:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.bc-payment-option h3 {
    font-size: 1.15rem;
    margin: 0 0 0.4rem 0;
    color: #1a1a2e;
}

.bc-payment-option p {
    color: #666;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
}

.bc-amount-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.bc-amount-group label {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    color: #333;
}

.bc-amount-input {
    width: 160px;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    text-align: right;
}

.bc-amount-input:focus {
    outline: none;
    border-color: #3e64de;
    box-shadow: 0 0 0 2px rgba(62,100,222,0.15);
}

.bc-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

.bc-btn:active {
    transform: scale(0.98);
}

.bc-btn-primary, a.bc-btn-primary, a.bc-btn-primary:hover, a.bc-btn-primary:visited, a.bc-btn-primary:focus, a.bc-btn-primary:active {
    background: #3e64de;
    color: #fff !important;
}

.bc-btn-primary:hover {
    background: #2f51c4;
    color: #fff;
}

.bc-btn-secondary {
    background: #e8e8ee;
    color: #444;
}

.bc-btn-secondary:hover {
    background: #d8d8e2;
    color: #333;
}

.bc-free-option {
    text-align: center;
    background: transparent;
    border: 1px dashed #ccc;
}

.bc-paypal-option {
    border-style: dashed;
    background: #fffdf5;
}

.bc-payment-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.bc-payment-box {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem;
    background: #f9f9fb;
    border-radius: 12px;
    border: 1px solid #e2e2e8;
}

.bc-payment-success {
    background: #f0fdf4;
    border-color: #a7f3d0;
}

.bc-payment-success h3 {
    color: #166534;
}

.bc-payment-failure {
    background: #fef2f2;
    border-color: #fca5a5;
}

.bc-payment-failure h3 {
    color: #991b1b;
}

.bc-redirect-notice {
    margin-top: 1rem;
    color: #888;
    font-size: 0.9rem;
}

.bc-course-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.bc-course-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
}

.bc-course-list li a {
    color: #3e64de;
    text-decoration: none;
    font-weight: 500;
}

.bc-course-list li a:hover {
    text-decoration: underline;
}

.bc-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .bc-amount-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .bc-amount-input {
        width: 100%;
    }
    .bc-payment-option {
        padding: 1rem;
    }
}

/* ── Radio button group ── */
.bc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.bc-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border: 2px solid #e2e2e8;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.bc-radio-label:hover {
    border-color: #3e64de;
    background: #f5f7ff;
}

.bc-radio-label input[type="radio"] {
    margin-top: 3px;
    accent-color: #3e64de;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.bc-radio-label input[type="radio"]:checked ~ .bc-radio-text {
    color: #1a1a2e;
}

.bc-radio-label:has(input:checked) {
    border-color: #3e64de;
    background: #f5f7ff;
}

.bc-radio-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.bc-radio-text strong {
    font-size: 1rem;
    color: #1a1a2e;
}

.bc-radio-text small {
    font-size: 0.85rem;
    color: #888;
}

/* ── Separator ── */
.bc-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #999;
    font-size: 0.9rem;
}

.bc-separator::before,
.bc-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.bc-separator span {
    padding: 0 1rem;
}

/* ── MP option box ── */
.bc-mp-option {
    background: #f5f7ff;
    border-color: #c7d2fe;
}

#bc-mp-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
