/* The checkout page: numbered glass cards, selectable address / payment tiles, soft rounded fields, and a deep-maroon summary panel with a gold
   hairline and a glowing Place Order button. Colours follow the store theme (--maroon*, --gold*). */

.co { padding-bottom: 2rem; }

/* ---------- title + progress ---------- */
.co-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.co-title { margin: 0; font-family: var(--font-display, 'Playfair Display', serif); font-weight: 700; font-size: 2.1rem; color: var(--maroon-dark, #5c1329); letter-spacing: .01em; }
.co-title::after { content: ""; display: block; width: 3.4rem; height: 3px; margin-top: .45rem; border-radius: 3px; background: linear-gradient(90deg, var(--gold-light, #e8c766), var(--gold, #c9a227)); box-shadow: 0 0 12px rgba(var(--gold-rgb, 201, 162, 39), .6); }
.co-steps { list-style: none; display: inline-flex; align-items: center; gap: .35rem; margin: 0; padding: .35rem; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(var(--maroon-rgb, 123, 30, 58), .12); box-shadow: 0 8px 22px rgba(60, 20, 40, .08); }
.co-steps li { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; font-weight: 700; font-size: .82rem; color: #9a8b83; }
.co-steps li span { width: 1.55rem; height: 1.55rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .75rem; background: rgba(var(--maroon-rgb, 123, 30, 58), .08); color: #8a7b72; }
.co-steps li.done { color: var(--maroon, #7b1e3a); }
.co-steps li.done span { background: var(--maroon, #7b1e3a); color: #fff; }
.co-steps li.now { color: #2a1a22; background: linear-gradient(135deg, var(--gold-light, #e8c766), var(--gold, #c9a227) 60%, var(--gold-dark, #a3801d)); box-shadow: 0 6px 16px rgba(var(--gold-rgb, 201, 162, 39), .45); }
.co-steps li.now span { background: rgba(255, 255, 255, .6); color: #2a1a22; }

/* ---------- cards ---------- */
.co-card { position: relative; margin-bottom: 1.2rem; border-radius: 1.5rem; background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 252, 247, .95)); border: 1px solid rgba(var(--maroon-rgb, 123, 30, 58), .12); box-shadow: 0 12px 34px rgba(60, 20, 40, .08); }
.co-card::before { content: ""; position: absolute; left: 0; top: 1.3rem; bottom: 1.3rem; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--gold-light, #e8c766), var(--gold, #c9a227)); box-shadow: 0 0 14px 1px rgba(var(--gold-rgb, 201, 162, 39), .6); }
.co-card-h { display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.4rem .2rem; }
.co-card-h h2 { margin: 0; font-family: var(--font-display, 'Playfair Display', serif); font-weight: 700; font-size: 1.3rem; color: var(--maroon-dark, #5c1329); }
.co-no { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; color: var(--gold-dark, #a3801d); background: rgba(var(--gold-rgb, 201, 162, 39), .14); border: 1.5px solid var(--gold, #c9a227); box-shadow: 0 0 0 4px rgba(var(--gold-rgb, 201, 162, 39), .12); }
.co-card-b { padding: 1rem 1.4rem 1.4rem; }
.co-note { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; padding: .8rem 1.1rem; border-radius: 1.1rem; font-size: .9rem; background: rgba(var(--gold-rgb, 201, 162, 39), .1); border: 1px solid rgba(var(--gold-rgb, 201, 162, 39), .35); color: #5a4a3c; }
.co-note i { color: var(--gold-dark, #a3801d); font-size: 1.1rem; }
.co-hint { font-size: .82rem; color: #8a7b72; margin-bottom: .6rem; font-weight: 600; }

/* ---------- selectable tiles (addresses, payment) ---------- */
.co-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .8rem; }
.co-choice { position: relative; display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 1.2rem; cursor: pointer; background: #fff; border: 1.5px solid rgba(var(--maroon-rgb, 123, 30, 58), .14); transition: border-color .2s, box-shadow .2s, transform .15s, background .2s; }
.co-choice:hover { border-color: rgba(var(--maroon-rgb, 123, 30, 58), .4); transform: translateY(-1px); }
.co-choice input { position: absolute; opacity: 0; pointer-events: none; }
.co-radio { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .15rem; border-radius: 50%; border: 2px solid rgba(var(--maroon-rgb, 123, 30, 58), .35); background: #fff; position: relative; transition: border-color .2s, background .2s, box-shadow .2s; }
.co-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--maroon, #7b1e3a); transform: scale(0); transition: transform .2s; }
.co-choice:has(input:checked) { border-color: var(--gold, #c9a227); background: linear-gradient(180deg, #fffdf8, #fff7e6); box-shadow: 0 0 0 3px rgba(var(--gold-rgb, 201, 162, 39), .25), 0 12px 26px rgba(var(--gold-rgb, 201, 162, 39), .2); }
.co-choice:has(input:checked) .co-radio { border-color: var(--maroon, #7b1e3a); box-shadow: 0 0 0 4px rgba(var(--maroon-rgb, 123, 30, 58), .12); }
.co-choice:has(input:checked) .co-radio::after { transform: scale(1); }
.co-choice:has(input:focus-visible) { outline: 3px solid rgba(var(--maroon-rgb, 123, 30, 58), .35); outline-offset: 2px; }
.co-cbody { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.co-ctitle { font-weight: 800; color: #2a1a22; display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.co-cic { color: var(--gold-dark, #a3801d); flex: none; }
.co-cname { flex: 1 1 auto; min-width: 0; }
.co-cnote { font-size: .85rem; color: #6e5f57; }
.co-cnote i { color: var(--maroon, #7b1e3a); margin-right: .2rem; }
.co-tag { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; color: #146c3a; background: #e6f6ec; border: 1px solid #b7e2c8; }
.co-choice .co-tag { color: var(--gold-dark, #a3801d); background: rgba(var(--gold-rgb, 201, 162, 39), .14); border-color: rgba(var(--gold-rgb, 201, 162, 39), .45); }
.co-add { display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .86rem; text-decoration: none; color: var(--maroon, #7b1e3a); border: 1.5px dashed rgba(var(--maroon-rgb, 123, 30, 58), .4); transition: background .15s, border-style .15s; }
.co-add:hover { background: var(--maroon-tint, #fbf1f4); border-style: solid; color: var(--maroon, #7b1e3a); }

.co-switch { padding-left: 3rem; min-height: 1.8rem; }
.co-switch .form-check-input { width: 2.4rem; height: 1.3rem; margin-left: -3rem; cursor: pointer; border-color: rgba(var(--maroon-rgb, 123, 30, 58), .35); }
.co-switch .form-check-input:checked { background-color: var(--maroon, #7b1e3a); border-color: var(--maroon, #7b1e3a); }
.co-switch .form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(var(--gold-rgb, 201, 162, 39), .35); border-color: var(--gold, #c9a227); }
.co-switch .form-check-label { font-weight: 700; color: #3a2a30; cursor: pointer; }

/* ---------- fields ---------- */
.co-card .form-label { font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #7a6b63; margin-bottom: .35rem; }
.co-card .form-control { border-radius: 1rem; padding: .7rem 1rem; border: 1.5px solid rgba(var(--maroon-rgb, 123, 30, 58), .16); background: #fffdfb; transition: border-color .2s, box-shadow .2s; }
.co-card .form-control:focus { border-color: var(--gold, #c9a227); box-shadow: 0 0 0 4px rgba(var(--gold-rgb, 201, 162, 39), .28); background: #fff; }
.co-card .form-control.input-validation-error, .co-card .form-control.is-invalid { border-color: #c0392b; }
.co-human { margin-bottom: 1rem; padding: .9rem 1rem; border-radius: 1.2rem; background: rgba(255, 255, 255, .85); border: 1px solid rgba(var(--maroon-rgb, 123, 30, 58), .12); }

/* ---------- the summary: deep maroon, gold hairline ---------- */
.co-aside { position: sticky; top: calc(var(--header-height, 90px) + 1rem); }
.co-sum { position: relative; padding: 1.4rem 1.3rem 1.3rem; border-radius: 1.6rem; color: rgba(255, 255, 255, .88); overflow: hidden;
    background: radial-gradient(120% 90% at 0% 0%, var(--maroon, #7b1e3a) 0%, var(--maroon-dark, #5c1329) 45%, var(--maroon-darker, #3f0c1c) 100%);
    border: 1px solid rgba(var(--gold-rgb, 201, 162, 39), .45); box-shadow: 0 24px 54px rgba(60, 20, 40, .35), inset 0 1px 0 rgba(255, 255, 255, .12); }
.co-sum::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-light, #e8c766), transparent); box-shadow: 0 0 16px 2px rgba(var(--gold-rgb, 201, 162, 39), .7); }
.co-sum::after { content: ""; position: absolute; right: -4rem; bottom: -4rem; width: 12rem; height: 12rem; border-radius: 50%; background: radial-gradient(circle, rgba(var(--gold-rgb, 201, 162, 39), .16), transparent 70%); pointer-events: none; }
.co-sum-h { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .9rem; }
.co-sum-h h2 { margin: 0; font-family: var(--font-display, 'Playfair Display', serif); font-weight: 700; font-size: 1.3rem; color: #fff; }
.co-sum-n { font-size: .74rem; font-weight: 800; letter-spacing: .05em; padding: .25rem .7rem; border-radius: 999px; color: #2a1a22; background: linear-gradient(135deg, var(--gold-light, #e8c766), var(--gold, #c9a227)); box-shadow: 0 0 14px rgba(var(--gold-rgb, 201, 162, 39), .5); }

.co-lines { list-style: none; margin: 0 -.3rem .9rem; padding: 0 .3rem; max-height: 22rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(var(--gold-rgb, 201, 162, 39), .5) transparent; }
.co-lines::-webkit-scrollbar { width: 6px; }
.co-lines::-webkit-scrollbar-thumb { background: rgba(var(--gold-rgb, 201, 162, 39), .45); border-radius: 6px; }
.co-line { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .5rem 0; font-size: .86rem; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.co-ln { color: #fff; font-weight: 600; min-width: 0; }
.co-ln small { color: rgba(255, 255, 255, .6); font-weight: 600; margin-left: .2rem; }
.co-lp { font-weight: 800; color: var(--gold-light, #e8c766); white-space: nowrap; }

/* a category: its name, "19 pieces", the amount - and the pieces behind the arrow */
.co-grp-li { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.co-grp > summary { list-style: none; display: grid; grid-template-columns: 1fr auto auto auto; gap: .6rem; align-items: center; padding: .6rem 0; cursor: pointer; font-size: .88rem; border-radius: .6rem; }
.co-grp > summary::-webkit-details-marker { display: none; }
.co-grp > summary:focus-visible { outline: 2px solid var(--gold-light, #e8c766); outline-offset: 2px; }
.co-gname { font-weight: 800; color: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-gcount { font-size: .72rem; font-weight: 800; padding: .15rem .6rem; border-radius: 999px; color: var(--gold-light, #e8c766); background: rgba(var(--gold-rgb, 201, 162, 39), .16); border: 1px solid rgba(var(--gold-rgb, 201, 162, 39), .4); white-space: nowrap; }
.co-chev { font-size: .75rem; color: rgba(255, 255, 255, .7); transition: transform .25s; }
.co-grp[open] .co-chev { transform: rotate(180deg); }
.co-gl { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 .8rem; border-left: 2px solid rgba(var(--gold-rgb, 201, 162, 39), .35); }
.co-gl .co-line { border-bottom: 0; padding: .3rem 0; font-size: .8rem; }
.co-gl .co-ln { font-weight: 500; color: rgba(255, 255, 255, .85); }

.co-totals { padding-top: .5rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.co-row { display: flex; justify-content: space-between; gap: .8rem; padding: .32rem 0; font-size: .9rem; }
.co-row.good { color: #8be0ad; }
.co-row.note { font-size: .78rem; color: rgba(255, 255, 255, .6); }
.co-row.grand { margin-top: .5rem; padding-top: .8rem; border-top: 1px dashed rgba(var(--gold-rgb, 201, 162, 39), .5); align-items: baseline; font-weight: 700; }
.co-row.grand span:last-child { font-family: var(--font-display, 'Playfair Display', serif); font-size: 1.7rem; color: var(--gold-light, #e8c766); text-shadow: 0 0 18px rgba(var(--gold-rgb, 201, 162, 39), .45); }
.co-fine { margin-top: .5rem; font-size: .74rem; color: rgba(255, 255, 255, .55); }

.co-terms { position: relative; display: flex; align-items: center; gap: .7rem; margin: 1.1rem 0; font-size: .86rem; cursor: pointer; color: rgba(255, 255, 255, .85); }
.co-terms input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.co-box { flex: none; width: 1.4rem; height: 1.4rem; border-radius: .45rem; display: grid; place-items: center; font-size: .9rem; color: transparent; border: 1.5px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.co-terms:has(input:checked) .co-box { color: #2a1a22; background: linear-gradient(135deg, var(--gold-light, #e8c766), var(--gold, #c9a227)); border-color: var(--gold-light, #e8c766); box-shadow: 0 0 12px rgba(var(--gold-rgb, 201, 162, 39), .6); }
.co-terms:has(input:focus-visible) .co-box { outline: 2px solid var(--gold-light, #e8c766); outline-offset: 2px; }

.co-place { position: relative; overflow: hidden; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 3.2rem; border: 0; border-radius: 999px; cursor: pointer; font-weight: 900; font-size: 1.02rem; letter-spacing: .02em; color: #2a1a22;
    background: linear-gradient(135deg, var(--gold-light, #e8c766), var(--gold, #c9a227) 55%, var(--gold-dark, #a3801d)); box-shadow: 0 10px 26px rgba(var(--gold-rgb, 201, 162, 39), .5), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .15s, box-shadow .2s; }
.co-place::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); transition: left .6s; }
.co-place:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(var(--gold-rgb, 201, 162, 39), .6), 0 0 0 4px rgba(var(--gold-rgb, 201, 162, 39), .25); }
.co-place:hover::after { left: 120%; }
.co-place i { transition: transform .2s; }
.co-place:hover i { transform: translateX(4px); }
.co-place.btn-busy { opacity: .85; }

@media (max-width: 991.98px) {
    .co-aside { position: static; }
    .co-title { font-size: 1.7rem; }
    .co-steps li { padding-right: .6rem; font-size: .76rem; }
    .co-lines { max-height: 18rem; }
}
@media (max-width: 575.98px) {
    .co-card-h { padding: 1rem 1rem .1rem; }
    .co-card-b { padding: .9rem 1rem 1.2rem; }
    .co-choices { grid-template-columns: 1fr; }
    .co-steps { width: 100%; justify-content: space-between; }
    .co-steps li { flex: 1 1 0; justify-content: center; padding: .35rem .3rem; }
}
@media (prefers-reduced-motion: reduce) { .co-place::after, .co-place i, .co-chev, .co-choice, .co-radio::after { transition: none; } }

/* delivery abroad: the note under the shipping row of the order summary */
.co-shipnote { margin: .1rem 0 .35rem; padding: .5rem .7rem; border-radius: .9rem; font-size: .78rem; line-height: 1.35; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .09); }
.co-shipnote[hidden] { display: none; }
.co-shipnote i { color: var(--gold-light, #e8c766); }
.co-shipnote .bad, .co-shipnote .bad i { color: #ffb3b3; }
.co-place:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
