/* RAMYA SILKU — on-page checkout + order status (assets/js/checkout.js) */
.co { position: fixed; inset: 0; z-index: 170; display: flex; justify-content: flex-end; }
.co[hidden] { display: none; }
.co-backdrop { position: absolute; inset: 0; background: rgba(43, 15, 25, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.co.open .co-backdrop { opacity: 1; }
.co-panel {
  position: relative; width: min(100%, 560px); height: 100%; background: var(--cream);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease);
  box-shadow: -24px 0 60px -24px rgba(0,0,0,.45);
}
.co.open .co-panel { transform: none; }
@media (max-width: 600px) { .co-panel { width: 100%; transform: translateY(100%); } }
.co-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.co-head h2 { font-size: 24px; margin: 0; flex: 1; }
.co-back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--plum); }
.co-back svg { width: 20px; height: 20px; }
.co-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #2f6b20; background: #e9f3e2; padding: 5px 10px; border-radius: 999px; }
.co-lock svg { width: 14px; height: 14px; }
.co-body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; margin-bottom: 14px; }
.co-card h3 { font-family: var(--f-body); font-size: 16px; font-weight: 600; letter-spacing: 0; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.co-n { width: 26px; height: 26px; border-radius: 50%; background: var(--plum); color: #fff; font-size: 13px; display: grid; place-items: center; }
.co-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.co-field label { font-size: 13px; font-weight: 500; color: var(--plum-deep); }
.co-field input, .co-field select, .co-phone input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--cream); font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.co-field select {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%234a1d2c' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.co-field input:focus, .co-field select:focus, .co-phone input:focus { outline: none; border-color: var(--rose); background-color: #fff; box-shadow: 0 0 0 4px rgba(200,16,46,.1); }
.co-field.invalid input, .co-field.invalid select { border-color: var(--rose); background-color: #fff5f6; }
.co-err { font-size: 12.5px; color: var(--rose-dark); display: none; }
.co-field.invalid .co-err { display: block; }
.co-hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.co-good { color: #2f6b20 !important; }
.co-bad { color: var(--rose-dark) !important; }
.co-row2 { display: grid; gap: 0 12px; }
@media (min-width: 480px) { .co-row2 { grid-template-columns: 1fr 1fr; } }
.co-phone { display: flex; align-items: stretch; gap: 8px; }
.co-phone input { flex: 1; min-width: 0; letter-spacing: .04em; }
.co-cc { display: grid; place-items: center; padding: 0 12px; border-radius: 12px; background: var(--peach-soft); color: var(--plum); font-weight: 600; font-size: 15px; }
.co-field.verified .co-phone input { background: #f2f8ee; border-color: #9cc78a; }
.co-mini { flex: none; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--plum); background: #fff; color: var(--plum); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.co-mini:hover { background: var(--plum); color: #fff; }
.co-mini:disabled { opacity: .6; cursor: wait; }
.co-mini-solid { background: var(--plum); color: #fff; }
.co-otp input { letter-spacing: .5em; text-align: center; font-weight: 600; }
.co-link { background: none; border: 0; padding: 0; color: var(--rose); font-weight: 600; text-decoration: underline; font-size: 12.5px; }
.co-link:disabled { color: var(--muted); text-decoration: none; cursor: default; }

.co-pay { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.co-pay input { position: absolute; opacity: 0; pointer-events: none; }
.co-pay.on { border-color: var(--rose); background: #fff8f9; }
.co-pay.disabled { opacity: .55; cursor: not-allowed; }
.co-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; position: relative; }
.co-pay.on .co-radio { border-color: var(--rose); }
.co-pay.on .co-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--rose); }
.co-pay input:focus-visible ~ .co-radio { outline: 3px solid var(--gold); outline-offset: 2px; }
.co-pay-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.co-pay-txt b { font-weight: 600; color: var(--plum-deep); }
.co-pay-txt small { color: var(--muted); font-size: 12.5px; }
.co-pay-tag { font-size: 12px; font-weight: 600; background: #e9f3e2; color: #2f6b20; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.co-pay-tag:empty { display: none; }
.co-coupon { margin-top: 6px; font-size: 14px; }
.co-coupon summary { cursor: pointer; color: var(--plum); font-weight: 500; padding: 6px 0; }
.co-coupon .co-phone { margin: 8px 0 4px; }
.co-coupon input { text-transform: uppercase; letter-spacing: .06em; }

.co-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; }
.co-thumb { position: relative; width: 48px; height: 48px; border-radius: 10px; background: var(--peach-soft); }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.co-thumb em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--plum); color: #fff; font-style: normal; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.co-line-name { font-weight: 500; color: var(--plum-deep); }
.co-tr { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 5px 0; }
.co-tr.co-grand { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: 600; color: var(--plum-deep); }
.co-free { color: #2f6b20; }
.co-legal { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 8px; }
.co-legal a { text-decoration: underline; }
.co-alert { padding: 12px 14px; border-radius: 12px; background: #fff0f2; color: var(--rose-dark); font-size: 14px; margin-bottom: 14px; border: 1px solid rgba(200,16,46,.2); }
.co-alert.ok { background: #e9f3e2; color: #2f6b20; border-color: #b9dcab; }

.co-foot { display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(43,15,25,.4); }
.co-foot[hidden] { display: none; }
.co-foot-total { line-height: 1.15; }
.co-foot-total small { display: block; font-size: 12px; color: var(--muted); }
.co-foot-total b { font-family: var(--f-display); font-size: 26px; color: var(--plum-deep); }
.co-foot .btn { flex: 1; white-space: normal; }
.co-foot .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.co-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }

.co-done { text-align: center; padding: 30px 6px; }
.co-done h1, .co-done h3 { font-size: clamp(28px, 5vw, 38px); margin: 16px 0 8px; }
.co-done-ic { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: #e9f3e2; color: #2f6b20; animation: pop .6s var(--ease); }
.co-done-ic svg { width: 38px; height: 38px; }
.st-pending .co-done-ic { background: #fff8ec; color: var(--gold); }
.st-failed .co-done-ic, .st-error .co-done-ic { background: #fff0f2; color: var(--rose); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } }
.co-done-box { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 18px 0; }
.co-done .btn { margin-top: 8px; }
.co-done a:not(.btn) { color: var(--rose); text-decoration: underline; }
.co-status-card { background: #fff; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 10px 18px 24px; }
.co-upsell { margin-top: 10px; padding: 12px; border-radius: 12px; background: #fff8ec; border: 1px dashed rgba(195,154,69,.6); font-size: 13.5px; color: var(--plum); }
