/* ETCOM cart · checkout · confirmation — brand orange #EF582D, navy #0f172a, Montserrat */
.eco-page {
    --eco-orange: #ef582d;
    --eco-orange-dark: #d9481f;
    --eco-orange-soft: #fff3ee;
    --eco-navy: #0f172a;
    --eco-text: #1e293b;
    --eco-muted: #64748b;
    --eco-line: #e2e8f0;
    --eco-bg: #f8fafc;
    --eco-ok: #16a34a;
    --eco-radius: 18px;
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--eco-text);
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 16px 64px;
    box-sizing: border-box;
}
.eco-page *, .eco-page *::before, .eco-page *::after { box-sizing: border-box; }
.eco-page h1, .eco-page h2, .eco-page h3 { font-family: inherit; color: var(--eco-navy); text-transform: none; letter-spacing: -0.01em; margin: 0; }
.eco-page p { margin: 0; }
.eco-page button { font-family: inherit; text-transform: none; letter-spacing: 0; margin: 0; min-height: 0; line-height: 1.2; }
.eco-page input, .eco-page select, .eco-page textarea { font-family: inherit; margin: 0; box-shadow: none; }
.eco-muted { color: var(--eco-muted); font-size: 13px; font-weight: 500; }
.eco-ico { flex: none; }

/* ---------- steps ---------- */
.eco-steps { display: flex; justify-content: center; align-items: center; gap: 0; list-style: none; margin: 0 auto 28px; padding: 0; max-width: 520px; }
.eco-steps li { display: flex; align-items: center; flex: 1; margin: 0; color: var(--eco-muted); font-size: 13px; font-weight: 600; }
.eco-steps li:not(:last-child)::after { content: ''; flex: 1; height: 2px; background: var(--eco-line); margin: 0 10px; border-radius: 2px; }
.eco-steps li.is-done:not(:last-child)::after { background: var(--eco-orange); }
.eco-steps li:last-child { flex: none; }
.eco-steps a { display: flex; align-items: center; color: inherit; text-decoration: none; }
.eco-steps__dot { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--eco-line); background: #fff; font-size: 12px; font-weight: 700; margin-right: 8px; flex: none; }
.eco-steps li.is-active { color: var(--eco-navy); }
.eco-steps li.is-active .eco-steps__dot { background: var(--eco-orange); border-color: var(--eco-orange); color: #fff; box-shadow: 0 0 0 4px rgba(239, 88, 45, .15); }
.eco-steps li.is-done { color: var(--eco-navy); }
.eco-steps li.is-done .eco-steps__dot { background: var(--eco-navy); border-color: var(--eco-navy); color: #fff; }

/* ---------- layout ---------- */
.eco-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.eco-card { background: #fff; border: 1px solid var(--eco-line); border-radius: var(--eco-radius); padding: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .08); }
.eco-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.eco-title { font-size: 24px; font-weight: 800; }
.eco-subtitle { font-size: 17px; font-weight: 800; margin-bottom: 14px !important; }
.eco-summary { position: sticky; top: 96px; }
.eco-link { display: inline-block; margin-top: 18px; color: var(--eco-navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.eco-link:hover { color: var(--eco-orange); }
.eco-link--small { margin: 0; font-size: 13px; color: var(--eco-orange); }

/* ---------- buttons ---------- */
.eco-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 26px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.eco-btn--primary { background: var(--eco-orange); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(239, 88, 45, .7); }
.eco-btn--primary:hover { background: var(--eco-orange-dark); transform: translateY(-1px); }
.eco-btn--ghost { background: #fff; color: var(--eco-navy) !important; border: 1.5px solid var(--eco-line); }
.eco-btn--ghost:hover { border-color: var(--eco-navy); }
.eco-btn--wa { background: #25d366; color: #fff !important; }
.eco-btn--wa:hover { background: #1fb457; }
.eco-btn--block { width: 100%; margin-top: 18px; }
.eco-btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.eco-spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: eco-spin .7s linear infinite; }
.eco-btn.is-loading .eco-spinner { display: inline-block; }
.eco-btn.is-loading .eco-btn__label::after { content: '…'; }
@keyframes eco-spin { to { transform: rotate(360deg); } }

/* ---------- cart lines ---------- */
.eco-lines { display: flex; flex-direction: column; }
.eco-line { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--eco-line); transition: opacity .2s; }
.eco-line:first-child { border-top: 0; padding-top: 0; }
.eco-line.is-busy { opacity: .45; pointer-events: none; }
.eco-line__img { display: block; width: 88px; height: 88px; border-radius: 14px; overflow: hidden; background: var(--eco-bg); border: 1px solid var(--eco-line); }
.eco-line__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.eco-line__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.eco-line__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.eco-line__name { font-weight: 700; font-size: 15px; color: var(--eco-navy); text-decoration: none; line-height: 1.3; text-transform: capitalize; }
.eco-line__name:hover { color: var(--eco-orange); }
.eco-line__remove { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--eco-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.eco-line__remove:hover { background: #fee2e2; color: #dc2626; }
.eco-line__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.eco-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--eco-bg); border: 1px solid var(--eco-line); font-size: 12px; font-weight: 600; color: #334155; line-height: 1.3; }
.eco-chip i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, .25); display: inline-block; }
.eco-chip--accent { background: var(--eco-orange-soft); border-color: #fdd5c6; color: var(--eco-orange-dark); }
.eco-line__bottom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.eco-line__note { font-size: 12.5px; color: var(--eco-muted); font-weight: 500; }
.eco-line__total { margin-left: auto; font-size: 15.5px; font-weight: 800; color: var(--eco-navy); white-space: nowrap; }
.eco-line__qty { font-weight: 700; font-size: 13px; color: var(--eco-muted); }
.eco-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--eco-line); border-radius: 999px; overflow: hidden; background: #fff; }
.eco-qty__btn { width: 34px; height: 34px; border: 0; background: transparent; font-size: 18px; font-weight: 600; color: var(--eco-navy); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.eco-qty__btn:hover:not([disabled]) { background: var(--eco-orange-soft); color: var(--eco-orange); }
.eco-qty__btn[disabled] { color: #cbd5e1; cursor: not-allowed; }
.eco-qty__val { min-width: 30px; text-align: center; font-weight: 700; font-size: 14px; }

.eco-lines--compact .eco-line { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.eco-lines--compact .eco-line:first-child { padding-top: 0; }
.eco-lines--compact .eco-line__img { width: 60px; height: 60px; border-radius: 12px; }
.eco-lines--compact .eco-line__name { font-size: 14px; }
.eco-lines--compact .eco-chip { font-size: 11px; padding: 3px 8px; }
.eco-lines--compact .eco-qty__btn { width: 28px; height: 28px; font-size: 16px; }
.eco-lines--compact .eco-qty__val { min-width: 24px; font-size: 13px; }
.eco-lines--compact .eco-line__note { display: none; }
.eco-lines--compact .eco-line__total { font-size: 14px; }

/* ---------- summary ---------- */
.eco-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 14px; }
.eco-row strong { font-weight: 700; color: var(--eco-navy); }
.eco-row--muted { color: var(--eco-muted); font-size: 13px; }
.eco-totals { border-top: 1px solid var(--eco-line); margin-top: 14px; padding-top: 10px; }
.eco-row--total { border-top: 1px dashed var(--eco-line); margin-top: 6px; padding-top: 14px; font-size: 15px; font-weight: 700; }
.eco-row--total strong { font-size: 24px; font-weight: 800; color: var(--eco-orange); }
.eco-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--eco-line); display: grid; gap: 10px; }
.eco-trust li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: #334155; margin: 0; }
.eco-trust .eco-ico { color: var(--eco-orange); }
.eco-pay { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px !important; padding: 12px 14px; border-radius: 14px; background: #f0fdf4; color: #166534; font-size: 12.5px; line-height: 1.45; }
.eco-pay .eco-ico { color: var(--eco-ok); margin-top: 1px; }

/* ---------- form ---------- */
.eco-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eco-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eco-field--wide { grid-column: 1 / -1; }
.eco-field label { font-size: 13px; font-weight: 700; color: var(--eco-navy); margin: 0; }
.eco-field small { font-size: 12px; color: var(--eco-muted); }
.eco-page .eco-field input, .eco-page .eco-field select, .eco-page .eco-field textarea {
    width: 100%; height: auto; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--eco-line); border-radius: 12px; background: #fff;
    font-size: 15px; color: var(--eco-text); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.eco-page .eco-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.eco-page .eco-field textarea { min-height: 70px; resize: vertical; }
.eco-page .eco-field input:focus, .eco-page .eco-field select:focus, .eco-page .eco-field textarea:focus { outline: 0; border-color: var(--eco-orange); box-shadow: 0 0 0 4px rgba(239, 88, 45, .12); }
.eco-field.has-error input, .eco-field.has-error select { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.eco-alert { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 14px; font-weight: 600; }
.eco-alert[hidden] { display: none; }

.eco-delivery { border: 0; margin: 26px 0 0; padding: 0; min-width: 0; }
.eco-delivery legend { text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 800; color: var(--eco-navy); margin-bottom: 12px; padding: 0; }
.eco-delivery__list { display: grid; grid-template-columns: 1fr; gap: 10px; transition: opacity .2s; }
.eco-delivery__list.is-busy { opacity: .5; pointer-events: none; }
.eco-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--eco-line); border-radius: 14px; cursor: pointer; margin: 0; transition: border-color .15s, background .15s; }
.eco-option:hover { border-color: #cbd5e1; }
.eco-option input { position: absolute; opacity: 0; pointer-events: none; }
.eco-option.is-checked { border-color: var(--eco-orange); background: var(--eco-orange-soft); box-shadow: 0 0 0 3px rgba(239, 88, 45, .1); }
.eco-option__icon { width: 38px; height: 38px; border-radius: 11px; background: var(--eco-bg); color: var(--eco-navy); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.eco-option.is-checked .eco-option__icon { background: var(--eco-orange); color: #fff; }
.eco-option__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.eco-option__text strong { font-size: 14px; color: var(--eco-navy); }
.eco-option__text small { font-size: 12px; color: var(--eco-muted); line-height: 1.3; }
.eco-option__price { font-weight: 800; font-size: 14px; color: var(--eco-navy); white-space: nowrap; }
.eco-note { margin-top: 10px !important; font-size: 12.5px; color: #9a3412; background: #fff7ed; border-radius: 10px; padding: 8px 12px; }
.eco-note[hidden] { display: none; }

.eco-more { margin-top: 22px; border-top: 1px solid var(--eco-line); padding-top: 16px; }
.eco-more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--eco-navy); list-style: none; display: flex; align-items: center; gap: 8px; }
.eco-more summary::-webkit-details-marker { display: none; }
.eco-more summary::before { content: '+'; width: 22px; height: 22px; border-radius: 50%; background: var(--eco-bg); border: 1px solid var(--eco-line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--eco-orange); }
.eco-more[open] summary::before { content: '−'; }
.eco-more .eco-fields { margin-top: 16px; }
.eco-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--eco-text); cursor: pointer; margin: 0; }
.eco-check input { width: 18px; height: 18px; accent-color: var(--eco-orange); margin: 0; }
[hidden].eco-field { display: none; }

/* ---------- sticky mobile bar ---------- */
.eco-sticky { display: none; }

/* ---------- empty cart ---------- */
.eco-empty { max-width: 440px; margin: 40px auto; text-align: center; background: #fff; border: 1px solid var(--eco-line); border-radius: var(--eco-radius); padding: 44px 28px; }
.eco-empty__icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--eco-orange-soft); color: var(--eco-orange); display: flex; align-items: center; justify-content: center; }
.eco-empty h1 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.eco-empty p { color: var(--eco-muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- thank-you ---------- */
.eco-done { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.eco-done__check { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #dcfce7; color: var(--eco-ok); display: flex; align-items: center; justify-content: center; }
.eco-done h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.eco-done p { color: var(--eco-muted); font-size: 15px; line-height: 1.55; }
.eco-done__num { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; padding: 8px 18px; border-radius: 999px; background: var(--eco-navy); color: #fff; font-weight: 700; font-size: 14px; }
.eco-done__num span { color: #fdba74; }
.eco-next { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: eco; }
.eco-next li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.45; color: #334155; }
.eco-next li::before { counter-increment: eco; content: counter(eco); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--eco-orange-soft); color: var(--eco-orange); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.eco-next strong { color: var(--eco-navy); }
.eco-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.eco-info div { background: var(--eco-bg); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; }
.eco-info h3 { font-size: 12px !important; text-transform: uppercase !important; letter-spacing: .06em !important; color: var(--eco-muted) !important; margin-bottom: 6px !important; font-weight: 700; }
.eco-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.eco-actions .eco-btn { flex: 1 1 200px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .eco-grid { grid-template-columns: 1fr; }
    .eco-summary { position: static; }
}
@media (max-width: 640px) {
    .eco-page { padding: 18px 12px 96px; }
    .eco-card { padding: 18px 16px; border-radius: 16px; }
    .eco-title { font-size: 21px; }
    .eco-steps { margin-bottom: 20px; }
    .eco-steps__label { font-size: 12px; }
    .eco-steps li:not(:last-child)::after { margin: 0 6px; }
    .eco-fields { grid-template-columns: 1fr; gap: 14px; }
    .eco-delivery__list { grid-template-columns: 1fr; }
    .eco-line { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
    .eco-line__img { width: 72px; height: 72px; }
    .eco-line__note { flex-basis: 100%; order: 3; }
    .eco-info { grid-template-columns: 1fr; }
    #eco-checkout .eco-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--eco-line); box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .2); transition: transform .2s; }
    #eco-checkout .eco-sticky.is-hidden { transform: translateY(110%); }
    .eco-sticky small { display: block; font-size: 11px; color: var(--eco-muted); font-weight: 600; }
    .eco-sticky strong { font-size: 19px; font-weight: 800; color: var(--eco-navy); }
    .eco-sticky .eco-btn { padding: 13px 26px; }
    .eco-done h1 { font-size: 23px; }
    body:has(#eco-checkout) #etcomStickyWidget { bottom: calc(88px + env(safe-area-inset-bottom)) !important; }
}
