/* OneDigitalite slide-in cart drawer (views/frontend/default-new/cart_drawer*.php) */
.odc-overlay { position: fixed; inset: 0; z-index: 1080; background: rgba(14, 11, 51, .45); opacity: 0; transition: opacity .25s ease; backdrop-filter: blur(2px); }
.odc-overlay.is-open { opacity: 1; }
.odc {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1081; width: min(440px, 100vw);
  background: #fff; box-shadow: -24px 0 60px -20px rgba(14, 11, 51, .35);
  transform: translateX(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); visibility: hidden; outline: none;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--od-text, #3D3B5C);
}
.odc.is-open { transform: none; visibility: visible; }
html.odc-locked, html.odc-locked body { overflow: hidden; }
.odc-body { height: 100%; display: flex; flex-direction: column; }

.odc-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #E7E6F2; }
.odc-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: #0E0B33; }
.odc-head h2 span { color: #8A88A6; font-weight: 600; }
.odc-x { width: 38px; height: 38px; border-radius: 10px; border: 0; background: #F6F5FC; color: #0E0B33; display: grid; place-items: center; cursor: pointer; }
.odc-x:hover { background: #E9E4FF; color: #5B3CF5; }

.odc-scroll { flex: 1; overflow-y: auto; padding: 8px 22px 18px; scrollbar-width: thin; scrollbar-color: #D6CEFF transparent; }
.odc-items { list-style: none; margin: 0; padding: 0; }
.odc-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #F0EFF7; animation: odc-in .3s ease; }
@keyframes odc-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.odc-thumb { flex: none; width: 104px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #F6F5FC; display: block; }
.odc-thumb.is-sm { width: 76px; border-radius: 8px; }
.odc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.odc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.odc-title { color: #0E0B33; font-weight: 700; font-size: 14px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.odc-title:hover { color: #5B3CF5; }
.odc-by { font-size: 12.5px; color: #8A88A6; }
.odc-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.odc-price strong { color: #0E0B33; font-size: 15px; font-weight: 800; }
.odc-price del { color: #A3A1BC; font-size: 12.5px; }
.odc-remove { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: #A3A1BC; display: grid; place-items: center; cursor: pointer; }
.odc-remove:hover { background: #FFF0F3; color: #E11D48; }

.odc-suggest { margin-top: 20px; padding: 16px; border-radius: 14px; background: #F8F7FE; border: 1px solid #EEEBFB; }
.odc-suggest h3 { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #5E5C7A; margin: 0 0 6px; }
.odc-sitem { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.odc-sitem + .odc-sitem { border-top: 1px solid #EEEBFB; }
.odc-sitem .odc-title { font-size: 13px; }
.odc-sitem .odc-price strong { font-size: 13.5px; }
.odc-add { flex: none; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid #D6CEFF; background: #fff; color: #5B3CF5; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.odc-add:hover { background: #5B3CF5; border-color: #5B3CF5; color: #fff; }

.odc-foot { border-top: 1px solid #E7E6F2; padding: 16px 22px 20px; background: #fff; box-shadow: 0 -10px 24px -18px rgba(14, 11, 51, .25); }
.odc-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.odc-saved { color: #0B6B3A; font-weight: 700; margin-bottom: 6px; }
.odc-total span { font-weight: 700; color: #0E0B33; }
.odc-total strong { font-size: 22px; font-weight: 800; color: #0E0B33; }
.odc-note { margin: 4px 0 14px; font-size: 12.5px; color: #8A88A6; }
.odc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 12px; font-weight: 800; font-size: 15px; text-decoration: none; transition: background .15s, box-shadow .15s; }
.odc-btn-primary { background: #5B3CF5; color: #fff !important; box-shadow: 0 10px 22px -10px rgba(91, 60, 245, .8); }
.odc-btn-primary:hover { background: #4A2FE0; }
.odc-btn-ghost { margin-top: 8px; min-height: 44px; color: #5B3CF5 !important; font-weight: 700; font-size: 14px; background: #F1EEFF; }
.odc-btn-ghost:hover { background: #E9E4FF; }
.odc-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: #8A88A6; text-align: center; }

.odc-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.odc-empty-ico { width: 72px; height: 72px; border-radius: 20px; background: #F1EEFF; color: #5B3CF5; display: grid; place-items: center; margin-bottom: 16px; }
.odc-empty h3 { font-size: 18px; font-weight: 800; color: #0E0B33; margin: 0 0 6px; }
.odc-empty p { color: #8A88A6; font-size: 14px; margin: 0 0 20px; }
.odc-empty .odc-btn { width: auto; padding: 0 26px; }

/* header cart button + empty badge */
.od-cart-btn { border: 0; background: transparent; padding: 0; position: relative; cursor: pointer; }
.menubar .menu_number.is-empty { display: none; }

@media (max-width: 480px) {
  .odc-head, .odc-foot { padding-left: 16px; padding-right: 16px; }
  .odc-scroll { padding-left: 16px; padding-right: 16px; }
  .odc-thumb { width: 88px; }
}
@media (prefers-reduced-motion: reduce) { .odc, .odc-overlay, .odc-item { transition: none; animation: none; } }

/* Inline checkout account step (views/frontend/default-new/checkout_auth.php) */
.oda-overlay { position: fixed; inset: 0; z-index: 1090; background: rgba(14, 11, 51, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.oda-overlay.is-open { opacity: 1; }
.oda {
  position: fixed; z-index: 1091; left: 50%; top: 50%; width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow-y: auto;
  transform: translate(-50%, -46%) scale(.98); opacity: 0; visibility: hidden; transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
  background: #fff; border-radius: 22px; padding: 26px 26px 20px; box-shadow: 0 40px 80px -24px rgba(14, 11, 51, .45); outline: none;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #3D3B5C;
}
.oda.is-open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
.oda-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: #F6F5FC; color: #0E0B33; display: grid; place-items: center; cursor: pointer; }
.oda-x:hover { background: #E9E4FF; color: #5B3CF5; }
.oda-steps { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 12px; font-weight: 700; color: #8A88A6; }
.oda-steps li { display: flex; align-items: center; gap: 6px; }
.oda-steps li + li::before { content: ""; width: 18px; height: 2px; background: #E7E6F2; border-radius: 2px; }
.oda-steps span { width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; border: 1.5px solid #E7E6F2; font-size: 11px; }
.oda-steps .is-done span { background: #E3F6EC; border-color: #BDE8CF; color: #0B6B3A; }
.oda-steps .is-current { color: #0E0B33; }
.oda-steps .is-current span { background: #5B3CF5; border-color: #5B3CF5; color: #fff; }
.oda-context h2 { font-size: 23px; font-weight: 800; color: #0E0B33; margin: 0 0 6px; padding-right: 40px; }
.oda-context p { font-size: 14px; color: #6B6987; margin: 0 0 18px; line-height: 1.5; }
.oda-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #F6F5FC; margin-bottom: 16px; }
.oda-tabs button { height: 40px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: #6B6987; cursor: pointer; }
.oda-tabs button[aria-selected="true"] { background: #fff; color: #0E0B33; box-shadow: 0 2px 8px rgba(14, 11, 51, .1); }
.oda-alert { margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; background: #FFF0F3; color: #B4183A; font-size: 13px; font-weight: 600; }
.oda-alert.is-ok { background: #E3F6EC; color: #0B6B3A; }
.oda-form { display: flex; flex-direction: column; gap: 12px; }
.oda-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.oda-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.oda-field > span:first-child { font-size: 13px; font-weight: 700; color: #0E0B33; }
.oda-label-row { display: flex; justify-content: space-between; }
.oda-label-row a { font-weight: 600; color: #5B3CF5; text-decoration: none; }
.oda-field input { width: 100%; height: 46px; border: 1px solid #E1DFEE; border-radius: 11px; padding: 0 14px; font: inherit; font-size: 15px; color: #0E0B33; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.oda-field input:focus { border-color: #5B3CF5; box-shadow: 0 0 0 4px rgba(91, 60, 245, .12); }
.oda-pass { position: relative; display: block; }
.oda-pass input { padding-right: 46px; }
.oda-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: #8A88A6; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.oda-eye:hover { color: #5B3CF5; background: #F6F5FC; }
.oda-code { letter-spacing: .5em; font-size: 20px !important; font-weight: 800; text-align: center; }
.oda-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 4px; border: 0; border-radius: 12px; background: #5B3CF5; color: #fff !important; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(91, 60, 245, .85); }
.oda-btn:hover { background: #4A2FE0; }
.oda-btn.is-busy span { visibility: hidden; }
.oda-btn.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 999px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: oda-spin .7s linear infinite; }
@keyframes oda-spin { to { transform: rotate(360deg); } }
.oda-btn-ghost { background: #F1EEFF; color: #5B3CF5 !important; box-shadow: none; }
.oda-btn-ghost:hover { background: #E9E4FF; }
.oda-fallback { display: flex; flex-direction: column; gap: 10px; }
.oda-hint { margin: 0; font-size: 12.5px; color: #8A88A6; text-align: center; }
.oda-hint a { color: #5B3CF5; font-weight: 700; }
.oda-verify-msg { margin: 0; font-size: 14px; }
.oda-verify-msg b { color: #0E0B33; }
.oda-legal { margin: 16px 0 0; font-size: 12px; color: #8A88A6; text-align: center; }
.oda-legal a { color: #6B6987; text-decoration: underline; }
@media (max-width: 560px) {
  .oda { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; transform: translateY(100%); padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
  .oda.is-open { transform: none; }
  .oda-row { grid-template-columns: 1fr; }
}

/* Google sign-in inside the checkout account step */
.oda-google { margin: 4px 0 2px; }
.oda-or { display: flex; align-items: center; gap: 12px; color: #8A88A6; font-size: 12.5px; margin: 12px 0 10px; }
.oda-or::before, .oda-or::after { content: ""; flex: 1; height: 1px; background: #E7E6F2; }

/* Refer & Earn wallet toggle in the cart */
.ock-wallet { margin: 12px 0 0; }
.ock-wallet-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #E4DEFF; border-radius: 14px; background: #FAF9FF; text-align: left; }
.ock-wallet-btn b { display: block; color: #0E0B33; font-size: 14px; }
.ock-wallet-btn small { color: #6B6987; font-size: 12.5px; }
.ock-wallet-sw { flex: none; width: 38px; height: 22px; border-radius: 999px; background: #D9D6E8; position: relative; transition: background .2s; }
.ock-wallet-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ock-wallet-btn.is-on { border-color: #5B3CF5; }
.ock-wallet-btn.is-on .ock-wallet-sw { background: #5B3CF5; }
.ock-wallet-btn.is-on .ock-wallet-sw::after { transform: translateX(16px); }
