.twe-balance-checker {
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid rgba(41, 48, 43, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(26, 35, 29, 0.08);
    color: #253029;
    font-family: inherit;
}

.twe-balance-checker *,
.twe-balance-checker *::before,
.twe-balance-checker *::after {
    box-sizing: border-box;
}

.twe-balance-form {
    margin: 0;
}

.twe-balance-label {
    display: block;
    margin: 0 0 9px;
    color: #253029;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.twe-balance-controls {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.twe-balance-input {
    min-width: 0;
    flex: 1 1 auto;
    height: 52px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #b9c0bb;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: #18201b;
    font: inherit;
    font-size: 1rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.twe-balance-input::placeholder {
    color: #8b928e;
    opacity: 1;
}

.twe-balance-input:focus {
    border-color: #526b5c;
    box-shadow: 0 0 0 3px rgba(82, 107, 92, 0.14);
}

.twe-balance-submit {
    display: inline-flex;
    min-width: 154px;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 0 22px;
    border: 1px solid #637696 !important;
    border-radius: 9px;
    background: #637696;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.twe-balance-submit:hover,
.twe-balance-submit:focus-visible {
    border-color: #4e658b;
    background: #4e658b;
}

.twe-balance-submit:focus-visible {
    outline: 3px solid rgba(82, 107, 92, 0.25);
    outline-offset: 2px;
}

.twe-balance-submit:disabled {
    cursor: wait;
    opacity: 0.78;
}

.twe-balance-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: twe-balance-spin 700ms linear infinite;
}

.twe-balance-checker.is-loading .twe-balance-spinner {
    display: inline-block;
}

.twe-balance-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.twe-balance-message {
    min-height: 1.4em;
    margin-top: 14px;
    color: #4f5a53;
    font-size: 0.91rem;
    line-height: 1.5;
}

.twe-balance-error {
    color: #9c2f2f;
}

.twe-balance-result {
    margin-top: 27px;
    padding: clamp(24px, 5vw, 38px) 20px;
    border-radius: 12px;
    background: #f3f5f1;
    text-align: center;
}

.twe-balance-result[hidden] {
    display: none;
}

.twe-balance-tier,
.twe-balance-caption,
.twe-balance-amount {
    margin: 0;
}

.twe-balance-tier {
    color: #35493d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.twe-balance-caption {
    margin-top: 22px;
    color: #657068;
    font-size: 0.9rem;
}

.twe-balance-amount {
    margin-top: 5px;
    color: #17251d;
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

@keyframes twe-balance-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .twe-balance-checker {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .twe-balance-controls {
        flex-direction: column;
    }

    .twe-balance-input,
    .twe-balance-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .twe-balance-input,
    .twe-balance-submit {
        transition: none;
    }
}
