.ub-pill-switch {
    --ub-pill-gap: 8px;
    --ub-pill-pad: 7px;
    --ub-pill-shift: 0px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ub-pill-gap);
    width: min(420px, calc(100% - 32px));
    margin: 0 auto 12px auto;
    padding: var(--ub-pill-pad);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.ub-pill-switch.is-shop {
    --ub-pill-shift: calc(100% + var(--ub-pill-gap));
}

.ub-pill-indicator {
    position: absolute;
    top: var(--ub-pill-pad);
    left: var(--ub-pill-pad);
    width: calc((100% - (var(--ub-pill-pad) * 2) - var(--ub-pill-gap)) / 2);
    height: calc(100% - (var(--ub-pill-pad) * 2));
    border-radius: 999px;
    background: #f05505;
    box-shadow: none;
    transform: translateX(var(--ub-pill-shift));
    transition: transform .26s ease;
    z-index: 0;
}

.ub-pill-btn {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 132px;
    border: 0;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    background: transparent;
    color: #f05505;
    transition: color .2s ease, transform .2s ease;
}

.ub-pill-btn.is-active {
    color: #ffffff;
    transform: translateY(-1px);
}

.ub-status-banner {
    margin: 0 16px 10px 16px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.3;
}

.ub-status-banner.is-info {
    background: #fff3e8;
    color: #9a4b16;
}

.ub-status-banner.is-success {
    background: #eaf9ef;
    color: #217543;
}

.ub-status-banner.is-error {
    background: #fdecec;
    color: #9f2f2f;
}

.ub-edit-card {
    margin-bottom: 14px;
}

.ub-tab-panel {
    margin-bottom: 92px;
}

.ub-section-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 800;
    color: #f05505;
}

.ub-section-title--address {
    margin-top: 20px;
}

.ub-label {
    display: block;
    margin: 0 0 4px 2px;
    font-size: 11px;
    font-weight: 700;
    color: #6a6a6a;
    text-transform: uppercase;
    letter-spacing: .2px;
}

.ub-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ub-inline-actions--status {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 12px !important;
}

.ub-inline-actions--status .btn {
    width: 100%;
    min-height: 42px;
}

#email-verify-state,
#address-lookup-state {
    display: block;
    min-height: 14px;
    padding-left: 2px;
    line-height: 1.35;
    font-size: 12px !important;
}

.ub-inline-actions--email {
    margin-bottom: 18px !important;
}

.ub-inline-actions--address {
    margin-top: 2px;
    margin-bottom: 8px !important;
    gap: 4px;
}

.ub-inline-actions--address #address-lookup-state {
    min-height: 0;
    margin-top: 0;
}

.ub-email-pin-wrap {
    margin-bottom: 12px;
}

.ub-pin-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ub-pin-input {
    flex: 0 0 112px;
    max-width: 112px;
    min-height: 42px;
    text-align: center;
    letter-spacing: 1.4px;
    font-size: 16px;
    font-weight: 700;
}

#email-verify-confirm {
    flex: 1 1 auto;
    min-height: 42px;
}

.ub-save-btn {
    background-color: #8cc152 !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 12px 22px rgba(40, 167, 69, 0.28), 0 3px 8px rgba(40, 167, 69, 0.16);
    transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ub-save-btn:hover,
.ub-save-btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.ub-save-btn:active {
    transform: translateY(1px);
}

.ub-divider {
    height: 1px;
    margin: 18px 0;
    background: #eceff3;
}

#edit-street[readonly],
#edit-city[readonly] {
    background: #f5f5f5;
    color: #666;
}

.ub-danger-card {
    border: 1px solid #f1d5d5;
}

.ub-btn-danger {
    background: #c62828 !important;
    color: #fff !important;
    border-radius: 10px !important;
}

.ub-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ub-delete-modal-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.ub-delete-modal-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
}

.ub-delete-modal-text {
    margin: 0 0 18px 0;
    color: #555;
    line-height: 1.45;
}

.ub-delete-modal-actions {
    display: flex;
    gap: 10px;
}

.ub-delete-modal-actions .btn {
    flex: 1;
}

.ub-shop-warning {
    margin: 0 0 10px 2px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #ffdcb5;
    background: #fff5e8;
    font-size: 12px;
    line-height: 1.35;
    color: #8b5f22;
}

.ub-shop-warning::before {
    content: "\f05a";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #f05505;
    line-height: 1.2;
    margin-top: 1px;
}

.ub-shop-warning.is-limit {
    border-color: #f4cbcb;
    background: #fdecec;
    color: #8f2b2b;
}

.ub-shop-warning.is-limit::before {
    color: #c62828;
}

.ub-bank-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 13px;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    background: #f8fafc;
}

.ub-bank-summary span,
.ub-bank-summary strong {
    display: block;
}

.ub-bank-summary span {
    color: #667080;
    font-size: 11px;
}

.ub-bank-summary strong {
    color: #22242b;
    font-size: 15px;
}

.ub-bank-summary em {
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef2f6;
    color: #667080;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.ub-bank-summary em[data-tone="success"] { background: #e9f7ed; color: #2d9f4b; }
.ub-bank-summary em[data-tone="warning"] { background: #fff2ce; color: #a76b00; }
.ub-bank-summary em[data-tone="danger"] { background: #fdecec; color: #a52f2f; }

.ub-bank-change-btn {
    border: 1px solid #f95c00 !important;
    background: #fff !important;
    color: #f95c00 !important;
}

.ub-bank-change-modal-card {
    max-width: 460px;
}

.ub-bank-change-modal-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 50%;
    background: #fff1e8;
    color: #f05505;
    font-size: 18px;
}

.ub-bank-change-warning {
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid #ffd5b9;
    border-radius: 11px;
    background: #fff7f1;
    color: #7e4b2c;
    font-size: 12px;
    line-height: 1.45;
}

.ub-bank-change-error {
    margin: 4px 0 12px;
    color: #b3261e;
    font-size: 12px;
    font-weight: 600;
}

.ub-bank-change-modal-actions {
    margin-top: 18px;
}

.ub-bank-change-cancel {
    border: 0;
    border-radius: 10px !important;
    background: #eceff1 !important;
    color: #1e1e1e !important;
}

@media (min-width: 480px) {
    .ub-inline-actions--status {
        align-items: center;
        flex-direction: row;
    }

    .ub-inline-actions--status .btn {
        width: auto;
        min-width: 170px;
    }
}
