/* ── Base reset ── */
.co input, .co textarea, .co select { all: unset; box-sizing: border-box; }

/* ── Wrapper ── */
.co-wrap {
	background: linear-gradient(135deg, #f8f9fb 0%, #eef0f5 100%);
	padding: 36px 0 60px;
	min-height: 100vh;
}

/* ── Steps ── */
.co-steps {
	display: flex; align-items: center; justify-content: center;
	gap: 0; margin-bottom: 32px;
}
.co-step {
	display: flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 700; color: #c0c4cc;
	text-transform: uppercase; letter-spacing: .06em;
}
.co-step.done  { color: #22c55e; }
.co-step.active { color: #0f172a; }
.co-step .dot {
	width: 28px; height: 28px; border-radius: 50%;
	border: 2px solid #dde0e8;
	display: flex; align-items: center; justify-content: center;
	font-size: 11px; font-weight: 800; background: #fff;
	flex-shrink: 0; transition: all .25s;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.co-step.done  .dot { background: #22c55e; border-color: #22c55e; color: #fff; }
.co-step.active .dot { background: #0f172a; border-color: #0f172a; color: #fff; box-shadow: 0 0 0 4px rgba(15,23,42,.1); }
.co-line { width: 52px; height: 2px; background: #e2e4eb; margin: 0 8px; border-radius: 2px; }
.co-line.done { background: #22c55e; }

/* ── Cards ── */
.co-card {
	background: #fff; border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 20px rgba(0,0,0,.06);
	border: 1px solid #eaecf4; overflow: hidden; margin-bottom: 16px;
}

/* ── Section ── */
.co-section { padding: 22px 24px; border-bottom: 1px solid #f2f3f7; }
.co-section:last-child { border-bottom: none; }
.co-sec-hd {
	display: flex; align-items: center; gap: 10px;
	margin-bottom: 18px;
}
.co-sec-num {
	width: 26px; height: 26px; border-radius: 8px;
	background: #0f172a; color: #fff;
	font-size: 11px; font-weight: 800;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.co-sec-title {
	font-size: 13px; font-weight: 800; color: #0f172a;
	text-transform: uppercase; letter-spacing: .07em; margin: 0;
}
.co-sec-subtitle { font-size: 11px; color: #94a3b8; font-weight: 500; margin: 0; margin-left: auto; }

/* ── Float-label groups ── */
.fl-group {
	position: relative; margin-bottom: 0;
}
.fl-group label {
	position: absolute; top: 11px; left: 12px;
	font-size: 12px; color: #94a3b8; font-weight: 600;
	pointer-events: none; transition: all .18s;
	text-transform: uppercase; letter-spacing: .05em;
	background: transparent; padding: 0 2px;
}
.fl-group input, .fl-group textarea, .fl-group select {
	display: block; width: 100%; padding: 18px 12px 7px;
	border: 1.5px solid #e2e6f0; border-radius: 10px;
	font-size: 13px; color: #0f172a; background: #fff;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none; line-height: 1.5;
}
.fl-group textarea { min-height: 74px; resize: vertical; }
.fl-group select { cursor: pointer; }
.fl-group input:focus, .fl-group textarea:focus, .fl-group select:focus {
	border-color: #0f172a; box-shadow: 0 0 0 3px rgba(15,23,42,.07); outline: none;
}
.fl-group input:focus ~ label,
.fl-group input:not(:placeholder-shown) ~ label,
.fl-group textarea:focus ~ label,
.fl-group textarea:not(:placeholder-shown) ~ label,
.fl-group select:focus ~ label,
.fl-group.has-val label {
	top: 5px; font-size: 9px; color: #64748b;
}
.fl-group input.is-invalid, .fl-group textarea.is-invalid, .fl-group select.is-invalid {
	border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.07);
}
.fl-group input.is-valid, .fl-group textarea.is-valid, .fl-group select.is-valid {
	border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.07);
}
.f-err { font-size: 11px; color: #ef4444; margin-top: 4px; padding-left: 2px; display: none; }
.f-ok  { font-size: 11px; color: #22c55e;  margin-top: 4px; padding-left: 2px; display: none; }

/* ── Input icons ── */
.fl-icon-wrap { position: relative; }
.fl-icon-wrap .fi {
	position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
	color: #c0c9d8; pointer-events: none; line-height: 1;
}

/* ── Payment options ── */
.pay-grid { display: flex; flex-direction: column; gap: 10px; }
.pay-opt {
	display: flex; align-items: center; gap: 12px;
	border: 2px solid #e2e6f0; border-radius: 12px;
	padding: 14px 16px; cursor: pointer;
	transition: all .2s; user-select: none; position: relative;
	background: #fff;
}
.pay-opt:hover { border-color: #94a3b8; background: #f8fafc; }
.pay-opt.active { border-color: #0f172a; background: #fafbfc; }
.pay-opt input[type="radio"] { display: none; }
.pay-icon-box {
	width: 40px; height: 40px; border-radius: 10px;
	background: #f1f5f9; display: flex; align-items: center; justify-content: center;
	flex-shrink: 0; font-size: 18px; transition: background .2s;
}
.pay-opt.active .pay-icon-box { background: #0f172a; }
.pay-icon-box svg { transition: color .2s; }
.pay-opt.active .pay-icon-box svg path, .pay-opt.active .pay-icon-box svg rect { fill: #fff; }
.pay-bubble {
	width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d1d5db;
	flex-shrink: 0; display: flex; align-items: center; justify-content: center;
	margin-left: auto; transition: border-color .2s;
}
.pay-opt.active .pay-bubble { border-color: #0f172a; }
.pay-bubble::after {
	content: ''; width: 8px; height: 8px; border-radius: 50%;
	background: #0f172a; opacity: 0; transition: opacity .2s;
}
.pay-opt.active .pay-bubble::after { opacity: 1; }
.pay-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.pay-sub  { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.pay-badge {
	font-size: 9px; font-weight: 700; background: #dcfce7; color: #16a34a;
	padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
	letter-spacing: .04em; margin-left: 6px;
}

/* ── Voice note ── */
.voice-bar {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	background: #f8fafc; border: 1.5px dashed #e2e6f0; border-radius: 10px;
	padding: 12px 14px; margin-top: 10px;
}
.voice-bar p { font-size: 11px; color: #94a3b8; margin: 0 0 8px; width: 100%; font-weight: 500; }
.btn-rec {
	border: none; border-radius: 8px; padding: 7px 16px;
	font-size: 11px; font-weight: 700; cursor: pointer; transition: all .15s;
	display: flex; align-items: center; gap: 5px; letter-spacing: .03em;
}
.btn-rec-on  { background: #0f172a; color: #fff; }
.btn-rec-on:hover  { background: #1e293b; color: #fff; }
.btn-rec-off { background: #ef4444; color: #fff; }
.btn-rec-off:hover { background: #dc2626; color: #fff; }
.btn-rec:disabled { opacity: .35; cursor: not-allowed; }
#audioPlayback { height: 28px; flex: 1; min-width: 100px; }

/* ── Right summary ── */
.sum-panel {
	position: sticky; top: 90px;
	background: #fff; border-radius: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 20px rgba(0,0,0,.07);
	border: 1px solid #eaecf4; overflow: hidden;
}
.sum-head {
	padding: 16px 20px; border-bottom: 1px solid #f2f3f7;
	display: flex; align-items: center; justify-content: space-between;
	background: #0f172a;
}
.sum-head h6 { font-size: 14px; font-weight: 800; margin: 0; color: #fff; letter-spacing: .02em; }
.sum-badge {
	font-size: 11px; background: rgba(255,255,255,.15); color: #fff;
	padding: 3px 10px; border-radius: 20px; font-weight: 700;
}

/* Items */
.sum-items { padding: 12px 20px; max-height: 270px; overflow-y: auto; }
.sum-items::-webkit-scrollbar { width: 4px; }
.sum-items::-webkit-scrollbar-thumb { background: #e2e6f0; border-radius: 2px; }
.sum-item {
	display: flex; gap: 12px; padding: 10px 0;
	border-bottom: 1px solid #f5f6fa;
}
.sum-item:last-child { border: none; }
.sum-img-wrap { position: relative; flex-shrink: 0; }
.sum-img {
	width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
	border: 1px solid #eaecf4;
}
.sum-qty-badge {
	position: absolute; top: -5px; right: -5px;
	width: 18px; height: 18px; border-radius: 50%; background: #0f172a; color: #fff;
	font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center;
	border: 1.5px solid #fff;
}
.sum-info { flex: 1; min-width: 0; }
.sum-name {
	font-size: 12px; font-weight: 700; color: #0f172a;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	display: block; text-decoration: none; line-height: 1.4;
}
.sum-name:hover { color: #475569; }
.sum-attr { font-size: 10px; color: #94a3b8; margin-top: 2px; line-height: 1.4; }
.sum-price { font-size: 13px; font-weight: 800; color: #0f172a; margin-top: 4px; }

/* Coupon */
.sum-coupon { padding: 12px 20px; border-top: 1px solid #f2f3f7; }
.coup-label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.coup-row { display: flex; gap: 7px; }
.coup-input {
	flex: 1; padding: 10px 12px; border: 1.5px solid #e2e6f0; border-radius: 9px;
	font-size: 12px; color: #0f172a; outline: none; transition: .2s;
	font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.coup-input:focus { border-color: #0f172a; box-shadow: 0 0 0 3px rgba(15,23,42,.07); }
.coup-input:disabled { background: #f8fafc; color: #94a3b8; }
.btn-coup {
	border: none; border-radius: 9px; padding: 10px 16px;
	font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
	transition: all .15s; letter-spacing: .02em;
}
.btn-apply  { background: #0f172a; color: #fff; }
.btn-apply:hover { background: #1e293b; color: #fff; transform: translateY(-1px); }
.btn-apply:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-remove { background: #fee2e2; color: #ef4444; }
.btn-remove:hover { background: #fecaca; }
.coup-msg { font-size: 11px; margin-top: 6px; font-weight: 600; }
.coup-save { font-size: 12px; font-weight: 700; color: #16a34a; margin-top: 3px; display: flex; align-items: center; gap: 4px; }

/* Available coupons */
.sum-avail { padding: 6px 20px 12px; border-top: 1px solid #f2f3f7; }
.avail-title { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; margin-bottom: 8px; }
.coup-chip {
	display: flex; justify-content: space-between; align-items: center;
	border: 1.5px dashed #e2e6f0; border-radius: 10px; padding: 9px 12px; margin-bottom: 8px;
	background: #fafbfd; transition: border-color .2s;
}
.coup-chip:hover { border-color: #94a3b8; }
.coup-code {
	font-size: 11px; font-weight: 800; font-family: 'Courier New', monospace; letter-spacing: .06em;
	background: #f1f5f9; padding: 3px 8px; border-radius: 5px; color: #0f172a;
}
.coup-desc { font-size: 10px; color: #64748b; margin-top: 3px; font-weight: 500; }
.btn-use {
	font-size: 11px; font-weight: 700; color: #0f172a; background: none;
	border: 1.5px solid #0f172a; border-radius: 6px; padding: 4px 11px;
	cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-use:hover { background: #0f172a; color: #fff; }

/* Price rows */
.sum-prices { padding: 12px 20px; border-top: 1px solid #f2f3f7; }
.p-row {
	display: flex; justify-content: space-between; align-items: center;
	font-size: 12px; color: #64748b; padding: 4px 0; font-weight: 500;
}
.p-row.discount { color: #16a34a; font-weight: 700; }
.p-row.tax { color: #94a3b8; }
.p-row.total {
	font-size: 16px; font-weight: 900; color: #0f172a;
	border-top: 2px solid #e2e6f0; margin-top: 10px; padding-top: 12px;
}
.p-row.total span:last-child { color: #0f172a; }

/* CTA */
.sum-cta { padding: 14px 20px 18px; }
.btn-order {
	width: 100%; padding: 14px; background: #0f172a; color: #fff;
	border: none; border-radius: 11px; font-size: 14px; font-weight: 800;
	letter-spacing: .03em; cursor: pointer; transition: all .2s;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	box-shadow: 0 4px 14px rgba(15,23,42,.25);
}
.btn-order:hover { background: #1e293b; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(15,23,42,.32); }
.btn-order:active { transform: scale(.99); }
.btn-order:disabled { background: #94a3b8; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-order-icon { width: 16px; height: 16px; }

/* Trust row */
.trust-row {
	display: flex; justify-content: center; gap: 16px;
	padding: 0 20px 16px; flex-wrap: wrap;
}
.trust-item {
	display: flex; align-items: center; gap: 5px;
	font-size: 10px; color: #94a3b8; font-weight: 600;
	text-transform: uppercase; letter-spacing: .04em;
}
.trust-item svg { color: #64748b; }

/* Special instructions */
.sum-instructions { padding: 12px 20px; border-top: 1px solid #f2f3f7; }
.sum-instr-label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.sum-instructions textarea {
	display: block; width: 100%; padding: 10px 12px;
	border: 1.5px solid #e2e6f0; border-radius: 9px;
	font-size: 12px; color: #0f172a; background: #fff;
	min-height: 64px; resize: vertical; outline: none;
	transition: border-color .2s, box-shadow .2s; line-height: 1.5;
}
.sum-instructions textarea:focus { border-color: #0f172a; box-shadow: 0 0 0 3px rgba(15,23,42,.07); }

/* Security strip */
.sec-strip {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	background: #f0fdf4; border-top: 1px solid #dcfce7;
	padding: 8px 20px; font-size: 10px; color: #16a34a; font-weight: 700;
	letter-spacing: .04em; text-transform: uppercase;
}

/* Helpers */
.badge-free {
	font-size: 10px; font-weight: 700; background: #dcfce7; color: #16a34a;
	padding: 2px 7px; border-radius: 4px; margin-left: 4px;
}

@media (max-width: 991px) {
	.sum-panel { position: relative; top: auto; }
	.co-wrap { padding: 24px 0 48px; }
}

@media (max-width: 767px) {
	.co-wrap { padding: 20px 0 40px; }
	.co-steps { margin-bottom: 20px; gap: 0; }
	.co-line { width: 32px; }
	.co-step span { display: none; }
	.co-step.active span { display: inline; font-size: 11px; }
	.co-card { border-radius: 12px; }
	/* Form grid: stack all columns on mobile */
	.co-section .row > [class*="col-sm"],
	.co-section .row > [class*="col-md"] { width: 100%; }
}

@media (max-width: 576px) {
	.co-section { padding: 14px; }
	.co-sec-hd { margin-bottom: 14px; }
	.co-sec-title { font-size: 12px; }
	.sum-items { max-height: none; }
	.sum-panel { border-radius: 12px; }
	.sum-head, .sum-coupon, .sum-avail, .sum-prices, .sum-cta, .sum-instructions, .trust-row { padding-left: 14px; padding-right: 14px; }
	.coup-label { font-size: 10px; margin-bottom: 6px; }
	.coup-input { font-size: 11px; padding: 8px 10px; }
	.btn-coup { font-size: 11px; padding: 8px 12px; border-radius: 8px; }
	.coup-chip { padding: 7px 10px; }
	.btn-use { font-size: 10px; padding: 3px 9px; }
	.pay-opt { padding: 12px 12px; gap: 10px; }
	.pay-name { font-size: 12px; }
	.btn-order { font-size: 13px; padding: 13px; }
	.trust-row { gap: 12px; }
}
