/* Checkout presentation layer - shipping + payment (2026-09-18). Everything is scoped to
   body.etcx and only restyles; the element ids / classes the checkout scripts use are untouched.
   Loaded from views/et22/checkouts/_ux.php. */
.etcx { --cx-green: #1f3b2c; --cx-lime: #72b01d; --cx-ink: #1f2933; --cx-muted: #6b7785; --cx-line: #e6e9ee; background: #f5f6f4; }
.etcx nav[aria-label="breadcrumb"] { display: none; }
.etcx .breadcrumb-container { background: transparent !important; padding: 0; }

/* step bar */
.etcx .etcx-steps { list-style: none; display: flex; align-items: center; gap: 0; margin: 14px auto 4px; padding: 0; max-width: 520px; }
.etcx .etcx-steps li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; }
.etcx .etcx-steps li + li::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: #d5dbe3; z-index: 0; }
.etcx .etcx-steps li.done + li::before { background: var(--cx-lime); }
.etcx .etcx-steps li > a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; position: relative; z-index: 1; }
.etcx .etcx-dot { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid #d5dbe3; color: var(--cx-muted);
	display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; position: relative; z-index: 1; }
.etcx .etcx-lbl { font-size: 12px; font-weight: 600; color: var(--cx-muted); margin-top: 4px; }
.etcx .etcx-steps li.done .etcx-dot { background: var(--cx-lime); border-color: var(--cx-lime); color: #fff; }
.etcx .etcx-steps li.now .etcx-dot { background: var(--cx-green); border-color: var(--cx-green); color: #fff; box-shadow: 0 0 0 4px rgba(31,59,44,.14); }
.etcx .etcx-steps li.now .etcx-lbl { color: var(--cx-green); font-weight: 800; }

/* section headings + labels */
.etcx .etcx-h { font-size: 17px; font-weight: 800; color: var(--cx-ink); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.etcx .etcx-h i { color: var(--cx-green); }
.etcx .etcx-label { display: block; font-size: 12.5px; font-weight: 700; color: #3e4c59; margin-bottom: 5px; }
.etcx .etcx-label small { font-weight: 400; color: var(--cx-muted); }
.etcx .etcx-addr { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.etcx .etcx-addr .mt-5 { margin-top: 0 !important; }
.etcx .etcx-addr .form-control { border-radius: 10px; min-height: 44px; }
.etcx .etcx-addr .form-control:focus { border-color: var(--cx-lime); box-shadow: 0 0 0 3px rgba(114,176,29,.18); }

/* option cards (delivery slots, payment modes): whole card tappable, chosen one marked */
.etcx .card-bordered { border: 1.5px solid var(--cx-line) !important; border-radius: 12px !important; background: #fff; cursor: pointer;
	transition: border-color .15s, background .15s, box-shadow .15s; }
.etcx .card-bordered:hover { border-color: #c9d3c1 !important; }
.etcx .card-bordered:has(input[type="radio"]:checked), .etcx .card-bordered:has(#rapidopt:checked) {
	border-color: var(--cx-lime) !important; background: #f8fcf2 !important; box-shadow: 0 0 0 1px var(--cx-lime); }
.etcx .card-bordered .form-check-input { width: 20px; height: 20px; margin-top: 2px; cursor: pointer; }
.etcx .card-bordered .form-check-input:checked { background-color: var(--cx-green); border-color: var(--cx-green); }
.etcx .card-bordered h5 { font-weight: 700; color: var(--cx-ink); }
.etcx .etcx-slots { margin-bottom: 14px; }

/* bill */
.etcx .etcx-bill h3 { font-size: 17px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.etcx .etcx-bill .edcart { float: none; margin: 0; font-size: 13px; font-weight: 600; }
.etcx .list-group-item { padding-left: 0; padding-right: 0; border-color: #f0f2f4; }
.etcx .billtotalblock { font-size: 18px; }
.etcx #chksubtotal { color: var(--cx-green); }

/* main buttons */
.etcx #setshipping, .etcx #placeorderbtn { background: var(--cx-green); border-color: var(--cx-green); border-radius: 12px; font-weight: 800; }
.etcx #setshipping:hover, .etcx #placeorderbtn:hover { background: #16301f; border-color: #16301f; }
.etcx #setshipping[disabled] { opacity: .8; }

/* payment page */
.etcx .chkwalletpartial { background: #f8fcf2; border: 1.5px solid #d9e8c8; color: var(--cx-ink); border-radius: 12px; padding: 12px 14px; }
.etcx .etcx-pending { background: #fff4dc; border: 1px solid #f0d596; border-radius: 12px; padding: 14px; color: #5c3b00; }
.etcx .bottom-20.p-3 { font-size: 13px; color: #444; }
.etcx .etcx-card { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

@media (max-width: 767.98px) {
	.etcx .etcx-steps { margin-top: 8px; }
	.etcx .etcx-addr { padding: 12px; }
	.etcx .etcx-h { font-size: 16px; }
}
