:root {
    --cart-ink: #202321;
    --cart-muted: #68706a;
    --cart-line: #dde2dc;
    --cart-soft: #f5f6f3;
    --cart-orange: #ee7202;
    --cart-green: #2f8757;
}

.ek-cart-page { padding: 48px 0 96px; background: #f5f6f3; color: var(--cart-ink); }
.ek-cart-page > .container { max-width: 1440px; }
.ek-cart-page *, .ek-cart-page *::before, .ek-cart-page *::after { box-sizing: border-box; }

.ek-cart-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(560px, 1.15fr); align-items: end; gap: 64px; margin-bottom: 34px; padding: 6px 4px; }
.ek-cart-eyebrow, .ek-cart-summary-kicker, .ek-cart-section-heading > div > span { display: block; margin-bottom: 8px; color: var(--cart-orange); font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.ek-cart-hero h1 { margin: 0 0 10px; color: var(--cart-ink); font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.045em; text-transform: none; }
.ek-cart-hero p { max-width: 580px; margin: 0; color: var(--cart-muted); font-size: 16px; line-height: 1.55; }
.ek-cart-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 8px; padding: 0; list-style: none; }
.ek-cart-steps::before { position: absolute; top: 21px; right: 16.66%; left: 16.66%; height: 2px; background: #d9ddd8; content: ''; }
.ek-cart-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; color: #969c97; }
.ek-cart-steps li span { display: grid; width: 44px; height: 44px; place-items: center; border: 2px solid #d7dbd6; border-radius: 50%; background: #f5f6f3; font-size: 14px; font-weight: 900; }
.ek-cart-steps li strong { font-size: 12px; font-weight: 850; }
.ek-cart-steps li.is-active { color: var(--cart-ink); }
.ek-cart-steps li.is-active span { border-color: var(--cart-orange); background: var(--cart-orange); color: #fff; box-shadow: 0 8px 20px rgba(238,114,2,.2); }

.ek-cart-editor-content:empty, .ek-cart-messages:empty { display: none; }
.ek-cart-editor-content { margin-bottom: 24px; }
.ek-cart-messages .alert { margin: 0 0 22px; border-radius: 14px; }
.ek-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 410px; align-items: start; gap: 28px; }
.ek-cart-products { min-width: 0; }
.ek-cart-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; padding: 0 4px; }
.ek-cart-section-heading h2 { margin: 0; color: var(--cart-ink); font-size: 25px; line-height: 1.15; text-transform: none; }
.ek-cart-section-heading > strong { padding: 7px 12px; border-radius: 999px; background: #e9ece8; color: #5c645e; font-size: 12px; white-space: nowrap; }
.ek-cart-items { display: grid; gap: 14px; }

.ek-cart-item { display: grid; grid-template-columns: 178px minmax(0, 1fr) 190px; min-height: 220px; overflow: hidden; border: 1px solid var(--cart-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 32px rgba(30,37,32,.05); }
.ek-cart-item-media { display: flex; min-width: 0; align-items: center; justify-content: center; padding: 20px; border-right: 1px solid #e5e8e4; background: radial-gradient(circle at 50% 38%, #fff 0, #f3f4f1 72%); }
.ek-cart-item-media img, .ek-cart-item-media svg, .ek-cart-item-media canvas { display: block; width: 100%; max-width: 138px; max-height: 174px; object-fit: contain; }
.ek-cart-media-placeholder { display: grid; width: 76px; height: 76px; place-items: center; border-radius: 50%; background: #fff; color: #9da39e; box-shadow: 0 8px 24px rgba(28,34,30,.08); }
.ek-cart-media-placeholder i { font-size: 30px; }
.ek-cart-item-content { min-width: 0; padding: 25px 28px 22px; }
.ek-cart-item-kicker { display: block; margin-bottom: 7px; color: var(--cart-green); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.ek-cart-item-content h2 { margin: 0 0 15px; color: var(--cart-ink); font-size: 21px; line-height: 1.2; text-transform: none; }
.ek-cart-item-content h2 a { color: inherit; text-decoration: none; }
.ek-cart-item-content h2 a:hover { color: var(--cart-orange); }
.ek-cart-item-content h2 span { color: #7c837e; font-size: 13px; font-weight: 700; }
.ek-cart-item-config { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 22px; color: #68706a; font-size: 12px; line-height: 1.45; }
.ek-cart-item-config > div { display: flex; min-width: 0; gap: 7px; }
.ek-cart-item-config strong { color: #454b47; font-weight: 800; }
.ek-cart-item-config span { overflow-wrap: anywhere; }
.ek-cart-item-config > strong { color: #454b47; }
.ek-cart-item-config br { display: none; }
.ek-cart-item-config .configured-accessories { grid-column: 1 / -1; margin-top: 5px; padding: 10px 12px; border-radius: 9px; background: #f4f6f2; color: #69706b; line-height: 1.55; }
.ek-cart-item-config .configured-accessories a { color: #28734a; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.ek-cart-item-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #eceeeb; }
.ek-cart-item-actions a { display: inline-flex; align-items: center; gap: 6px; color: #5c645e; font-size: 11px; font-weight: 800; text-decoration: none; }
.ek-cart-item-actions a:hover { color: var(--cart-orange); }
.ek-cart-item-actions .ek-cart-remove { color: #a33b35; }
.ek-cart-item-purchase { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 25px 22px; border-left: 1px solid #e5e8e4; background: #fbfcfa; }
.ek-cart-unit-price, .ek-cart-line-total { display: flex; flex-direction: column; align-items: flex-end; }
.ek-cart-unit-price span, .ek-cart-line-total span, .ek-cart-quantity > span:first-child { color: #7a817c; font-size: 10px; font-weight: 800; letter-spacing: .025em; }
.ek-cart-unit-price strong { margin-top: 3px; color: #414742; font-size: 15px; }
.ek-cart-quantity { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; margin: 0; }
.ek-cart-quantity-control { display: grid; width: 124px; grid-template-columns: 36px 1fr 36px; overflow: hidden; border: 1px solid #d6dbd5; border-radius: 10px; background: #fff; }
.ek-cart-quantity-control button { min-width: 0; height: 38px; padding: 0; border: 0; background: #f2f4f1; color: #59605b; font-size: 20px; cursor: pointer; }
.ek-cart-quantity-control button:hover { background: #e7eae6; color: var(--cart-orange); }
.ek-cart-quantity-control input { width: 100%; height: 38px; padding: 0 3px; border: 0; background: #fff; color: var(--cart-ink); font-size: 14px; font-weight: 800; text-align: center; appearance: textfield; }
.ek-cart-quantity-control input::-webkit-inner-spin-button { appearance: none; }
.ek-cart-line-total small { margin: 2px 0 -1px; color: #9a6055; font-size: 10px; text-decoration: line-through; }
.ek-cart-line-total strong { margin-top: 2px; color: var(--cart-ink); font-size: 23px; letter-spacing: -.025em; }
.ek-cart-admin-name { margin-bottom: 14px; }

.ek-cart-products-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 4px 0; }
.ek-cart-back, .ek-cart-update, .ek-cart-admin-item { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid #d2d7d1; border-radius: 11px; background: #fff; color: #424944; font-size: 12px; font-weight: 850; text-decoration: none; cursor: pointer; }
.ek-cart-back:hover, .ek-cart-update:hover, .ek-cart-admin-item:hover { border-color: #b6bdb7; color: var(--cart-orange); }
.ek-cart-update.is-dirty { border-color: var(--cart-orange); background: #fff6ee; color: #cc5c00; box-shadow: 0 7px 18px rgba(238,114,2,.1); }

.ek-cart-summary { position: sticky; top: 112px; overflow: hidden; border-radius: 22px; background: var(--cart-ink); color: #fff; box-shadow: 0 22px 52px rgba(24,29,25,.18); }
.ek-cart-summary-inner { padding: 30px; }
.ek-cart-summary-kicker { color: #ff9a45; }
.ek-cart-summary h2 { margin: 0 0 25px; color: #fff; font-size: 27px; line-height: 1.15; text-transform: none; }
.ek-cart-voucher { margin-bottom: 24px; }
.ek-cart-voucher > label, .ek-cart-merchant-discount { display: block; margin: 0 0 8px; color: #cbd0cc; font-size: 11px; font-weight: 800; }
.ek-cart-voucher-input { display: grid; grid-template-columns: 1fr auto; overflow: hidden; border: 1px solid #505651; border-radius: 11px; background: #2b2f2c; }
.ek-cart-voucher-input input { min-width: 0; height: 46px; padding: 0 14px; border: 0; background: transparent; color: #fff; font-size: 13px; outline: none; }
.ek-cart-voucher-input input::placeholder { color: #9ea49f; }
.ek-cart-voucher-input button { padding: 0 15px; border: 0; border-left: 1px solid #505651; background: #343936; color: #fff; font-size: 11px; font-weight: 850; cursor: pointer; }
.ek-cart-voucher-input button:hover { background: var(--cart-orange); }
.ek-cart-voucher-active { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 14px; padding: 0 14px; border: 1px solid rgba(86,186,128,.35); border-radius: 11px; background: rgba(47,135,87,.15); }
.ek-cart-voucher-active span { color: #9fe0b9; font-size: 12px; font-weight: 850; }
.ek-cart-voucher-active a { color: #d7dcd8; font-size: 10px; }
.ek-cart-merchant-discount input { width: 100%; height: 42px; margin-top: 7px; padding: 0 12px; border: 1px solid #505651; border-radius: 10px; background: #2b2f2c; color: #fff; }
.ek-cart-totals { margin: 0; padding: 21px 0; border-top: 1px solid #404541; border-bottom: 1px solid #404541; }
.ek-cart-totals > div { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.ek-cart-totals > div:last-child { margin-bottom: 0; }
.ek-cart-totals dt { color: #c9ceca; font-size: 12px; font-weight: 650; }
.ek-cart-totals dt small { display: block; margin-top: 3px; color: #8e9590; font-size: 9px; }
.ek-cart-totals dd { margin: 0; color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.ek-cart-totals .ek-cart-discount-row dd { color: #9fe0b9; }
.ek-cart-grand-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 22px 0 20px; }
.ek-cart-grand-total span { color: #d3d7d4; font-size: 12px; font-weight: 750; }
.ek-cart-grand-total strong { color: #fff; font-size: 32px; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.ek-cart-checkout { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; border-radius: 12px; background: var(--cart-orange); color: #fff !important; font-size: 14px; font-weight: 900; text-decoration: none !important; box-shadow: 0 12px 28px rgba(238,114,2,.22); transition: transform .18s ease, background .18s ease; }
.ek-cart-checkout:hover { background: #d96500; transform: translateY(-1px); }
.ek-cart-assurance { display: grid; gap: 13px; margin-top: 24px; }
.ek-cart-assurance > div { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; color: #9ea59f; font-size: 10px; line-height: 1.4; }
.ek-cart-assurance i { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #303531; color: #91d5ae; }
.ek-cart-assurance strong { display: block; color: #e5e8e5; font-size: 11px; }

.ek-empty-cart { max-width: 760px; margin: 20px auto 0; padding: 70px 42px; border: 1px solid var(--cart-line); border-radius: 26px; background: #fff; box-shadow: 0 20px 56px rgba(27,32,28,.08); text-align: center; }
.ek-empty-cart-icon { display: grid; width: 82px; height: 82px; margin: 0 auto 24px; place-items: center; border-radius: 50%; background: #fff3e9; color: var(--cart-orange); }
.ek-empty-cart-icon i { font-size: 31px; }
.ek-empty-cart .ek-cart-eyebrow { margin-bottom: 10px; }
.ek-empty-cart h1 { margin: 0 0 14px; color: var(--cart-ink); font-size: 42px; text-transform: none; }
.ek-empty-cart p { max-width: 520px; margin: 0 auto 28px; color: var(--cart-muted); font-size: 16px; line-height: 1.6; }
.ek-empty-cart .ek-cart-checkout { max-width: 280px; margin: 0 auto; }

/* Merchant workspace --------------------------------------------------- */
.ek-merchant-panel { overflow: hidden; margin-top: 34px; border: 1px solid var(--cart-line); border-radius: 22px; background: #fff; box-shadow: 0 20px 54px rgba(27,32,28,.08); }
.ek-merchant-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 28px 30px; border-bottom: 1px solid var(--cart-line); background: linear-gradient(135deg,#fff 0%,#faf8f4 100%); }
.ek-merchant-panel-header > div > span { display: block; margin-bottom: 7px; color: #d75c00; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ek-merchant-panel-header h2 { margin: 0 0 7px; color: var(--cart-ink); font-size: clamp(24px,3vw,34px); font-weight: 900; line-height: 1.12; letter-spacing: -.025em; text-transform: none; }
.ek-merchant-panel-header p { max-width: 670px; margin: 0; color: var(--cart-muted); font-size: 13px; line-height: 1.6; }
.ek-merchant-panel-status { display: inline-flex; min-height: 38px; flex: 0 0 auto; align-items: center; gap: 8px; padding: 0 13px; color: #336b50; border: 1px solid #cfe2d7; border-radius: 10px; background: #edf6f1; font-size: 11px; font-weight: 850; white-space: nowrap; }
.ek-merchant-panel-body { display: grid; grid-template-columns: minmax(0,1fr) 310px; }
.ek-merchant-fields { padding: 28px 30px 30px; }
.ek-merchant-fields h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--cart-ink); font-size: 15px; font-weight: 900; text-transform: none; }
.ek-merchant-fields h3:not(:first-child) { margin-top: 24px; padding-top: 24px; border-top: 1px solid #e8ebe7; }
.ek-merchant-fields h3 i { color: var(--cart-orange); }
.ek-merchant-fields .form-row { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 0 16px; margin: 0; }
.ek-merchant-fields .form-row > div { width: 100% !important; min-width: 0; max-width: none !important; flex: none !important; padding: 0; }
.ek-merchant-fields .form-row > .col-md-2 { grid-column: span 2; }
.ek-merchant-fields .form-row > .col-md-3 { grid-column: span 3; }
.ek-merchant-fields .form-row > .col-md-5 { grid-column: span 5; }
.ek-merchant-fields .form-row > .col-md-6 { grid-column: span 6; }
.ek-merchant-fields .form-group { margin-bottom: 15px; }
.ek-merchant-fields label { display: block; margin-bottom: 7px; color: #4f5751; font-size: 11px; font-weight: 850; }
.ek-merchant-fields .form-control { width: 100%; height: 48px; padding: 0 14px; color: var(--cart-ink); border: 1px solid #d8ddd8; border-radius: 10px; background: #fbfcfa; box-shadow: none; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.ek-merchant-fields .form-control:focus { border-color: #de9a5d; background: #fff; outline: 0; box-shadow: 0 0 0 4px rgba(238,114,2,.09); }
.ek-merchant-actions { display: flex; flex-direction: column; align-items: stretch; padding: 30px; color: #fff; background: var(--cart-ink); }
.ek-merchant-actions-label { margin-bottom: 8px; color: #ff9a45; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.ek-merchant-actions > strong { margin-bottom: 5px; color: #fff; font-size: 35px; font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.ek-merchant-actions > small { margin-bottom: 25px; color: #aab0ab; font-size: 10px; line-height: 1.5; }
.ek-merchant-actions button, .ek-merchant-actions a { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: center; gap: 9px; margin: 0 0 10px; padding: 11px 15px; border-radius: 10px; font-size: 11px; font-weight: 900; line-height: 1.25; text-align: center; text-decoration: none !important; text-transform: none; cursor: pointer; }
.ek-merchant-primary { color: #fff; border: 1px solid var(--cart-orange); background: var(--cart-orange); box-shadow: 0 11px 24px rgba(238,114,2,.22); }
.ek-merchant-primary:hover { border-color: #d76200; background: #d76200; }
.ek-merchant-secondary, .ek-merchant-ris { color: #fff !important; border: 1px solid #515752; background: #303531; }
.ek-merchant-secondary:hover, .ek-merchant-ris:hover { border-color: #777f79; background: #3a403c; }
.ek-merchant-ris { margin-top: auto !important; margin-bottom: 0 !important; color: #c7e5d4 !important; }

@media (max-width: 1199px) {
    .ek-cart-hero { grid-template-columns: 1fr; gap: 30px; }
    .ek-cart-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
    .ek-cart-item { grid-template-columns: 140px minmax(0, 1fr); }
    .ek-cart-item-purchase { grid-column: 1 / -1; flex-direction: row; align-items: center; padding: 16px 20px; border-top: 1px solid #e5e8e4; border-left: 0; }
    .ek-cart-unit-price, .ek-cart-line-total, .ek-cart-quantity { align-items: flex-start; }
}

@media (max-width: 991px) {
    .ek-cart-page { padding-top: 34px; }
    .ek-cart-layout { grid-template-columns: 1fr; }
    .ek-cart-summary { position: static; }
    .ek-merchant-panel-body { grid-template-columns: 1fr; }
    .ek-merchant-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .ek-merchant-actions-label, .ek-merchant-actions > strong, .ek-merchant-actions > small { grid-column: 1 / -1; }
    .ek-merchant-actions button, .ek-merchant-actions a { margin: 0; }
}

@media (max-width: 767px) {
    .ek-cart-page { padding: 26px 0 64px; }
    .ek-cart-page > .container { padding-right: 15px; padding-left: 15px; }
    .ek-cart-hero { gap: 25px; margin-bottom: 27px; }
    .ek-cart-hero h1 { font-size: 34px; }
    .ek-cart-hero p { font-size: 14px; }
    .ek-cart-steps li strong { max-width: 90px; font-size: 10px; line-height: 1.25; text-align: center; }
    .ek-cart-steps li span { width: 38px; height: 38px; }
    .ek-cart-steps::before { top: 18px; }
    .ek-cart-section-heading h2 { font-size: 21px; }
    .ek-cart-item { grid-template-columns: 100px minmax(0, 1fr); min-height: 0; border-radius: 16px; }
    .ek-cart-item-media { align-items: flex-start; padding: 18px 12px; }
    .ek-cart-item-media img, .ek-cart-item-media svg, .ek-cart-item-media canvas { max-width: 78px; max-height: 118px; }
    .ek-cart-media-placeholder { width: 58px; height: 58px; }
    .ek-cart-item-content { padding: 19px 16px 16px; }
    .ek-cart-item-content h2 { margin-bottom: 12px; font-size: 17px; }
    .ek-cart-item-config { grid-template-columns: 1fr; gap: 5px; font-size: 11px; }
    .ek-cart-item-config .configured-accessories { grid-column: 1; }
    .ek-cart-item-actions { gap: 10px 15px; margin-top: 14px; padding-top: 13px; }
    .ek-cart-item-purchase { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 16px; }
    .ek-cart-unit-price { align-items: flex-start; }
    .ek-cart-quantity { grid-column: 1; grid-row: 2; align-items: flex-start; }
    .ek-cart-line-total { grid-column: 2; grid-row: 1 / span 2; align-self: end; align-items: flex-end; }
    .ek-cart-line-total strong { font-size: 21px; }
    .ek-cart-products-footer { padding-top: 16px; }
    .ek-cart-back, .ek-cart-update { flex: 1 1 calc(50% - 6px); padding: 0 10px; font-size: 11px; }
    .ek-cart-summary-inner { padding: 25px 22px; }
    .ek-cart-summary h2 { font-size: 24px; }
    .ek-cart-grand-total strong { font-size: 29px; }
    .ek-empty-cart { padding: 52px 24px; }
    .ek-empty-cart h1 { font-size: 34px; }
    .ek-merchant-panel { margin-top: 24px; border-radius: 17px; }
    .ek-merchant-panel, .ek-merchant-panel-header, .ek-merchant-panel-body, .ek-merchant-fields, .ek-merchant-actions { width: 100%; max-width: 100%; min-width: 0; }
    .ek-merchant-panel-header { align-items: stretch; flex-direction: column; gap: 18px; padding: 23px 20px; }
    .ek-merchant-panel-status { align-self: flex-start; }
    .ek-merchant-fields { padding: 23px 20px; }
    .ek-merchant-fields .form-row, .ek-merchant-fields .form-group, .ek-merchant-fields .form-control { min-width: 0; max-width: 100%; }
    .ek-merchant-fields .form-row > .col-md-2, .ek-merchant-fields .form-row > .col-md-3, .ek-merchant-fields .form-row > .col-md-5, .ek-merchant-fields .form-row > .col-md-6 { width: 100%; max-width: 100%; grid-column: 1 / -1; }
    .ek-merchant-actions { display: flex; padding: 24px 20px; }
    .ek-merchant-actions > strong { font-size: 31px; }
}

@media (max-width: 420px) {
    .ek-cart-item { grid-template-columns: 82px minmax(0, 1fr); }
    .ek-cart-item-media { padding: 16px 8px; }
    .ek-cart-item-media img, .ek-cart-item-media svg, .ek-cart-item-media canvas { max-width: 66px; }
    .ek-cart-item-content { padding-left: 13px; }
    .ek-cart-item-purchase { grid-template-columns: 1fr; }
    .ek-cart-quantity, .ek-cart-line-total { grid-column: 1; grid-row: auto; }
    .ek-cart-line-total { align-items: flex-start; }
    .ek-cart-quantity-control { width: 132px; }
}
