/* Shared compact UPI amount + Pay widget (payment-fee, student-zone) */
.student-upi-quick-pay,
.upi-direct-pay {
    max-width: 420px;
    margin: 0 auto;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
    border: 1px solid rgba(27, 138, 74, 0.18);
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
}

.student-upi-quick-pay__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.student-upi-quick-pay__head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-red, #c62828);
}

.student-upi-quick-pay__head img {
    height: 22px;
    width: auto;
}

.student-upi-quick-pay__note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

.student-upi-quick-pay__note a {
    color: var(--primary-red, #c62828);
    font-weight: 700;
    text-decoration: none;
}

.student-upi-quick-pay__note a:hover {
    text-decoration: underline;
}

.upi-direct-pay__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
}

.upi-direct-pay__id {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-red, #c62828);
    letter-spacing: 0.2px;
    cursor: pointer;
    line-height: 1.3;
    white-space: nowrap;
    max-width: 100%;
}

.upi-direct-pay__id:hover {
    text-decoration: underline;
}

.upi-direct-pay__id.is-copied {
    color: #2e7d32;
}

.upi-direct-pay__amount-wrap {
    flex: 1 1 0;
    min-width: 72px;
    display: flex;
    align-items: stretch;
    margin: 0;
    border: 2px solid #eef0f3;
    border-radius: 8px;
    overflow: hidden;
    background: #fcfcfc;
}

.upi-direct-pay__amount-wrap:focus-within {
    border-color: var(--primary-red, #c62828);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-red, #c62828) 12%, transparent);
}

.upi-direct-pay__currency {
    display: flex;
    align-items: center;
    padding: 0 8px;
    background: #f0f0f0;
    font-weight: 700;
    color: var(--text-dark, #333);
    font-size: 14px;
}

.upi-direct-pay__amount {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    padding: 10px 8px;
    font-size: 15px;
    font-weight: 700;
    background: transparent;
    color: var(--text-dark, #333);
}

.upi-direct-pay__amount:focus {
    outline: none;
}

.upi-direct-pay__amount-wrap.is-over-limit {
    border-color: var(--primary-red, #c62828);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-red, #c62828) 15%, transparent);
}

.upi-direct-pay__amount-wrap.is-over-limit .upi-direct-pay__currency,
.upi-direct-pay__amount-wrap.is-over-limit .upi-direct-pay__amount {
    color: var(--primary-red, #c62828);
}

.upi-direct-pay__pay-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 72px;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-red, #c62828), var(--accent-red, #b71c1c));
    color: white;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-red, #c62828) 30%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upi-direct-pay__pay-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-red, #c62828) 40%, transparent);
}

.upi-direct-pay__pay-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    box-shadow: none;
}

.upi-direct-pay__error {
    display: none;
    margin-top: 10px;
    padding: 8px 10px;
    background: #ffebee;
    color: #c62828;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
}

.upi-direct-pay__error.is-visible {
    display: block;
}

@media (max-width: 380px) {
    .upi-direct-pay__id { font-size: 11px; }
    .upi-direct-pay__pay-btn { min-width: 64px; padding: 10px 10px; font-size: 13px; }
    .upi-direct-pay__amount { font-size: 14px; }
}
