:root {
    --ink: #111827;
    --muted: #5d6675;
    --soft: #8b94a3;
    --line: #e3e7ed;
    --paper: #fff;
    --bg: #f5f6f8;
    --pink: #ff3f6c;
    --pink-dark: #ef2e5d;
    --pink-soft: #fff1f4;
    --green: #05a978;
    --orange: #ff5a36;
    --shadow: 0 4px 16px rgba(17, 24, 39, .045)
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
    color: var(--ink);
    background: #f1f2f4
}

body {
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility
}

button,
a {
    font: inherit
}

a {
    text-decoration: none;
    color: inherit
}

button {
    touch-action: manipulation
}

.phone {
    width: 100%;
    max-width: 398px;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    padding-bottom: 104px;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, .035)
}

.topbar {
    height: 60px;
    background: #fff;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 0 17px;
    position: sticky;
    top: 0;
    z-index: 12
}

.back {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    color: var(--ink);
    border-radius: 50%
}

.back:active {
    background: #f3f4f6
}

.back svg {
    width: 21px;
    height: 21px
}

.title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .01em;
    margin-left: 8px
}

.step {
    margin-left: auto;
    font-size: 10.5px;
    color: #343a46;
    font-weight: 800;
    letter-spacing: .05em
}

.card {
    background: #fff;
    margin: 10px 10px 0;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden
}

.address-card {
    padding: 13px 14px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center
}

.address-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pink-soft);
    display: grid;
    place-items: center;
    color: var(--pink)
}

.address-icon svg {
    width: 20px;
    height: 20px
}

.address-copy {
    min-width: 0;
    font-size: 11px;
    color: #536070;
    line-height: 1.4
}

.address-copy strong {
    display: block;
    font-size: 13px;
    color: var(--ink);
    font-weight: 800;
    margin: 1px 0 2px
}

.address-line {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.change {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--pink);
    padding: 7px 0 7px 5px;
    white-space: nowrap
}

.offer {
    margin: 10px 10px 0;
    padding: 12px 13px;
    background: linear-gradient(135deg, #fff8f0, #fff1f5);
    border: 1px solid #ffe0d6;
    border-radius: 13px;
    display: flex;
    gap: 10px;
    align-items: center
}

.offer-icon {
    width: 33px;
    height: 33px;
    min-width: 33px;
    border-radius: 10px;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--orange);
    box-shadow: 0 2px 8px rgba(255, 90, 54, .12)
}

.offer-icon svg {
    width: 20px;
    height: 20px
}

.offer-copy {
    font-size: 10.5px;
    color: #555d69;
    line-height: 1.35
}

.offer-copy strong {
    display: block;
    font-size: 11.5px;
    color: #252b36;
    margin-bottom: 1px
}

.offer-copy em {
    color: var(--pink);
    font-style: normal;
    font-weight: 800
}

.bulk {
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid var(--line);
    background: #fff
}

.check {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1.5px solid #9aa2af;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: none;
    padding: 0;
    color: #fff
}

.check.active {
    background: var(--pink);
    border-color: var(--pink)
}

.check svg {
    width: 13px;
    height: 13px;
    opacity: 0
}

.check.active svg {
    opacity: 1
}

.bulk-label {
    font-size: 11px;
    color: #4b5563;
    font-weight: 800
}

.bulk-total {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--pink);
    font-weight: 900
}

.bulk-remove {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #6f7784;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    padding: 0
}

.bulk-remove:disabled {
    opacity: .35;
    cursor: not-allowed
}

.bulk-remove:active {
    background: #fff1f4;
    color: var(--pink)
}

.bulk-remove svg {
    width: 17px;
    height: 17px
}

.section-head {
    padding: 13px 13px 7px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.section-title {
    margin: 0;
    font-size: 11.5px;
    letter-spacing: .035em;
    color: #1f2937;
    font-weight: 850;
    text-transform: uppercase
}

.section-count {
    font-size: 10px;
    color: #8b94a3;
    font-weight: 700
}

.items {
    padding: 0 10px 8px
}

.item {
    position: relative;
    display: grid;
    grid-template-columns: 22px 78px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #e7eaf0;
    transition: opacity .16s ease, transform .16s ease
}

.item:first-child {
    border-top: 0
}

.item.updating {
    opacity: .45;
    pointer-events: none
}

.item.removing {
    opacity: 0;
    transform: translateX(14px) scale(.985);
    pointer-events: none
}

.item-check {
    margin-top: 2px
}

.image-wrap {
    width: 78px;
    height: 96px;
    background: #fafafa;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid #e5e8ed;
    display: grid;
    place-items: center;
    padding: 2px
}

.image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.item-info {
    min-width: 0;
    padding-right: 25px
}

.brand {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 850;
    margin: 0 0 3px
}

.name {
    font-size: 10.7px;
    color: #4b5563;
    line-height: 1.35;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 29px
}

.meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 7px 0 6px;
    align-items: center
}

.chip {
    height: 25px;
    display: inline-flex;
    align-items: center;
    background: #f5f6f8;
    border-radius: 6px;
    padding: 0 7px;
    font-size: 9.5px;
    font-weight: 750;
    color: #303744;
    border: 1px solid #e8ebef;
    white-space: nowrap
}

.qty {
    height: 25px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #dfe3e8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff
}

.qty button {
    width: 26px;
    height: 25px;
    border: 0;
    background: #fff;
    color: #111827;
    font-size: 17px;
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0
}

.qty button:active {
    background: #f3f4f6
}

.qty button:disabled {
    color: #c7ccd3;
    background: #fafafa
}

.qty span {
    min-width: 28px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 850;
    border-left: 1px solid #eceff2;
    border-right: 1px solid #eceff2;
    height: 25px;
    line-height: 25px
}

.remove {
    position: absolute;
    right: -1px;
    top: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #8a929f;
    display: grid;
    place-items: center;
    border-radius: 50%;
    cursor: pointer;
    padding: 0
}

.remove:active {
    background: #fff1f4;
    color: var(--pink)
}

.remove svg {
    width: 16px;
    height: 16px
}

.prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap
}

.sell {
    font-size: 13px;
    font-weight: 900
}

.mrp {
    font-size: 10px;
    color: #949ba7;
    text-decoration: line-through
}

.off {
    font-size: 10px;
    color: var(--pink);
    font-weight: 850
}

.return {
    font-size: 9.8px;
    color: #4b5563;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px
}

.return svg {
    width: 12px;
    height: 12px;
    color: var(--green)
}

.free-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e9fbf3;
    color: #087a52;
    font-size: 8.8px;
    font-weight: 900;
    letter-spacing: .02em;
    border: 1px solid #c9f1df
}

.wish {
    height: 49px;
    margin: 10px 10px 0;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 750;
    color: #333b48;
    box-shadow: var(--shadow)
}

.wish svg {
    width: 18px;
    height: 18px;
    margin-right: 10px
}

.wish .arrow {
    margin-left: auto;
    margin-right: 0
}

.price-box {
    padding: 0 14px 13px
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 11.5px;
    color: #414a58
}

.price-row .value {
    color: #111827;
    white-space: nowrap;
    font-weight: 650
}

.price-row.discount,
.price-row.discount .value {
    color: var(--green);
    font-weight: 750
}

.price-row.total {
    border-top: 1px solid var(--line);
    margin-top: 4px;
    padding: 11px 0 1px;
    font-size: 13.5px;
    font-weight: 850;
    color: #111827
}

.price-row.total .value {
    font-size: 16px;
    font-weight: 900;
    color: var(--pink)
}

.free {
    color: var(--green) !important;
    font-weight: 850 !important
}

.trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 11px 7px;
    background: #fff
}

.trust-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 8.8px;
    color: #424b59;
    line-height: 1.2;
    font-weight: 650;
    border-left: 1px solid #e4e7ec;
    text-align: center;
    padding: 0 4px
}

.trust-item:first-child {
    border-left: 0
}

.trust svg {
    width: 27px;
    height: 27px;
    color: #647084
}

.terms {
    padding: 11px 18px 13px;
    font-size: 10px;
    line-height: 1.42;
    color: #4b5563;
    text-align: center
}

.terms a {
    color: var(--pink);
    font-weight: 800
}

.sticky {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    max-width: 398px;
    background: #fff;
    z-index: 20;
    box-shadow: 0 -8px 24px rgba(17, 24, 39, .09);
    border-top: 1px solid #dfe3e8;
    border-radius: 14px 14px 0 0
}

.selection-note {
    text-align: center;
    font-size: 9.5px;
    font-weight: 800;
    color: #3f4754;
    padding: 7px 8px 0
}

.bottom {
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 10px;
    align-items: center
}

.payable small {
    display: block;
    font-size: 8.7px;
    color: #8a93a2;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 3px
}

.payable strong {
    display: block;
    font-size: 20px;
    line-height: 1.05
}

.place {
    width: 100%;
    height: 49px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(255, 63, 108, .22)
}

.place:disabled {
    opacity: .45;
    box-shadow: none;
    cursor: not-allowed
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 108px;
    transform: translate(-50%, 14px);
    width: calc(100% - 28px);
    max-width: 370px;
    background: #172033;
    color: #fff;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 11.5px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: .2s;
    z-index: 40;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2)
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0)
}

.empty-state {
    padding: 50px 24px;
    text-align: center
}

.empty-state h2 {
    font-size: 18px;
    margin: 12px 0 7px
}

.empty-state p {
    font-size: 12px;
    color: #687181;
    line-height: 1.5
}

.empty-state a {
    display: inline-flex;
    margin-top: 12px;
    background: var(--pink);
    color: #fff;
    height: 43px;
    padding: 0 20px;
    align-items: center;
    border-radius: 8px;
    font-weight: 850;
    font-size: 12px
}

@media(min-width:399px) {
    .phone {
        margin: 16px 0;
        min-height: calc(100vh - 32px);
        border-radius: 14px;
        overflow: hidden
    }

    .sticky {
        border-radius: 14px 14px 0 0
    }
}

.checkout-grid,
.checkout-primary,
.checkout-sidebar {
    display: contents
}