/* ==========================================================================
   Giassaris — Checkout + Thank you
   ========================================================================== */

/* ---- Minimal header (logo only) ---- */
.mini-header { height: 77px; display: flex; align-items: center; border-bottom: 1px solid var(--c-border); }
.mini-header img { height: 36px; }
.mini-header--dark { background: var(--c-black); border: none; }

/* ---- Checkout layout ---- */
.checkout-layout { display: grid; grid-template-columns: 280px 1fr 500px; gap: 48px; align-items: start; padding-block: 32px 64px; min-height: 100vh; position: relative; --bleed: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.checkout-layout::before { content: ''; position: absolute; top: 0; bottom: 0; right: calc(-1 * var(--bleed)); width: 500px; background: var(--c-grey-100); z-index: 0; }
.checkout-layout .checkout-form { max-width: 737px; margin-left: auto; margin-right: auto;}
.checkout-layout .cart-summary { position: relative; z-index: 1; max-width: 370px; margin-left: auto; margin-right: auto;}
.checkout-intro h1 { font-size: 32px; font-weight: var(--fw-bold); line-height: 1.15; }
.checkout-intro p { color: var(--c-text-muted); font-size: var(--fs-sm); margin-top: 14px; line-height: 1.6; }

/* login prompt */
.login-prompt { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,106,0,.07); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; }
.login-prompt__text b { display: block; font-size: var(--fs-sm); }
.login-prompt__text span { font-size: var(--fs-xs); color: var(--c-text-muted); }
.login-prompt__btns { display: flex; gap: 10px; flex: none; }
.login-prompt__btns .btn { height: 49px; }
.login-prompt__btns .btn--outline { background: var(--c-white); border-color: var(--c-grey-300); }
.login-prompt__btns .btn--outline:hover { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }

/* radio toggle row */
.radio-row { display: flex; gap: 28px; margin-bottom: 24px; }
.radio { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); cursor: pointer; }
.radio input { accent-color: var(--c-accent); width: 18px; height: 18px; }

/* form section */
.form-section { margin-bottom: 32px; }
.form-section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.form-section__head h3 { font-size: var(--fs-base); font-weight: var(--fw-bold); }
.form-section__head .req { font-size: var(--fs-xs); color: var(--c-text-muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* save-info toggle box */
.save-box { display: flex; align-items: center; gap: 12px; background: var(--c-grey-100); border-radius: var(--radius); padding: 18px 20px; margin-top: 8px; font-size: var(--fs-sm); }

/* selectors (shipping / payment) */
.selectors { display: grid; gap: 12px; }
.selector { display: flex; align-items: center; gap: 16px; border: 1.5px solid var(--c-border); border-radius: var(--radius); padding: 10px 20px 10px 10px; cursor: pointer; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.selector:hover { border-color: var(--c-grey-500); }
.selector.is-active { border-color: var(--c-border); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.selector__icon { width: 60px; height: 60px; background: var(--c-grey-150); border-radius: 3px; display: grid; place-items: center; flex: none; color: var(--c-text); }
.selector__icon img { max-height: 32px; }
.selector__body { flex: 1; }
.selector__title { font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.selector__sub { font-size: var(--fs-xs); color: var(--c-text-muted); margin-top: 2px; }
.selector__price { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.selector__radio { width: 22px; height: 22px; border-radius: 50%; background: #e4e4e4; flex: none; display: grid; place-items: center; }
.selector.is-active .selector__radio { background: var(--c-accent); }
.selector.is-active .selector__radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* ---- Checkout sidebar mini products ---- */
.mini-products { padding: 18px 20px; }
.mini-products__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mini-products__head h4 { font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.mini-products__edit { font-size: 10px; color: var(--c-text-muted); }
.mini-products__actions { display: flex; align-items: center; gap: 12px; }
.mini-products__count { min-width: 40px; height: 19px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-pill); font-size: 12px; font-weight: var(--fw-bold); }
.mini-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--c-border); }
.mini-item__thumb { width: 60px; height: 60px; background: var(--c-white); border-radius: var(--radius-sm); display: grid; place-items: center; overflow: hidden; }
.mini-item__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mini-item__title { font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.mini-item__opts { font-size: 11px; color: var(--c-grey-500); margin-top: 3px; }
.mini-item__right { text-align: right; font-size: var(--fs-xs); }
.mini-item__qty { color: var(--c-grey-500); font-weight: var(--fw-bold);}
.mini-item__price { font-weight: var(--fw-bold); color: var(--c-accent); margin-top: 4px; }
.mini-item__price del { display: block; color: var(--c-grey-500); font-weight: var(--fw-book); text-decoration: line-through; font-size: 11px; }

/* Laptop: the full 3-col (280 + 1fr + 500) only fits ≥1500, so below that drop
   to 2-col (form + summary) with the intro on top. The absolute grey bleed rail
   can't track the column when the grid reflows, so disable it and give the
   summary its own grey card instead. */
@media (min-width: 1024px) and (max-width: 1499px) {
  .checkout-layout { grid-template-columns: 1fr 400px; gap: 32px; }
  .checkout-intro { grid-column: 1 / -1; }
  .checkout-layout::before { display: none; }
  .checkout-layout .checkout-form { max-width: none; margin: 0; }
  .checkout-layout .cart-summary { max-width: none; margin: 0; background: var(--c-grey-100); border-radius: var(--radius-lg); padding: 24px; }
  /* the form column is narrow here — stack the login prompt so its text + buttons
     row doesn't overflow */
  .login-prompt { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1023px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 28px; }
  .checkout-layout::before { display: none; }
  .checkout-intro { order: -1; }
  .checkout-layout .checkout-form { max-width: none; margin: 0; }
  .checkout-layout .cart-summary { max-width: none; margin: 0; background: var(--c-grey-100); border-radius: var(--radius-lg); padding: 20px; }
  /* summary card now supplies the padding — drop the mini-products' own */
  .mini-products { padding: 0; }
  .login-prompt { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .checkout-intro h1 { font-size: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  /* the two account buttons won't fit side by side — stack them full-width
     (otherwise their combined min-width pins the whole column past the viewport) */
  .login-prompt__btns { width: 100%; flex-wrap: wrap; }
  .login-prompt__btns .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Thank you page
   ========================================================================== */
.thankyou { max-width: 920px; margin: 0 auto; padding-block: 56px 80px; }
.thankyou__head { text-align: center; margin-bottom: 48px; }
.thankyou__check { width: 80px; height: 80px; border-radius: 50%; background: var(--c-grey-150); display: grid; place-items: center; margin: 0 auto 24px; color: var(--c-accent); }
.thankyou__check svg { width: 34px; height: 34px; }
.thankyou__head h1 { font-size: 28px; font-weight: var(--fw-bold); margin-bottom: 12px; }
.thankyou__head p { color: var(--c-text-muted); font-size: var(--fs-sm); }

.order-list__head { display: flex; justify-content: space-between; font-size: var(--fs-sm); font-weight: var(--fw-bold); padding-bottom: 12px; }
.order-list__head span:last-child { color: var(--c-text-muted); font-weight: var(--fw-book); }
.order-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 16px; align-items: center; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.order-row__thumb { width: 80px; height: 80px; background: var(--c-grey-150); border-radius: var(--radius-sm); display: grid; place-items: center; overflow: hidden; }
.order-row__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.order-row__title { font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.order-row__opts { font-size: var(--fs-xs); color: var(--c-grey-500); margin-top: 4px; }
.order-row__right { text-align: right; }
.order-row__qty { font-size: var(--fs-xs); color: var(--c-grey-500); }
.order-row__price { font-weight: var(--fw-bold); color: var(--c-accent); font-size: 13px; margin-top: 0.5rem;}
.order-row__price del { display: block; color: var(--c-grey-500); font-weight: var(--fw-book); text-decoration: line-through; font-size: 10px; }

.info-section { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--c-border); }
.info-section h3 { font-size: var(--fs-sm); font-weight: var(--fw-bold); margin-bottom: 24px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.info-grid dt { font-size: 13px; font-weight: var(--fw-bold); }
.info-grid dd { font-size: var(--fs-sm); color: var(--c-text-muted); margin-top: 4px; }
.info-note { text-align: center; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--c-border); }
.info-note__icon { width: 18px; height: 18px; border-radius: 50%; background: var(--c-accent); color: #fff; font-weight: var(--fw-bold); font-size: 12px; display: inline-grid; place-items: center; margin-bottom: 12px; }
.info-note p { font-size: var(--fs-base); font-weight: var(--fw-bold); }
.info-note small { display: block; font-size: 13px; color: var(--c-text-muted); margin-top: 8px; font-weight: var(--fw-book); }
.thankyou__cta { display:flex; justify-content: center; margin-top: 2rem;}
.thankyou__cta .btn--outline { border-color: var(--c-grey-300); font-size: 13px;}
@media (max-width: 560px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .thankyou__check { width: 60px; height: 60px; }
  .thankyou__head h1 { font-size: 24px; }
}

.selector__icon i { font-size: 22px; }
.discount-toggle i { font-size: 13px; transition: transform var(--t); }
.discount-toggle.is-open i { transform: rotate(180deg); }

.thankyou__check i { font-size: 32px; }
@media (max-width: 560px) { .thankyou__check i { font-size: 24px; } }
