/* ══════════════════════════════════════════════════════════════
   Bag & checkout additions — gift extras and the online payment
   panel. Mobile first; loaded after shop-flow.css.
   ══════════════════════════════════════════════════════════════ */

/* ── gift extras: two compact switches ── */
.egifts{display:grid;gap:8px;margin:14px 0 4px}
.egifts .egift{margin:0;padding:11px 13px;gap:12px}
.egifts .egift:has(input:checked){background:#F5FAF0;box-shadow:inset 0 0 0 1.5px var(--sage)}
.egifts .egift-text b{font-size:14.5px}
.egifts .egift-text b .ei{color:var(--clay)}
.egifts .eco-giftnote{margin:4px 0 0}

/* ── payment choice tag ── */
.eco .epm-tag.is-save{background:var(--clay);color:#fff;letter-spacing:.02em}

/* ── online payment panel ── */
.eco #payment div.payment_box.payment_method_bacs{padding:0!important;background:none!important}
.epay-online{
  display:grid;gap:12px;padding:14px;border-radius:18px;
  background:linear-gradient(160deg,#F5FAF0 0%,#FFF8EF 100%);box-shadow:inset 0 0 0 1.5px rgba(110,152,87,.3);
}
.epay-save{
  display:flex;align-items:flex-start;gap:8px;padding:9px 12px;border-radius:12px;
  background:#FFF1D6;color:#8A5A12;font-size:13px;font-weight:600;line-height:1.4;
}
.epay-save .ei{flex:none;width:16px;height:16px;margin-top:1px}
.epay-accounts{display:grid;gap:8px}
.epay-acc{
  display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;
  padding:10px 10px 10px 12px;border-radius:14px;background:#fff;box-shadow:0 10px 20px -16px rgba(74,58,36,.7);
}
.epay-acc-logo{
  display:grid;place-items:center;width:44px;height:44px;border-radius:12px;
  font-family:var(--display);font-weight:800;font-size:14px;letter-spacing:.04em;color:#fff;
}
.epay-acc.is-easypaisa .epay-acc-logo{background:linear-gradient(135deg,#3DBB63,#1E8E47)}
.epay-acc.is-meezan .epay-acc-logo{background:linear-gradient(135deg,#8A3F92,#5E2466)}
.epay-acc-text{display:grid;min-width:0;line-height:1.2}
.epay-acc-text small{font-size:11.5px;font-weight:600;color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em}
.epay-acc-text b{margin:2px 0 1px;font-family:var(--mono);font-size:15.5px;font-weight:500;color:var(--ink);white-space:nowrap}
.epay-acc-text em{font-style:normal;font-size:12.5px;color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.epay-copy{
  position:relative;display:inline-flex;align-items:center;gap:5px;padding:8px 11px;border-radius:99px;
  background:var(--paper-2);color:var(--ink);font-size:12.5px;font-weight:700;
  transition:background .25s var(--ease),color .25s var(--ease);
}
.epay-copy .ei{width:15px;height:15px}
.epay-copy.is-copied{background:var(--sage-deep);color:#fff}
.epay-copy.is-copied span{font-size:0}
.epay-copy.is-copied span::after{content:"Copied";font-size:12.5px}
.epay-steps{list-style:none;display:grid;gap:8px;margin:0;padding:2px 2px 0;counter-reset:none}
.epay-steps li{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;line-height:1.45;color:var(--ink-2)}
.epay-steps b{
  flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;
  background:var(--sage-deep);color:#fff;font-family:var(--display);font-size:12.5px;
}
.epay-steps a{color:var(--sage-deep);font-weight:700;text-decoration:underline;text-underline-offset:3px}

@media (min-width:760px){
  .egifts.is-cart{grid-template-columns:1fr}
  .epay-online{padding:16px 18px}
}

/* the copy button rides the card's top corner so the number and the
   name always show in full */
.epay-acc{position:relative;grid-template-columns:44px minmax(0,1fr);align-items:start;padding:12px 12px 12px 12px}
.epay-acc-logo{margin-top:2px}
.epay-acc-text small{padding-right:74px}
.epay-acc-text b{font-size:15px;white-space:normal;word-break:break-word}
.epay-acc-text em{white-space:normal;overflow:visible}
.epay-copy{position:absolute;top:8px;right:8px;padding:5px 10px;font-size:11.5px;gap:4px}
.epay-copy .ei{width:13px;height:13px}
.epay-copy.is-copied span::after{font-size:11.5px}

/* Province picker: the box padding plus the text's own 52px line pushed
   "Select an option…" to the bottom edge — let the text centre itself. */
.eco .select2-container .select2-selection--single{
  display:flex!important;align-items:center;height:52px!important;padding:0!important;
}
.eco .select2-container .select2-selection--single .select2-selection__rendered{
  flex:1;line-height:50px!important;height:50px;padding:0 40px 0 16px!important;
}
.eco .select2-container .select2-selection--single .select2-selection__arrow{top:0!important;height:52px!important;right:10px!important}
.select2-container--open .select2-dropdown{border-radius:14px;overflow:hidden;box-shadow:0 16px 30px -14px rgba(64,51,42,.45)}

/* account card, final layout: the bank name shares the top line with the
   copy button; the number and the name sit on their own full-width lines
   beneath it, so nothing can ever hide behind the button */
.epay-acc-text small{display:block;height:28px;line-height:28px;padding-right:84px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.epay-acc-text b{margin:4px 0 2px;font-size:16px;letter-spacing:.02em;white-space:nowrap;word-break:normal}
.epay-acc-logo{margin-top:0}

/* the city field suggests cities; it is not a dropdown, so no arrow */
.eco input[list]::-webkit-calendar-picker-indicator{display:none!important;opacity:0}
.eco input[list]{background-image:none!important}

/* ── bag toast: a full-width snackbar, not a squeezed pill ── */
.etoast{
  width:min(440px,calc(100vw - 24px));max-width:none;display:grid;grid-template-columns:32px minmax(0,1fr) auto;
  align-items:center;gap:12px;padding:10px 10px 10px 12px;border-radius:18px;overflow:hidden;
  background:var(--ink);box-shadow:0 20px 40px -18px rgba(0,0,0,.6);
}
.etoast[hidden]{display:none}
.etoast-icon{width:32px;height:32px;background:var(--sage)}
.etoast-text{display:grid;min-width:0;padding:0;line-height:1.3;font-size:14px}
.etoast-text small{font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:rgba(255,248,239,.6)}
.etoast-text b{font-family:var(--display);font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.etoast-undo{
  display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:12px;
  background:var(--butter);color:var(--ink);font-family:var(--display);font-weight:800;font-size:14px;
}
.etoast-undo:hover{background:#FFD56E}
.etoast-undo svg{width:16px;height:16px}
.etoast-undo[hidden]{display:none}
/* the undo window, shown as a thin bar running out */
.etoast.has-undo::after{
  content:"";position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--butter);opacity:.7;
  transform-origin:left;animation:etoastTime 6s linear forwards;
}
.etoast{position:fixed}
@keyframes etoastTime{from{transform:scaleX(1)}to{transform:scaleX(0)}}

/* brand badges: the bank's name in its own colours */
.epay-acc{grid-template-columns:minmax(0,1fr);gap:8px}
.epay-acc-logo{
  width:auto;height:30px;justify-self:start;padding:0 12px;border-radius:9px;margin:0;
  font-family:var(--body);font-weight:800;font-size:15px;letter-spacing:-.01em;text-transform:none;
}
.epay-acc.is-easypaisa .epay-acc-logo{background:#fff;color:#1FA64A;box-shadow:inset 0 0 0 1.5px #1FA64A}
.epay-acc.is-meezan .epay-acc-logo{background:#6B2C74;color:#fff}
.epay-acc-text small{display:none}
.epay-acc-text b{margin:0 0 2px;font-size:17px}
