.captcha-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 10px;
}

.captcha-row > input {
    min-width: 0;
}

.captcha-image {
    width: 160px;
    height: 52px;
    padding: 0;
    border: 1px solid #d9e0ec;
    border-radius: 8px;
    background: #f6f8fc;
    overflow: hidden;
    cursor: pointer;
}

.captcha-image img {
    display: block;
    width: 160px;
    height: 52px;
}

.captcha-image:disabled {
    cursor: wait;
    opacity: .65;
}

.captcha-error {
    min-height: 16px;
    color: #d43838;
}

@media (max-width: 440px) {
    .captcha-row {
        grid-template-columns: 1fr 130px;
    }
    .captcha-image,
    .captcha-image img {
        width: 130px;
    }
}

.quota-balance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.quota-balance-item {
    padding: 22px;
    border: 1px solid #dce6f4;
    border-radius: 12px;
    background: #f7faff;
}

.quota-balance-item span,
.quota-balance-item b {
    display: block;
}

.quota-balance-item span {
    color: #6f7a90;
    font-size: 14px;
}

.quota-balance-item b {
    margin-top: 10px;
    color: #1769d2;
    font-size: 38px;
}

.quota-balance-item.quota-empty b {
    color: #d43838;
}

.quota-balance-grid > p {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: #7c879d;
    font-size: 13px;
}

.quota-loading {
    padding: 32px 0;
    color: #7c879d;
    text-align: center;
}

.service-expiry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 15px;
    border: 1px solid #dce6f4;
    border-radius: 12px;
    background: #f6f9ff;
    color: #2459ab;
}

.service-expiry b,
.service-expiry span {
    display: block;
}

.service-expiry span {
    margin-top: 5px;
    color: #7c879d;
    font-size: 12px;
}

.service-expiry strong {
    white-space: nowrap;
    font-size: 13px;
}

.service-expiry-warning {
    border-color: #f2c9a5;
    background: #fff7ed;
    color: #c05a13;
}

@media (max-width: 520px) {
    .quota-balance-grid {
        grid-template-columns: 1fr;
    }
    .quota-balance-grid > p {
        grid-column: auto;
    }
}
