.giftaccess-topup-player-field {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    margin: 1.5rem 0 1rem;
    max-width: min(100%, 820px);
    padding: 18px;
}

.giftaccess-topup-player-field * {
    box-sizing: border-box;
}

.giftaccess-topup-sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.giftaccess-topup-player-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.giftaccess-topup-player-heading label {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.giftaccess-topup-player-badge {
    align-items: center;
    background: #fff6df;
    border: 1px solid #f1cf85;
    border-radius: 999px;
    color: #7c4a03;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    min-height: 28px;
    padding: 0 10px;
    white-space: nowrap;
}

.giftaccess-topup-verify-row {
    align-items: stretch;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
}

.giftaccess-topup-input-shell {
    min-width: 0;
    position: relative;
}

.giftaccess-topup-player-input {
    background: #ffffff;
    border: 1px solid #cfd8e6;
    border-radius: 8px;
    color: #111827;
    font-size: 16px;
    min-height: 54px;
    min-width: 0;
    padding: 0 44px 0 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    width: 100%;
}

.giftaccess-topup-player-input:focus {
    border-color: #2f80ed;
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.14);
    outline: 0;
}

.giftaccess-topup-input-state {
    border: 2px solid #94a3b8;
    border-radius: 50%;
    height: 14px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
}

.giftaccess-topup-player-field.is-loading .giftaccess-topup-input-state {
    animation: giftaccessTopupInputSpin 0.8s linear infinite;
    border-color: #2f80ed #2f80ed #2f80ed transparent;
}

.giftaccess-topup-player-field.is-verified .giftaccess-topup-input-state {
    background: #16a34a;
    border-color: #16a34a;
}

.giftaccess-topup-player-field.is-error .giftaccess-topup-input-state {
    background: #dc2626;
    border-color: #dc2626;
}

.giftaccess-topup-verify-button {
    align-items: center;
    background: #d79b32;
    border: 1px solid #bf8525;
    border-radius: 8px;
    color: #111827;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    letter-spacing: 0;
    min-height: 54px;
    min-width: 146px;
    padding: 0 20px;
    text-transform: uppercase;
    transition: transform 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
    white-space: nowrap;
}

.giftaccess-topup-verify-button:hover,
.giftaccess-topup-verify-button:focus {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.giftaccess-topup-verify-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.giftaccess-topup-spinner {
    border: 2px solid rgba(17, 24, 39, 0.25);
    border-left-color: #111827;
    border-radius: 50%;
    display: none;
    height: 14px;
    width: 14px;
}

.giftaccess-topup-player-field.is-loading .giftaccess-topup-spinner {
    animation: giftaccessTopupSpin 0.8s linear infinite;
    display: inline-block;
}

.giftaccess-topup-required-note {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    margin: 12px 0 0;
}

.giftaccess-topup-verify-result {
    margin-top: 14px;
}

.giftaccess-topup-result-card {
    align-items: flex-start;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    padding: 14px;
}

.giftaccess-topup-result-card strong {
    color: #111827;
    display: block;
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.giftaccess-topup-result-card p {
    color: #475569;
    display: grid;
    gap: 4px;
    line-height: 1.45;
    margin: 6px 0 0;
}

.giftaccess-topup-result-icon {
    border-radius: 50%;
    flex: 0 0 28px;
    height: 28px;
    margin-top: 1px;
    position: relative;
    width: 28px;
}

.giftaccess-topup-result-success {
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.giftaccess-topup-result-success .giftaccess-topup-result-icon {
    background: #16a34a;
}

.giftaccess-topup-result-success .giftaccess-topup-result-icon:after {
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    content: "";
    height: 10px;
    left: 10px;
    position: absolute;
    top: 6px;
    transform: rotate(45deg);
    width: 6px;
}

.giftaccess-topup-result-error {
    background: #fef2f2;
    border-color: #fecaca;
}

.giftaccess-topup-result-error .giftaccess-topup-result-icon {
    background: #dc2626;
}

.giftaccess-topup-result-error .giftaccess-topup-result-icon:before,
.giftaccess-topup-result-error .giftaccess-topup-result-icon:after {
    background: #ffffff;
    content: "";
    height: 2px;
    left: 8px;
    position: absolute;
    top: 13px;
    width: 12px;
}

.giftaccess-topup-result-error .giftaccess-topup-result-icon:before {
    transform: rotate(45deg);
}

.giftaccess-topup-result-error .giftaccess-topup-result-icon:after {
    transform: rotate(-45deg);
}

.giftaccess-topup-result-loading {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.giftaccess-topup-result-loading .giftaccess-topup-result-icon {
    border: 3px solid #93c5fd;
    border-left-color: #2563eb;
    animation: giftaccessTopupSpin 0.8s linear infinite;
}

.giftaccess-topup-player-field.is-verified {
    border-color: rgba(22, 163, 74, 0.45);
}

.giftaccess-topup-player-field.is-error {
    border-color: rgba(220, 38, 38, 0.45);
}

@keyframes giftaccessTopupSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes giftaccessTopupInputSpin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media (max-width: 640px) {
    .giftaccess-topup-player-field {
        padding: 14px;
    }

    .giftaccess-topup-player-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .giftaccess-topup-player-badge {
        width: 100%;
    }

    .giftaccess-topup-verify-row {
        grid-template-columns: 1fr;
    }

    .giftaccess-topup-result-card {
        padding: 12px;
    }
}
