/* ============================================================
   GameRent — Cart / Checkout / Confirmation styles
   ============================================================ */

/* ---------- CART ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
@media (max-width: 900px){ .cart-layout { grid-template-columns: 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cart-item-cov { cursor: pointer; }
.cart-item-cov .cover { border-radius: var(--r-sm); }
.cart-item-title { font-size: 17px; font-weight: 600; cursor: pointer; }
.cart-item-title:hover { color: var(--ac); }
.cart-item-period { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--tx-dim); flex-wrap: wrap; }
.cart-item-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.cart-dur-pills { display: flex; gap: 6px; margin-top: 6px; }
.cart-dur-pills .durpill { width: 44px; flex: none; }
.cart-item-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
@media (max-width: 460px){ .cart-item { grid-template-columns: 84px 1fr; gap: 12px; } }

.cart-summary { position: sticky; top: calc(var(--nav-h) + 18px); padding: 22px; border-radius: var(--r-lg);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.cart-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; color: var(--tx-dim); }
.cart-sum-row b { color: var(--tx); font-weight: 700; }
.cart-sum-row.total { font-size: 16px; color: var(--tx); font-weight: 700; }
.cart-sum-row.total b { font-size: 22px; }
.cart-deposit-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 600; }
.cart-pay-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--tx-mute); }
.cart-pay-badges { display: flex; gap: 5px; margin-left: auto; }
.cart-pay-badges span { font-size: 10px; font-weight: 700; color: var(--tx-dim); padding: 3px 7px; border-radius: 5px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--f-disp); }

/* ---------- CHECKOUT ---------- */
.ck { min-height: 100vh; }
.ck-bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.ck-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding-block: 20px 80px; align-items: start; }
@media (max-width: 920px){ .ck-grid { grid-template-columns: 1fr; gap: 26px; } }
.ck-back { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--tx-dim); margin-bottom: 18px; }
.ck-back:hover { color: var(--ac); }

.ck-sec { padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 16px; }
.ck-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ck-sec-head h2 { font-size: 19px; }
.ck-step { width: 28px; height: 28px; border-radius: 99px; background: var(--ac); color: var(--ac-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.ck-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ck-field { display: flex; flex-direction: column; gap: 7px; }
.ck-field.full { grid-column: 1 / -1; }
.ck-label { font-size: 13px; font-weight: 600; color: var(--tx-dim); }
.ck-field input { height: 46px; border-radius: var(--r-sm); background: var(--bg-2); padding: 0 14px; font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s; }
.ck-field input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ac-line); }
.ck-field input::placeholder { color: var(--tx-faint); }
.ck-err { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--danger); font-weight: 600; }
.ck-eta { grid-column: 1/-1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ok); margin-top: -2px; }
@media (max-width: 480px){ .ck-fields { grid-template-columns: 1fr; } }

.ck-pay { display: flex; flex-direction: column; gap: 10px; }
.ck-payopt { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: var(--r-md); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; transition: all .15s; }
.ck-payopt:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.ck-payopt.on { background: var(--ac-soft); box-shadow: inset 0 0 0 1.5px var(--ac); }
.ck-payopt-radio { width: 18px; height: 18px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line-3); flex-shrink: 0; position: relative; }
.ck-payopt.on .ck-payopt-radio { box-shadow: inset 0 0 0 1.5px var(--ac); }
.ck-payopt.on .ck-payopt-radio::after { content:''; position: absolute; inset: 4px; border-radius: 99px; background: var(--ac); }
.ck-payopt-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; color: var(--tx-dim); flex-shrink: 0; }
.ck-payopt.on .ck-payopt-ic { color: var(--ac); }
.ck-payopt-text { flex: 1; display: flex; flex-direction: column; }
.ck-payopt-text b { font-size: 14.5px; }
.ck-payopt-text span { font-size: 12.5px; color: var(--tx-mute); }
.ck-payextra { padding: 4px 2px 2px; }

.ck-summary { position: sticky; top: 20px; padding: 22px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.ck-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.ck-item { display: flex; align-items: center; gap: 12px; }
.ck-item-cov { width: 38px; flex-shrink: 0; }
.ck-item-cov .cover { border-radius: 5px; }
.ck-item-title { font-size: 13.5px; font-weight: 600; line-height: 1.25; }

/* ---------- CONFIRMED ---------- */
.cf { min-height: 100vh; }
.cf-wrap { max-width: 660px; margin-inline: auto; text-align: center; padding-block: 40px 80px; display: flex; flex-direction: column; align-items: center; }
.cf-check { width: 80px; height: 80px; border-radius: 99px; background: var(--ok); color: var(--ok-ink); display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; box-shadow: 0 12px 40px -8px rgba(52,224,138,.5); animation: cfpop .5s cubic-bezier(.22,1.3,.4,1) both; }
@keyframes cfpop { from { transform: scale(.5); } to { transform: scale(1); } }
.cf-title { font-size: 38px; font-weight: 700; margin-bottom: 10px; }
.cf-card { width: 100%; text-align: left; margin-top: 30px; padding: 22px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
.cf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cf-deliver { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; padding: 8px 14px; border-radius: 99px; background: var(--ac-soft); color: var(--ac); }
.cf-items { display: flex; flex-direction: column; gap: 14px; padding: 18px 0; }
.cf-item { display: flex; align-items: center; gap: 14px; }
.cf-item-cov { width: 46px; flex-shrink: 0; }
.cf-item-cov .cover { border-radius: 6px; }
.cf-total { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.cf-total b { font-size: 20px; }
.cf-steps { width: 100%; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 18px; }
@media (max-width: 640px){ .cf-steps { grid-template-columns: 1fr; } }
.cf-step { display: flex; gap: 12px; text-align: left; padding: 16px; border-radius: var(--r-md); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.cf-step-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--ac-soft); color: var(--ac); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 0 0 1px var(--ac-line); }
.cf-step b { font-size: 14px; }
.cf-step p { font-size: 12.5px; color: var(--tx-mute); margin-top: 4px; line-height: 1.5; }
