.sgag-payment-field {
    margin-top: 4px;
}

.sgag-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sgag-card-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 10px;
}

.sgag-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 24px;
    padding: 2px 7px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #555;
}

.sgag-card-grid {
    display: grid;
    grid-template-columns: minmax(76px, 0.8fr) minmax(92px, 0.9fr) minmax(135px, 1.3fr);
    gap: 10px;
}

.sgag-full {
    grid-column: 1 / -1;
}

.sgag-cvv-wrap {
    position: relative;
}

.sgag-cvv-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
    letter-spacing: 1px;
}

.sgag-input {
    width: 100% !important;
    min-height: 44px;
    box-sizing: border-box;
}

.sgag-cvv-wrap .sgag-input {
    padding-right: 46px !important;
}

.sgag-error {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-left: 4px solid #b42318;
    background: #fff5f4;
    color: #8a1c13;
    font-size: 14px;
    line-height: 1.45;
}

.sgag-error-visible {
    display: block;
}

.sgag-server-error {
    margin-top: 10px;
}

@media (max-width: 640px) {
    .sgag-card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sgag-cvv-wrap {
        grid-column: 1 / -1;
    }
}
