/* =====================================================================
   Chashmahouse — Cart / Checkout / Orders
   Loaded after main.css; reuses its :root design tokens.
   ===================================================================== */

/* ---- Add to cart buttons ---- */
.ch-btn-cart {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .6rem .9rem; border: none; border-radius: var(--ch-radius-sm);
    background: var(--ch-primary); color: #fff; font-family: var(--ch-font-body);
    font-size: .88rem; font-weight: 600; line-height: 1.2; cursor: pointer;
    transition: background .18s ease, transform .12s ease; white-space: nowrap;
}
.ch-btn-cart:hover  { background: var(--ch-accent-dark); color: #fff; }
.ch-btn-cart:active { transform: translateY(1px); }
.ch-btn-cart.is-busy  { opacity: .75; cursor: progress; }
.ch-btn-cart.is-added { background: var(--ch-success); }
.ch-btn-cart-sm { width: 100%; font-size: .82rem; padding: .5rem .7rem; }
.ch-btn-cart-lg { flex: none; padding: .85rem 2rem; font-size: 1rem; border-radius: var(--ch-radius); }

/* ---- Quantity picker (product detail) ---- */
.ch-qty-picker {
    display: inline-flex; align-items: center; border: 1.5px solid var(--ch-gray-light);
    border-radius: var(--ch-radius); overflow: hidden; background: #fff;
}
.ch-qty-input {
    width: 48px; border: none; text-align: center; font-weight: 600;
    font-family: var(--ch-font-body); color: var(--ch-dark); background: transparent;
}
.ch-qty-input:focus { outline: none; }

/* ---- Header cart badge ---- */
.ch-cart-link { position: relative; }
.ch-cart-badge, .ch-mb-badge {
    position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px;
    padding: 0 5px; border-radius: 9px; background: var(--ch-accent); color: #fff;
    font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
    opacity: 0; transform: scale(.6); transition: opacity .18s ease, transform .18s ease;
}
.ch-cart-badge.is-visible, .ch-mb-badge.is-visible { opacity: 1; transform: scale(1); }
.ch-mb-cart { position: relative; }
.ch-mb-badge { top: 2px; right: 50%; margin-right: -22px; }

/* ---- Toast ---- */
.ch-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
    display: flex; align-items: center; gap: .55rem; z-index: 2000;
    padding: .8rem 1.3rem; border-radius: var(--ch-radius); background: var(--ch-primary);
    color: #fff; font-size: .9rem; font-weight: 500; box-shadow: var(--ch-shadow-md);
    opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
    max-width: calc(100vw - 32px);
}
.ch-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.ch-toast.is-success i { color: #6ee7b7; }
.ch-toast.is-error   { background: #7f1d1d; }
.ch-toast.is-error i { color: #fca5a5; }
@media (max-width: 991px) { .ch-toast { bottom: 86px; } }

/* ---- Cart page ---- */
.ch-cart-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.6rem; }
.ch-cart-title { font-family: var(--ch-font-heading); font-size: 2.1rem; font-weight: 600; color: var(--ch-dark); margin: 0; }
.ch-cart-count { font-size: .92rem; color: var(--ch-gray); }
.ch-cart-alert {
    padding: .8rem 1.1rem; border-radius: var(--ch-radius);
    background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; font-size: .9rem;
}
.ch-cart-list { background: #fff; border: 1px solid var(--ch-gray-light); border-radius: var(--ch-radius); overflow: hidden; }
.ch-cart-item {
    display: grid; grid-template-columns: 92px 1fr auto auto 36px; gap: 1rem;
    align-items: center; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--ch-gray-light);
}
.ch-cart-item:last-child { border-bottom: none; }
.ch-cart-thumb { display: block; width: 92px; height: 92px; border-radius: var(--ch-radius-sm); overflow: hidden; background: var(--ch-light); }
.ch-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ch-cart-name { display: block; font-weight: 600; color: var(--ch-dark); text-decoration: none; line-height: 1.35; }
.ch-cart-name:hover { color: var(--ch-accent-dark); }
.ch-cart-sku  { font-size: .76rem; color: var(--ch-gray); margin-top: .2rem; }
.ch-cart-unit { font-size: .84rem; color: var(--ch-gray); margin-top: .3rem; }
.ch-cart-qty  { display: inline-flex; align-items: center; border: 1.5px solid var(--ch-gray-light); border-radius: var(--ch-radius-sm); overflow: hidden; }
.ch-qty-btn {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ch-light); color: var(--ch-dark); border: none; cursor: pointer;
    font-size: .72rem; text-decoration: none; transition: background .15s ease;
}
.ch-qty-btn:hover { background: var(--ch-gray-light); color: var(--ch-dark); }
.ch-qty-picker .ch-qty-btn { background: transparent; }
.ch-qty-val { min-width: 38px; text-align: center; font-weight: 600; font-size: .92rem; }
.ch-cart-line { font-weight: 700; font-size: 1.05rem; color: var(--ch-dark); white-space: nowrap; }
.ch-cart-remove {
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--ch-gray); text-decoration: none; transition: all .15s ease;
}
.ch-cart-remove:hover { background: #fee2e2; color: var(--ch-danger); }
.ch-cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.2rem; flex-wrap: wrap; }
.ch-cart-clear { color: var(--ch-gray); font-size: .88rem; text-decoration: none; }
.ch-cart-clear:hover { color: var(--ch-danger); text-decoration: underline; }

.ch-cart-empty { text-align: center; padding: 4rem 1rem; }
.ch-cart-empty-icon {
    width: 92px; height: 92px; margin: 0 auto 1.4rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--ch-light); color: var(--ch-accent); font-size: 2.3rem;
}
.ch-cart-empty-title { font-family: var(--ch-font-heading); font-size: 1.9rem; color: var(--ch-dark); margin-bottom: .5rem; }
.ch-cart-empty-text  { color: var(--ch-gray); max-width: 440px; margin: 0 auto 1.6rem; }

/* ---- Summary panel ---- */
.ch-summary { background: #fff; border: 1px solid var(--ch-gray-light); border-radius: var(--ch-radius); padding: 1.5rem; }
.ch-summary-sticky { position: sticky; top: 96px; }
.ch-summary-title { font-family: var(--ch-font-heading); font-size: 1.3rem; font-weight: 600; color: var(--ch-dark); margin-bottom: 1.1rem; }
.ch-summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .93rem; color: var(--ch-gray); }
.ch-summary-val { font-weight: 600; color: var(--ch-dark); }
.ch-summary-note {
    margin: .5rem 0 .2rem; padding: .6rem .8rem; border-radius: var(--ch-radius-sm);
    background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; font-size: .82rem;
}
.ch-summary-total {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    margin-top: .8rem; padding-top: 1rem; border-top: 2px solid var(--ch-gray-light);
    font-size: 1.05rem; font-weight: 700; color: var(--ch-dark);
}
.ch-summary-grand { font-size: 1.45rem; color: var(--ch-accent-dark); }
.ch-btn-checkout {
    display: block; width: 100%; margin-top: 1.2rem; padding: .95rem 1rem; border: none;
    border-radius: var(--ch-radius); background: var(--ch-accent); color: #fff;
    font-family: var(--ch-font-body); font-size: 1rem; font-weight: 600;
    text-align: center; text-decoration: none; cursor: pointer; transition: background .18s ease;
}
.ch-btn-checkout:hover { background: var(--ch-accent-dark); color: #fff; }
.ch-summary-trust { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--ch-gray-light); }
.ch-summary-trust div { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ch-gray); padding: .25rem 0; }
.ch-summary-trust i { color: var(--ch-accent); width: 16px; }

/* ---- Checkout ---- */
.ch-checkout-card { background: #fff; border: 1px solid var(--ch-gray-light); border-radius: var(--ch-radius); padding: 1.6rem; }
.ch-checkout-heading {
    display: flex; align-items: center; gap: .6rem; font-family: var(--ch-font-heading);
    font-size: 1.22rem; font-weight: 600; color: var(--ch-dark); margin-bottom: 1.1rem;
}
.ch-step-num {
    width: 26px; height: 26px; border-radius: 50%; background: var(--ch-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--ch-font-body); font-size: .82rem; font-weight: 700; flex: none;
}
.ch-label { display: block; font-size: .83rem; font-weight: 600; color: var(--ch-dark); margin-bottom: .32rem; }
.ch-req   { color: var(--ch-danger); }
.ch-input {
    width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--ch-gray-light);
    border-radius: var(--ch-radius-sm); font-family: var(--ch-font-body); font-size: .93rem;
    color: var(--ch-dark); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.ch-input:focus { outline: none; border-color: var(--ch-accent); box-shadow: 0 0 0 3px rgba(200,169,110,.15); }
.ch-help { font-size: .76rem; color: var(--ch-gray); margin-top: .3rem; }
.ch-checkout-error {
    padding: .85rem 1.1rem; border-radius: var(--ch-radius);
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .9rem; font-weight: 500;
}
.ch-pay-option {
    display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; cursor: pointer;
    border: 2px solid var(--ch-gray-light); border-radius: var(--ch-radius); background: #fff;
}
.ch-pay-option.ch-pay-selected { border-color: var(--ch-accent); background: #fffdf7; }
.ch-pay-icon {
    width: 42px; height: 42px; border-radius: 50%; background: var(--ch-light); color: var(--ch-accent);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex: none;
}
.ch-pay-text strong { display: block; font-size: .95rem; color: var(--ch-dark); }
.ch-pay-text small  { color: var(--ch-gray); font-size: .82rem; }
.ch-account-box { padding: 1.1rem; border: 1px dashed var(--ch-gray-light); border-radius: var(--ch-radius); background: var(--ch-light); }
.ch-check { display: flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 500; color: var(--ch-dark); cursor: pointer; }
.ch-check small { color: var(--ch-gray); font-weight: 400; }
.ch-account-pwd { margin-top: .9rem; }
.ch-checkout-terms { margin: .9rem 0 0; font-size: .78rem; color: var(--ch-gray); text-align: center; }
.ch-checkout-terms a { color: var(--ch-accent-dark); }

.ch-checkout-items { margin-bottom: 1.1rem; max-height: 320px; overflow-y: auto; }
.ch-checkout-item { display: grid; grid-template-columns: 54px 1fr auto; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--ch-gray-light); }
.ch-checkout-item:last-child { border-bottom: none; }
.ch-checkout-thumb { position: relative; width: 54px; height: 54px; border-radius: var(--ch-radius-sm); overflow: hidden; background: var(--ch-light); }
.ch-checkout-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ch-checkout-qty {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 10px; background: var(--ch-primary); color: #fff;
    font-size: .7rem; font-weight: 700; line-height: 20px; text-align: center;
}
.ch-checkout-name { font-size: .88rem; font-weight: 500; color: var(--ch-dark); line-height: 1.35; }
.ch-checkout-name a { color: inherit; text-decoration: none; }
.ch-checkout-name a:hover { color: var(--ch-accent-dark); }
.ch-checkout-price { font-weight: 600; font-size: .92rem; color: var(--ch-dark); white-space: nowrap; }

/* ---- Order confirmed ---- */
.ch-success { text-align: center; padding: 2.6rem 1rem 1.8rem; }
.ch-success-check {
    width: 76px; height: 76px; margin: 0 auto 1.3rem; border-radius: 50%;
    background: var(--ch-success); color: #fff; font-size: 2rem;
    display: flex; align-items: center; justify-content: center;
    animation: chPop .4s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes chPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ch-success-title { font-family: var(--ch-font-heading); font-size: 2.1rem; color: var(--ch-dark); margin-bottom: .6rem; }
.ch-success-text  { color: var(--ch-gray); max-width: 540px; margin: 0 auto 1.4rem; }
.ch-success-order {
    display: inline-flex; flex-direction: column; gap: .2rem; padding: .9rem 2rem;
    border-radius: var(--ch-radius); background: var(--ch-light); border: 1px solid var(--ch-accent-light);
}
.ch-success-order span   { font-size: .74rem; letter-spacing: .6px; text-transform: uppercase; color: var(--ch-gray); }
.ch-success-order strong { font-size: 1.25rem; color: var(--ch-dark); }
.ch-order-notice {
    margin-top: 1.2rem; padding: .9rem 1.2rem; border-radius: var(--ch-radius);
    background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; font-size: .9rem;
}
.ch-addr-block strong { display: block; color: var(--ch-dark); margin-bottom: .35rem; }
.ch-addr-block p { margin: 0 0 .3rem; font-size: .9rem; color: var(--ch-gray); line-height: 1.55; }
.ch-confirm-actions { margin-top: 1.3rem; }

/* ---- Track order ---- */
.ch-track-form-wrap { max-width: 860px; margin: 0 auto; text-align: center; }
.ch-track-sub { color: var(--ch-gray); margin-bottom: 1.4rem; }
.ch-track-form { background: #fff; border: 1px solid var(--ch-gray-light); border-radius: var(--ch-radius); padding: 1.4rem; text-align: left; }
.ch-track-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.ch-track-label { font-size: .74rem; letter-spacing: .6px; text-transform: uppercase; color: var(--ch-gray); }
.ch-track-no { font-size: 1.3rem; font-weight: 700; color: var(--ch-dark); }
.ch-track-status-badge {
    padding: .4rem 1rem; border-radius: 999px; background: var(--ch-accent-light);
    color: var(--ch-accent-dark); font-size: .85rem; font-weight: 600;
}
.ch-track-steps { display: flex; gap: .4rem; margin: 1.4rem 0 .4rem; }
.ch-track-step { flex: 1; text-align: center; position: relative; }
.ch-track-step::before {
    content: ''; position: absolute; top: 19px; left: -50%; width: 100%; height: 3px;
    background: var(--ch-gray-light); z-index: 0;
}
.ch-track-step:first-child::before { display: none; }
.ch-track-step.is-done::before, .ch-track-step.is-current::before { background: var(--ch-success); }
.ch-track-dot {
    position: relative; z-index: 1; width: 40px; height: 40px; margin: 0 auto .5rem;
    border-radius: 50%; background: #fff; border: 3px solid var(--ch-gray-light);
    color: var(--ch-gray-light); display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.ch-track-step.is-done .ch-track-dot    { background: var(--ch-success); border-color: var(--ch-success); color: #fff; }
.ch-track-step.is-current .ch-track-dot { background: #fff; border-color: var(--ch-success); color: var(--ch-success); box-shadow: 0 0 0 5px rgba(16,185,129,.16); }
.ch-track-step-label { font-size: .78rem; color: var(--ch-gray); font-weight: 500; }
.ch-track-step.is-done .ch-track-step-label,
.ch-track-step.is-current .ch-track-step-label { color: var(--ch-dark); font-weight: 600; }
.ch-track-cancelled {
    padding: .9rem 1.2rem; border-radius: var(--ch-radius);
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-weight: 500;
}
.ch-timeline { position: relative; padding-left: .4rem; }
.ch-timeline-row { display: grid; grid-template-columns: 18px 1fr; gap: .9rem; padding: .7rem 0; }
.ch-timeline-dot { width: 11px; height: 11px; margin-top: .35rem; border-radius: 50%; background: var(--ch-accent); }
.ch-timeline-status { font-weight: 600; color: var(--ch-dark); font-size: .93rem; }
.ch-timeline-note   { font-size: .85rem; color: var(--ch-gray); }
.ch-timeline-date   { font-size: .76rem; color: var(--ch-gray); margin-top: .15rem; }

/* ---- Verify email ---- */
.ch-verify { max-width: 560px; margin: 0 auto; text-align: center; padding: 3rem 1rem; }
.ch-verify-icon {
    width: 84px; height: 84px; margin: 0 auto 1.4rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2.1rem;
}
.ch-verify-icon.is-ok   { background: #d1fae5; color: var(--ch-success); }
.ch-verify-icon.is-warn { background: #fef3c7; color: #d97706; }
.ch-verify-title { font-family: var(--ch-font-heading); font-size: 1.9rem; color: var(--ch-dark); margin-bottom: .6rem; }
.ch-verify-text  { color: var(--ch-gray); margin-bottom: 1.6rem; }
.ch-verify-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* ---- My orders ---- */
.ch-order-row {
    display: grid; grid-template-columns: 1fr auto auto auto; gap: 1rem; align-items: center;
    padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--ch-gray-light);
    border-radius: var(--ch-radius); margin-bottom: .8rem;
}
.ch-order-no    { font-weight: 700; color: var(--ch-dark); text-decoration: none; }
.ch-order-no:hover { color: var(--ch-accent-dark); }
.ch-order-date  { font-size: .82rem; color: var(--ch-gray); }
.ch-order-total { font-weight: 700; color: var(--ch-dark); white-space: nowrap; }
.ch-order-badge { padding: .3rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.ch-order-badge.s-pending    { background: #fef3c7; color: #92400e; }
.ch-order-badge.s-confirmed  { background: #dbeafe; color: #1e40af; }
.ch-order-badge.s-processing { background: #e0e7ff; color: #3730a3; }
.ch-order-badge.s-shipped    { background: #cffafe; color: #155e75; }
.ch-order-badge.s-delivered  { background: #d1fae5; color: #065f46; }
.ch-order-badge.s-cancelled  { background: #fee2e2; color: #991b1b; }

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .ch-cart-item {
        grid-template-columns: 76px 1fr 32px;
        grid-template-areas: "thumb info remove" "thumb qty line";
        row-gap: .7rem;
    }
    .ch-cart-thumb  { grid-area: thumb; width: 76px; height: 76px; }
    .ch-cart-info   { grid-area: info; }
    .ch-cart-qty    { grid-area: qty; justify-self: start; }
    .ch-cart-line   { grid-area: line; justify-self: end; }
    .ch-cart-remove { grid-area: remove; justify-self: end; }
    .ch-cart-title  { font-size: 1.65rem; }
    .ch-summary-sticky { position: static; }
    .ch-track-steps { gap: .15rem; }
    .ch-track-dot   { width: 32px; height: 32px; font-size: .75rem; }
    .ch-track-step::before { top: 15px; }
    .ch-track-step-label { font-size: .66rem; }
    .ch-order-row { grid-template-columns: 1fr auto; row-gap: .5rem; }
    .ch-detail-actions { flex-wrap: wrap; gap: .7rem; }
    .ch-btn-cart-lg { width: 100%; }
}

/* ---- Final-sale notice (no returns policy) ---- */
.ch-final-sale {
    display: flex; align-items: flex-start; gap: .55rem;
    margin-top: 1rem; padding: .7rem .9rem;
    border-radius: var(--ch-radius-sm);
    background: #fffbeb; border: 1px solid #fde68a;
    color: #92400e; font-size: .8rem; line-height: 1.45;
}
.ch-final-sale i { margin-top: .12rem; flex: none; }

.ch-btn-checkout.is-busy { opacity: .75; cursor: progress; }

/* =========================================================================
   CUSTOMER ACCOUNT  —  /login, /reset-password
   ========================================================================= */

.ch-auth-wrap         { max-width: 1040px; margin: 0 auto; }
.ch-auth-wrap-narrow  { max-width: 520px; }

.ch-auth-card {
    background: #fff; border: 1px solid var(--ch-gray-light);
    border-radius: var(--ch-radius); padding: 2rem 1.8rem;
    box-shadow: var(--ch-shadow-sm);
}
.ch-auth-head  { text-align: center; margin-bottom: 1.5rem; }
.ch-auth-icon {
    width: 58px; height: 58px; margin: 0 auto 1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--ch-light); color: var(--ch-accent); font-size: 1.4rem;
    border: 1px solid var(--ch-accent-light);
}
.ch-auth-icon.is-ok   { background: #ecfdf5; border-color: #a7f3d0; color: var(--ch-success); }
.ch-auth-icon.is-warn { background: #fffbeb; border-color: #fde68a; color: #d97706; }

.ch-auth-title {
    font-family: var(--ch-font-heading); font-size: 1.7rem; font-weight: 600;
    color: var(--ch-dark); margin-bottom: .45rem; line-height: 1.2;
}
.ch-auth-sub   { font-size: .92rem; color: var(--ch-gray); margin: 0; }
.ch-auth-hint  { font-size: .82rem; color: var(--ch-gray); text-align: center; margin: 1.1rem 0; }
.ch-auth-hint a, .ch-auth-link { color: var(--ch-accent-dark); font-weight: 500; }
.ch-auth-hint a:hover, .ch-auth-link:hover { color: var(--ch-accent); text-decoration: underline; }
.ch-auth-link  { font-size: .85rem; background: none; border: none; padding: 0; cursor: pointer; }

.ch-auth-row        { display: flex; justify-content: flex-end; }
.ch-auth-row-center { justify-content: center; }

/* password field with show/hide eye */
.ch-pwd-wrap { position: relative; }
.ch-pwd-wrap .ch-input { padding-right: 2.9rem; }
.ch-pwd-toggle {
    position: absolute; top: 50%; right: .25rem; transform: translateY(-50%);
    width: 2.4rem; height: 2.2rem; display: flex; align-items: center; justify-content: center;
    border: none; background: none; color: var(--ch-gray); cursor: pointer; font-size: .9rem;
    border-radius: var(--ch-radius-sm); transition: color .15s ease;
}
.ch-pwd-toggle:hover { color: var(--ch-accent-dark); }

/* signed-out / reset confirmations */
.ch-auth-notice {
    max-width: 1040px; margin: 0 auto 1.5rem; padding: .85rem 1.1rem;
    border-radius: var(--ch-radius); background: #ecfdf5; border: 1px solid #a7f3d0;
    color: #065f46; font-size: .9rem; font-weight: 500;
}

/* "Don't have an account?" side panel */
.ch-auth-aside {
    height: 100%; padding: 2rem 1.8rem; border-radius: var(--ch-radius);
    background: var(--ch-light); border: 1px solid var(--ch-gray-light);
}
.ch-auth-aside-title {
    font-family: var(--ch-font-heading); font-size: 1.4rem; font-weight: 600;
    color: var(--ch-dark); margin-bottom: .6rem;
}
.ch-auth-aside-text { font-size: .9rem; color: var(--ch-gray); line-height: 1.6; }

.ch-auth-benefits { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ch-auth-benefits li {
    display: flex; align-items: flex-start; gap: .65rem;
    font-size: .88rem; color: var(--ch-dark); padding: .4rem 0;
}
.ch-auth-benefits i { flex: none; margin-top: .18rem; width: 18px; color: var(--ch-accent); }

.ch-auth-aside-divider { position: relative; text-align: center; margin: 1.5rem 0 1.2rem; }
.ch-auth-aside-divider::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px;
    background: var(--ch-gray-light);
}
.ch-auth-aside-divider span {
    position: relative; padding: 0 .8rem; background: var(--ch-light);
    font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--ch-gray);
}

/* guest panel on /my-orders */
.ch-guest-actions {
    display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap;
}
.ch-guest-actions .ch-btn-primary,
.ch-guest-actions .ch-btn-outline { min-width: 190px; }

/* sign-in prompt at the top of checkout */
.ch-checkout-signin {
    display: flex; align-items: flex-start; gap: .6rem;
    margin-bottom: 1.3rem; padding: .75rem 1rem; border-radius: var(--ch-radius-sm);
    background: var(--ch-light); border: 1px solid var(--ch-gray-light);
    font-size: .86rem; color: var(--ch-gray);
}
.ch-checkout-signin i { margin-top: .15rem; flex: none; color: var(--ch-accent); }
.ch-checkout-signin a { color: var(--ch-accent-dark); font-weight: 600; }
.ch-checkout-signin a:hover { text-decoration: underline; }
.ch-checkout-signin.is-ok {
    background: #ecfdf5; border-color: #a7f3d0; color: #065f46;
}
.ch-checkout-signin.is-ok i { color: var(--ch-success); }

/* "your account is ready" on the confirmation page */
.ch-order-notice.is-account {
    display: flex; align-items: flex-start; gap: .4rem;
    background: var(--ch-light); border-color: var(--ch-accent-light); color: var(--ch-dark);
}
.ch-order-notice.is-account i { margin-top: .2rem; color: var(--ch-accent-dark); }
.ch-order-notice.is-account a { color: var(--ch-accent-dark); font-weight: 600; }
.ch-order-notice.is-account a:hover { text-decoration: underline; }

@media (max-width: 575.98px) {
    .ch-auth-card, .ch-auth-aside { padding: 1.5rem 1.15rem; }
    .ch-auth-title  { font-size: 1.45rem; }
    .ch-guest-actions .ch-btn-primary,
    .ch-guest-actions .ch-btn-outline { width: 100%; min-width: 0; }
}
