/* Address / checkout step UI — Meesho-like full-height shell */

html:has(body.store-address) {
    background: #f0f0f5 !important;
}

body.store-address {
    background: #f0f0f5 !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
}

body.store-address #container,
body.store-address ._2dxSCm,
body.store-address ._3CzzrP {
    width: 100% !important;
    max-width: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: #f0f0f5 !important;
    background-color: #f0f0f5 !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
}

body.store-address #container {
    overflow: visible !important;
}

body.store-address ._38U37R {
    width: 100% !important;
    max-width: 480px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: #fff !important;
    min-height: 0 !important;
    height: auto !important;
}

body.store-address .site-footer,
body.store-address .header-menu,
body.store-address .search-bar {
    display: none !important;
}

body.store-address ._1FWdmb {
    background: #fff !important;
    border-bottom: 1px solid #eee;
}

body.store-address .header-title::after {
    content: "ADDRESS";
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #333;
}

.addr-page {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background: #f0f0f5 !important;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    box-sizing: border-box;
}

.addr-page .addr-list-view {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background: #f0f0f5;
}

.addr-page .addr-list {
    flex: 1 1 auto;
    margin-top: 8px;
    background: #f0f0f5;
}

.addr-page .cart-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #eee;
}

.addr-page .cart-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 52px;
}

.addr-page .cart-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8e8ed;
    color: #9e9e9e;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.addr-page .cart-step-label {
    font-size: 11px;
    color: #9e9e9e;
    font-weight: 500;
}

.addr-page .cart-step.is-done .cart-step-num {
    background: #2874f0;
    color: #fff;
}

.addr-page .cart-step.is-active .cart-step-num {
    background: #fff;
    color: #2874f0;
    border: 2px solid #2874f0;
}

.addr-page .cart-step.is-active .cart-step-label,
.addr-page .cart-step.is-done .cart-step-label {
    color: #212121;
    font-weight: 600;
}

.addr-page .cart-step-line {
    flex: 1;
    height: 2px;
    background: #e8e8ed;
    margin: 0 4px 18px;
}

.addr-page .cart-step-line.is-done {
    background: #2874f0;
}

.addr-add-row {
    display: block;
    background: #fff;
    margin-top: 8px;
    padding: 16px;
    color: #0d9488 !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    text-transform: uppercase;
}

.addr-card {
    position: relative;
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.addr-card.is-selected {
    background: #ccfbf1;
}

.addr-card-radio {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #c2c2c2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.addr-card.is-selected .addr-card-radio {
    border-color: #0d9488;
}

.addr-card.is-selected .addr-card-radio::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d9488;
}

.addr-card-name {
    margin: 0 28px 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.addr-card-text {
    margin: 0 28px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    white-space: pre-line;
}

.addr-card-edit {
    display: none;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: #0d9488;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0;
    cursor: pointer;
    text-transform: uppercase;
}

.addr-card.is-selected .addr-card-edit {
    display: inline-block;
}

.addr-deliver-btn {
    display: none;
    width: 100%;
    margin-top: 14px;
    border: 0;
    border-radius: 4px;
    background: #0d9488;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 16px;
    cursor: pointer;
}

.addr-card.is-selected .addr-deliver-btn {
    display: block;
}

.addr-form-wrap {
    background: #fff;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
}

.addr-form-header {
    display: none;
}

.addr-form-section {
    padding: 16px 16px 8px;
}

.addr-form-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.addr-form-section-title h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

.addr-form-section-title h3 i {
    color: #2874f0;
    font-size: 16px;
}

.addr-locate-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #0d9488;
    border-radius: 4px;
    background: #fff;
    color: #0d9488;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.addr-field {
    margin-bottom: 4px;
}

.addr-field input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e0e0e0;
    background: transparent;
    padding: 14px 2px;
    font-size: 14px;
    color: #333;
    outline: none;
    border-radius: 0;
}

.addr-field input:focus {
    border-bottom-color: #0d9488;
}

.addr-field input::placeholder {
    color: #a0a8b8;
}

.addr-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.addr-form-actions {
    padding: 20px 16px 28px;
}

.addr-save-btn {
    width: 100%;
    border: 0;
    border-radius: 4px;
    background: #0d9488;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 16px;
    cursor: pointer;
    text-transform: uppercase;
}

.addr-cancel-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: #878787;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
}

.addr-empty-hint {
    margin: 24px 16px;
    text-align: center;
    color: #878787;
    font-size: 14px;
}

.addr-page.is-form-mode .addr-list-view {
    display: none;
}

.addr-page.is-form-mode .addr-form-view {
    display: block;
}

.addr-page:not(.is-form-mode) .addr-form-view {
    display: none;
}

body.store-address.is-addr-form .header-title::after {
    content: "ADD DELIVERY ADDRESS";
    font-size: 13px;
    letter-spacing: 0.03em;
}
