#yc-fastcart-wrapper { direction: rtl; }
.yc-fastcart { position: relative; }
.yc-fastcart-toggle { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 0; color: inherit; }
.yc-fastcart-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; }
.yc-fastcart-count { position: absolute; top: -7px; right: -9px; background: #ef3340; color: #fff; border-radius: 999px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 11px; font-weight: 700; }
.yc-fastcart-info { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.yc-fastcart-title { font-weight: 700; font-size: 13px; }
.yc-fastcart-total { font-size: 12px; color: #6b7280; white-space: nowrap; }

.yc-fastcart-drawer { position: fixed; inset: 0; z-index: 99999; pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.yc-fastcart-drawer.is-open, body.yc-fastcart-open .yc-fastcart-drawer { pointer-events: auto; opacity: 1; }
.yc-fastcart-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.42); opacity: 0; transition: opacity .18s ease; }
.yc-fastcart-drawer.is-open .yc-fastcart-backdrop, body.yc-fastcart-open .yc-fastcart-backdrop { opacity: 1; }
.yc-fastcart-panel { position: absolute; top: 0; left: 0; width: min(440px, 92vw); height: 100%; background: #fff; box-shadow: 0 20px 60px rgba(15,23,42,.22); transform: translateX(-105%); transition: transform .22s ease; display: flex; flex-direction: column; border-radius: 0 18px 18px 0; overflow: hidden; }
.yc-fastcart-drawer.is-open .yc-fastcart-panel, body.yc-fastcart-open .yc-fastcart-panel { transform: translateX(0); }
.yc-fastcart-header { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #eef2f7; }
.yc-fastcart-heading { margin: 0; font-size: 20px; font-weight: 800; color: #111827; }
.yc-fastcart-close { border: 0; background: transparent; font-size: 28px; line-height: 1; color: #64748b; cursor: pointer; padding: 4px; }
.yc-fastcart-content { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.yc-fastcart-lines { padding: 14px 16px; overflow-y: auto; flex: 1 1 auto; }
.yc-fastcart-line { position: relative; display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.yc-fastcart-line.is-loading { opacity: .55; pointer-events: none; }
.yc-fastcart-line-img { width: 74px; height: 74px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 12px; overflow: hidden; }
.yc-fastcart-line-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.yc-fastcart-line-title { display: block; color: #1f2937; font-size: 13px; line-height: 1.8; font-weight: 700; text-decoration: none; }
.yc-fastcart-line-attr { color: #64748b; font-size: 12px; margin-top: 2px; }
.yc-fastcart-line-price { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: #111827; font-size: 13px; font-weight: 700; }
.yc-fastcart-multiply { color: #94a3b8; }
.yc-fastcart-line-actions { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.yc-fastcart-remove { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #f1f5f9; color: #64748b; cursor: pointer; }
.yc-fastcart-qty { width: 56px; height: 34px; border: 1px solid #e2e8f0; border-radius: 10px; text-align: center; direction: ltr; font-weight: 700; color: #111827; }
.yc-fastcart-qty::-webkit-outer-spin-button, .yc-fastcart-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.yc-fastcart-qty { -moz-appearance: textfield; }
.yc-fastcart-line-total { color: #111827; font-size: 13px; font-weight: 800; white-space: nowrap; align-self: end; padding-bottom: 7px; }
.yc-fastcart-footer { padding: 12px 16px 14px; border-top: 1px solid #eef2f7; box-shadow: 0 -8px 22px rgba(15,23,42,.04); background: #fff; }
.yc-fastcart-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #475569; font-size: 14px; }
.yc-fastcart-summary-total { color: #111827; font-size: 16px; font-weight: 800; margin-bottom: 9px; }
.yc-fastcart-digify-slot{width:100%;margin:0 0 8px;direction:rtl;}
.yc-fastcart-digify-slot:empty,.yc-fastcart-digify-slot.yc-fastcart-digify-slot-hidden{display:none!important;}
.yc-fastcart-checkout, .yc-fastcart-viewcart, .yc-fastcart-continue { display: flex; align-items: center; justify-content: center; width: 100%; border-radius: 13px; text-decoration: none; font-weight: 800; min-height: 42px; margin-top: 8px; }
.yc-fastcart-checkout { background: #ef3340; color: #fff !important; }
.yc-fastcart-viewcart, .yc-fastcart-continue { background: #f8fafc; color: #475569 !important; }
.ycfc-empty-count-wrapper { display: none !important; }
.cart-products-count:empty { display: none !important; }
@supports selector(:has(*)) { .cart-products-count:has(.cart-products-count-btn.d-none), .cart-products-count:has(#mobile-cart-products-count.d-none), .cart-products-count:has(.yc-fastcart-mobile-count.d-none) { display: none !important; } }
.yc-fastcart-empty { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 32px; text-align: center; color: #64748b; min-height: 260px; }
.yc-fastcart-empty strong { color: #111827; font-size: 18px; }
.yc-fastcart-empty-icon { width: 64px; height: 64px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: #94a3b8; font-size: 28px; }

.yc-fastcheckout-cart-page { direction: rtl; padding: 28px 0; }
.ycfc-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ycfc-page-head h1 { margin: 0; font-size: 24px; font-weight: 900; }
.ycfc-page-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.ycfc-page-lines { background: #fff; border: 1px solid #eef2f7; border-radius: 18px; padding: 16px; }
.ycfc-page-summary { position: sticky; top: 90px; background: #fff; border: 1px solid #eef2f7; border-radius: 18px; padding: 18px; box-shadow: 0 10px 30px rgba(15,23,42,.04); }

@media (max-width: 767px) {
  .yc-fastcart-info { display: none; }
  .yc-fastcart-panel { width: 100vw; border-radius: 18px 18px 0 0; top: auto; bottom: 0; height: min(78vh, 680px); transform: translateY(105%); }
  .yc-fastcart-drawer.is-open .yc-fastcart-panel, body.yc-fastcart-open .yc-fastcart-panel { transform: translateY(0); }
  .yc-fastcart-header { height: 56px; padding: 0 16px; }
  .yc-fastcart-heading { font-size: 18px; }
  .yc-fastcart-lines { padding: 10px 12px; }
  .yc-fastcart-footer { padding: 10px 12px 12px; }
  .yc-fastcart-summary-row { margin-bottom: 6px; font-size: 13px; }
  .yc-fastcart-summary-total { font-size: 15px; margin-bottom: 8px; }
  .yc-fastcart-checkout, .yc-fastcart-viewcart { min-height: 40px; margin-top: 7px; border-radius: 12px; font-size: 13px; }
  .yc-fastcart-digify-slot { margin-bottom: 7px; }
  .yc-fastcart-line { grid-template-columns: 66px 1fr; gap: 10px; }
  .yc-fastcart-line-total { grid-column: 2 / 3; padding: 0; justify-self: end; }
  .yc-fastcart-line-img { width: 66px; height: 66px; }
  .yc-fastcart-line-title { font-size: 12px; }
  .ycfc-page-grid { grid-template-columns: 1fr; }
  .ycfc-page-summary { position: static; }
}

/* Yadacar fast cart page v1.0.3 */
.ycfc-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.yc-fastcheckout-cart-page { background: #f8fafc; min-height: 70vh; padding: 28px 0 110px; }
.ycfc-cart-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ycfc-back-home { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; color: #64748b !important; background: #fff; border: 1px solid #e5e7eb; text-decoration: none !important; font-weight: 700; }
.ycfc-page-head { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.ycfc-page-head h1 { margin: 0; font-size: 25px; font-weight: 900; color: #111827; }
.ycfc-page-head span { color: #64748b; font-size: 14px; font-weight: 700; }
.ycfc-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.ycfc-page-lines { background: transparent; border: 0; border-radius: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ycfc-lines-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: #fff; border: 1px solid #e8edf3; border-radius: 18px; box-shadow: 0 8px 26px rgba(15, 23, 42, .035); }
.ycfc-lines-head strong { font-size: 16px; font-weight: 900; color: #111827; }
.ycfc-lines-head span { color: #64748b; font-size: 13px; font-weight: 700; }
.ycfc-cart-line { position: relative; display: grid; grid-template-columns: 40px 110px minmax(0, 1fr) 190px 130px; gap: 16px; align-items: center; padding: 18px; background: #fff; border: 1px solid #e8edf3; border-radius: 20px; box-shadow: 0 8px 26px rgba(15, 23, 42, .035); transition: opacity .18s ease, transform .18s ease; }
.ycfc-cart-line.is-loading { opacity: .55; pointer-events: none; }
.ycfc-line-remove { width: 38px; height: 38px; border: 0; border-radius: 13px; background: #f1f5f9; color: #64748b; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ycfc-line-remove:hover { background: #fee2e2; color: #ef3340; }
.ycfc-line-image { width: 110px; height: 110px; border-radius: 18px; background: #f8fafc; border: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ycfc-line-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ycfc-line-info { min-width: 0; }
.ycfc-line-title { display: block; color: #111827 !important; font-size: 15px; line-height: 1.9; font-weight: 900; text-decoration: none !important; }
.ycfc-line-attr { margin-top: 4px; color: #64748b; font-size: 13px; }
.ycfc-line-badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ycfc-line-badges span { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #f8fafc; border: 1px solid #e8edf3; color: #64748b; font-size: 12px; font-weight: 700; }
.ycfc-line-badges .ycfc-line-available { color: #059669; background: #ecfdf5; border-color: #bbf7d0; }
.ycfc-line-pricebox { text-align: left; direction: rtl; justify-self: stretch; }
.ycfc-price-discount { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-bottom: 6px; }
.ycfc-discount-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 999px; background: #ef3340; color: #fff; font-size: 12px; font-weight: 900; }
.ycfc-price-discount del { color: #94a3b8; font-size: 13px; font-weight: 700; }
.ycfc-price-current { color: #111827; font-size: 18px; font-weight: 950; }
.ycfc-line-total-label { margin-top: 8px; color: #64748b; font-size: 12px; }
.ycfc-line-total-label strong { color: #111827; font-size: 13px; }
.ycfc-line-qty { display: inline-flex; align-items: center; justify-content: center; gap: 0; border: 1px solid #e8edf3; border-radius: 16px; overflow: hidden; background: #fff; justify-self: end; height: 44px; }
.ycfc-qty-btn { width: 42px; height: 44px; border: 0; background: #fff; color: #1d4ed8; font-size: 20px; font-weight: 900; cursor: pointer; }
.ycfc-qty-btn:hover { background: #f8fafc; }
.ycfc-qty-input { width: 50px; height: 44px; border: 0 !important; border-left: 1px solid #eef2f7 !important; border-right: 1px solid #eef2f7 !important; border-radius: 0 !important; font-size: 15px; background: #fff; }
.ycfc-page-summary { position: sticky; top: 92px; background: transparent; border: 0; box-shadow: none; padding: 0; }
.ycfc-summary-card { background: #fff; border: 1px solid #e8edf3; border-radius: 22px; padding: 20px; box-shadow: 0 10px 34px rgba(15,23,42,.045); }
.ycfc-summary-card h2 { margin: 0 0 16px; color: #111827; font-size: 18px; font-weight: 950; }
.ycfc-summary-row { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #64748b; font-size: 14px; font-weight: 700; }
.ycfc-summary-row strong { color: #111827; font-weight: 900; white-space: nowrap; }
.ycfc-summary-discount, .ycfc-summary-discount strong { color: #ef3340; }
.ycfc-summary-line { height: 1px; background: #eef2f7; margin: 14px 0; }
.ycfc-summary-total { color: #111827; font-size: 16px; }
.ycfc-summary-total strong { font-size: 19px; }
.ycfc-primary-action, .ycfc-secondary-action { display: flex; align-items: center; justify-content: center; min-height: 50px; width: 100%; border-radius: 15px; text-decoration: none !important; font-weight: 900; margin-top: 12px; }
.ycfc-primary-action { background: #183a8f; color: #fff !important; box-shadow: 0 12px 24px rgba(24,58,143,.16); }
.ycfc-secondary-action { background: #f8fafc; color: #64748b !important; border: 1px solid #e8edf3; }
.ycfc-empty-page { background: #fff; border: 1px solid #e8edf3; border-radius: 22px; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 36px; box-shadow: 0 10px 34px rgba(15,23,42,.045); }
.ycfc-empty-icon { width: 76px; height: 76px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: #94a3b8; font-size: 32px; }
.ycfc-empty-page h2 { margin: 0; font-size: 22px; font-weight: 950; color: #111827; }
.ycfc-empty-page p { margin: 0; color: #64748b; }
.ycfc-empty-page a { margin-top: 10px; min-height: 46px; padding: 0 24px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #183a8f; color: #fff !important; text-decoration: none !important; font-weight: 900; }
.ycfc-mobile-paybar { display: none; }

@media (max-width: 991px) {
  .ycfc-page-grid { grid-template-columns: 1fr; }
  .ycfc-page-summary { position: static; }
}
@media (max-width: 767px) {
  .yc-fastcheckout-cart-page { padding: 14px 0 126px; }
  .ycfc-container { padding: 0 12px; }
  .ycfc-cart-top { flex-direction: row-reverse; margin-bottom: 12px; }
  .ycfc-back-home { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .ycfc-page-head { align-items: center; }
  .ycfc-page-head h1 { font-size: 17px; }
  .ycfc-page-head span { font-size: 12px; }
  .ycfc-lines-head { display: none; }
  .ycfc-page-lines { gap: 10px; }
  .ycfc-cart-line { grid-template-columns: 86px minmax(0, 1fr); gap: 10px 12px; padding: 13px; border-radius: 18px; }
  .ycfc-line-remove { position: absolute; left: 12px; bottom: 13px; width: 36px; height: 36px; z-index: 2; }
  .ycfc-line-image { grid-row: 1 / span 2; width: 86px; height: 86px; border-radius: 15px; }
  .ycfc-line-title { font-size: 13px; line-height: 1.7; padding-left: 30px; }
  .ycfc-line-attr { font-size: 12px; }
  .ycfc-line-badges { margin-top: 8px; gap: 6px; }
  .ycfc-line-badges span { min-height: 24px; padding: 0 8px; font-size: 11px; }
  .ycfc-line-pricebox { grid-column: 2 / 3; text-align: right; }
  .ycfc-price-discount { justify-content: flex-start; }
  .ycfc-price-current { font-size: 15px; }
  .ycfc-line-total-label { display: none; }
  .ycfc-line-qty { grid-column: 2 / 3; justify-self: end; height: 38px; border-radius: 13px; margin-left: 48px; }
  .ycfc-qty-btn { width: 38px; height: 38px; font-size: 18px; }
  .ycfc-qty-input { width: 42px; height: 38px; font-size: 14px; }
  .ycfc-summary-card { border-radius: 18px; padding: 16px; }
  .ycfc-page-summary { margin-top: 2px; }
  .ycfc-primary-action { display: none; }
  .ycfc-mobile-paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; min-height: 72px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-top: 1px solid #e8edf3; box-shadow: 0 -10px 30px rgba(15,23,42,.10); }
  .ycfc-mobile-paybar div { display: flex; flex-direction: column; gap: 2px; }
  .ycfc-mobile-paybar span { font-size: 11px; color: #64748b; font-weight: 700; }
  .ycfc-mobile-paybar strong { font-size: 15px; color: #111827; font-weight: 950; }
  .ycfc-mobile-paybar a { min-height: 48px; min-width: 160px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; background: #183a8f; color: #fff !important; text-decoration: none !important; font-weight: 900; }
}

/* v1.0.8: keep third-party cart hook sections stable and styled */
.ycfc-cart-hook-preserve:empty { display: none; }
.ycfc-cart-related { margin-top: 24px; min-width: 0; }
.ycfc-cart-hook-footer { margin-top: 16px; }
.ycfc-cart-hook-preserve .section-title,
.ycfc-cart-hook-preserve .block-title { font-weight: 900; color: #111827; }

/* v1.0.12: separate cart products title from third-party recommendation hooks */
.ycfc-page-head-in-lines {
  padding: 0 2px 2px;
  margin: 0 0 4px;
}
.ycfc-empty-head {
  margin: 0 0 14px;
}
.ycfc-page-lines > .ycfc-page-head-in-lines + .ycfc-lines-head {
  margin-top: 0;
}

/* v1.0.12: animated final order CTA, visually stronger than ادامه خرید */
.ycfc-order-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(239, 51, 64, .14) !important;
}
.ycfc-order-action::before {
  content: "";
  position: absolute;
  inset: -80%;
  z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 58deg, #ef3340 64deg 118deg, transparent 124deg 360deg);
  animation: ycfcCtaRotate 1.35s linear infinite;
}
.ycfc-order-action::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 1;
  border-radius: 13px;
  background: #183a8f;
}
.ycfc-order-action > span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ycfc-order-action:hover::after {
  background: #142f78;
}
@keyframes ycfcCtaRotate {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .ycfc-page-head-in-lines {
    padding: 0 2px;
    margin: 0 0 6px;
  }
  .ycfc-mobile-paybar .ycfc-order-action {
    min-height: 48px;
    min-width: 160px;
    border-radius: 14px;
  }
  .ycfc-mobile-paybar .ycfc-order-action::after {
    border-radius: 12px;
  }
}

/* v1.0.13: modern native checkout/address wrapper */
.yc-fastcheckout-submit-page { direction: rtl; background: #f5f7fb; padding: 18px 0 36px; }
.ycfc-submit-container { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.ycfc-submit-head { display: grid; grid-template-columns: 180px 1fr 310px; gap: 18px; align-items: center; margin: 0 0 18px; }
.ycfc-submit-back { height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; color: #334155 !important; text-decoration: none !important; display: inline-flex; align-items: center; justify-content: center; font-weight: 850; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.ycfc-submit-titlewrap { text-align: right; }
.ycfc-submit-kicker { display: inline-flex; height: 25px; align-items: center; border-radius: 999px; background: #fff2f3; color: #ef3340; padding: 0 10px; font-size: 12px; font-weight: 900; }
.ycfc-submit-title { margin: 8px 0 4px; color: #111827; font-size: 24px; font-weight: 950; letter-spacing: -.4px; }
.ycfc-submit-subtitle { margin: 0; color: #64748b; font-size: 13px; line-height: 1.9; }
.ycfc-submit-steps { display: flex; gap: 8px; justify-content: flex-end; }
.ycfc-submit-step { min-height: 42px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: #fff; color: #64748b; font-weight: 900; box-shadow: 0 8px 22px rgba(15,23,42,.05); }
.ycfc-submit-step b { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #f1f5f9; color: #64748b; }
.ycfc-submit-step.is-active { color: #183a8f; border: 1px solid rgba(24,58,143,.18); }
.ycfc-submit-step.is-active b { background: #183a8f; color: #fff; }
.ycfc-submit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.ycfc-submit-main, .ycfc-submit-summary-card { min-width: 0; }
.ycfc-native-checkout-shell { display: grid; gap: 14px; }
.ycfc-submit-page .checkout-step { background: #fff; border: 1px solid #e8edf3; border-radius: 20px; box-shadow: 0 12px 32px rgba(15,23,42,.06); margin: 0 0 14px; overflow: hidden; }
.ycfc-submit-page .checkout-step .step-title { margin: 0; min-height: 62px; padding: 0 20px; display: flex; align-items: center; gap: 12px; color: #111827; font-size: 18px; font-weight: 950; border-bottom: 1px solid #eef2f7; background: linear-gradient(180deg,#fff,#fbfdff); }
.ycfc-submit-page .checkout-step .step-number { width: 34px; height: 34px; border-radius: 13px; background: #eef4ff; color: #183a8f; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 950; }
.ycfc-submit-page .checkout-step.-current .step-title { color: #183a8f; }
.ycfc-submit-page .checkout-step .content { padding: 18px 22px 22px; }
.ycfc-submit-page .step-edit { margin-right: auto; font-size: 12px; font-weight: 800; }
.ycfc-submit-page #checkout-addresses-step .content { background: #fff; }
.ycfc-submit-page .js-address-form > form > p { margin: 0 0 14px; color: #64748b; background: #f8fafc; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.9; }
.ycfc-submit-page .address-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.ycfc-submit-page .address-item { margin: 0 !important; padding: 0; border: 1px solid #e8edf3; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.045); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.ycfc-submit-page .address-item:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(15,23,42,.08); }
.ycfc-submit-page .address-item.selected { border-color: rgba(24,58,143,.55); box-shadow: 0 0 0 3px rgba(24,58,143,.08), 0 12px 30px rgba(24,58,143,.08); }
.ycfc-submit-page .address-item header { padding: 14px 16px; background: #f8fbff; }
.ycfc-submit-page .address-item .radio-block { margin: 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ycfc-submit-page .address-item .address-alias { font-weight: 950; color: #111827; }
.ycfc-submit-page .address-item .address { padding: 14px 16px; min-height: 128px; color: #334155; font-size: 13px; line-height: 2; }
.ycfc-submit-page .address-item .address br { line-height: 2; }
.ycfc-submit-page .address-item hr { margin: 0; border-color: #eef2f7; }
.ycfc-submit-page .address-footer { padding: 10px 14px; display: flex; gap: 10px; justify-content: flex-start; background: #fff; }
.ycfc-submit-page .address-footer a { height: 34px; border-radius: 10px; background: #f8fafc; color: #475569 !important; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none !important; }
.ycfc-submit-page .address-footer a:hover { background: #eef4ff; color: #183a8f !important; }
.ycfc-submit-page .add-address { margin: 8px 0 14px !important; background: transparent !important; padding: 0 !important; }
.ycfc-submit-page .add-address a { min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1px dashed rgba(24,58,143,.35); background: #f8fbff; color: #183a8f !important; display: inline-flex; align-items: center; gap: 8px; font-weight: 950; text-decoration: none !important; }
.ycfc-submit-page .js-address-form .form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ycfc-submit-page .js-address-form .form-group { margin: 0 !important; display: block; }
.ycfc-submit-page .js-address-form .form-control-label { display: block; margin: 0 0 8px; color: #334155; font-weight: 900; font-size: 13px; }
.ycfc-submit-page .js-address-form input.form-control,
.ycfc-submit-page .js-address-form select.form-control,
.ycfc-submit-page .js-address-form textarea.form-control,
.ycfc-submit-page .js-address-form .select2-container .select2-selection { min-height: 48px; border: 1px solid #e2e8f0; border-radius: 14px !important; background: #fff; box-shadow: none !important; color: #111827; font-weight: 800; }
.ycfc-submit-page .js-address-form textarea.form-control { min-height: 88px; padding-top: 12px; }
.ycfc-submit-page .js-address-form .select2-container { width: 100% !important; }
.ycfc-submit-page .js-address-form .select2-selection__rendered { line-height: 46px !important; padding-right: 14px !important; padding-left: 34px !important; color: #111827 !important; }
.ycfc-submit-page .js-address-form .select2-selection__arrow { height: 46px !important; left: 8px !important; right: auto !important; }
.ycfc-submit-page .js-address-form .help-block, .ycfc-submit-page .js-address-form .form-control-comment { display: block; margin-top: 6px; color: #94a3b8; font-size: 11px; }
.ycfc-submit-page .custom-checkbox { display: inline-flex; align-items: center; gap: 8px; color: #334155; font-weight: 800; }
.ycfc-submit-page .form-footer { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef2f7; display: flex; gap: 10px; align-items: center; justify-content: flex-start; }
.ycfc-submit-page .form-footer .btn,
.ycfc-submit-page .continue.btn { min-height: 48px; border: 0; border-radius: 14px; background: #183a8f !important; color: #fff !important; font-weight: 950; padding: 0 22px; box-shadow: 0 14px 28px rgba(24,58,143,.18); }
.ycfc-submit-page .cancel-address { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 13px; background: #f8fafc; color: #64748b !important; text-decoration: none !important; font-weight: 850; }
.ycfc-submit-page .map-tip, .ycfc-submit-page .map-tip.alert { border-radius: 14px !important; background: #fff7ed !important; border: 1px solid #fed7aa !important; color: #9a3412 !important; font-weight: 850; }
.ycfc-submit-page .map-container, .ycfc-submit-page #map, .ycfc-submit-page [id*="map"] { border-radius: 18px; overflow: hidden; }
.ycfc-submit-summary { position: sticky; top: 16px; }
.ycfc-submit-summary-card { background: #fff; border: 1px solid #e8edf3; border-radius: 20px; box-shadow: 0 14px 34px rgba(15,23,42,.07); padding: 16px; }
.ycfc-summary-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #eef2f7; }
.ycfc-summary-head strong { color: #111827; font-size: 17px; font-weight: 950; }
.ycfc-summary-head span { color: #64748b; font-weight: 850; }
.ycfc-summary-lines { display: grid; gap: 10px; padding: 14px 0; }
.ycfc-summary-lines div, .ycfc-summary-payable { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #475569; font-weight: 850; }
.ycfc-summary-lines b { color: #111827; font-weight: 950; }
.ycfc-summary-lines .is-discount, .ycfc-summary-lines .is-discount b { color: #ef3340; }
.ycfc-summary-payable { border-top: 1px solid #eef2f7; padding-top: 14px; color: #111827; }
.ycfc-summary-payable b { font-size: 20px; color: #111827; font-weight: 950; }
.ycfc-submit-floating-continue { width: 100%; min-height: 50px; margin-top: 16px; border: 0; border-radius: 14px; background: #ef3340; color: #fff; font-weight: 950; box-shadow: 0 14px 28px rgba(239,51,64,.18); }
.ycfc-submit-continue-shop { margin-top: 10px; min-height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #f8fafc; color: #64748b !important; text-decoration: none !important; font-weight: 900; }
.ycfc-submit-mobile-bar { display: none; }
.select2-container--open { z-index: 10050; }
.select2-dropdown { border-radius: 14px !important; border-color: #dbe4ef !important; overflow: hidden; box-shadow: 0 16px 40px rgba(15,23,42,.12); }
.select2-search__field { border-radius: 10px !important; border: 1px solid #dbe4ef !important; min-height: 38px; }

@media (max-width: 991px) {
  .ycfc-submit-head { grid-template-columns: 1fr; gap: 12px; }
  .ycfc-submit-steps { justify-content: flex-start; overflow-x: auto; padding-bottom: 3px; }
  .ycfc-submit-grid { grid-template-columns: 1fr; }
  .ycfc-submit-summary { position: static; }
  .ycfc-submit-page .address-selector { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .yc-fastcheckout-submit-page { padding: 12px 0 96px; }
  .ycfc-submit-container { width: min(100% - 18px, 520px); }
  .ycfc-submit-title { font-size: 18px; }
  .ycfc-submit-subtitle { font-size: 12px; }
  .ycfc-submit-back { width: fit-content; height: 38px; font-size: 12px; }
  .ycfc-submit-step { min-width: max-content; min-height: 36px; font-size: 12px; }
  .ycfc-submit-page .checkout-step { border-radius: 18px; }
  .ycfc-submit-page .checkout-step .step-title { min-height: 54px; padding: 0 14px; font-size: 15px; }
  .ycfc-submit-page .checkout-step .content { padding: 14px; }
  .ycfc-submit-page .js-address-form .form-fields { grid-template-columns: 1fr; }
  .ycfc-submit-page .address-item .address { min-height: 0; }
  .ycfc-submit-summary { display: none; }
  .ycfc-submit-mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-top: 1px solid #e8edf3; box-shadow: 0 -10px 30px rgba(15,23,42,.10); }
  .ycfc-submit-mobile-bar div { display: flex; flex-direction: column; gap: 2px; }
  .ycfc-submit-mobile-bar span { color: #64748b; font-size: 11px; font-weight: 850; }
  .ycfc-submit-mobile-bar b { color: #111827; font-size: 15px; font-weight: 950; }
  .ycfc-submit-mobile-bar button { min-width: 150px; min-height: 48px; border: 0; border-radius: 14px; background: #ef3340; color: #fff; font-weight: 950; }
}

/* v1.0.15 checkout polish: mobile responsive, step state, searchable selects, voucher */
.ycfc-submit-step.is-done { color: #16a34a; border: 1px solid rgba(22,163,74,.18); }
.ycfc-submit-step.is-done b { background: #16a34a; color: #fff; }
.ycfc-submit-page .form-group.row { display: grid !important; grid-template-columns: 150px minmax(0,1fr); gap: 10px 14px; align-items: center; }
.ycfc-submit-page .form-group.row > [class*="col-"] { max-width: 100% !important; flex: none !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.ycfc-submit-page .form-group.row .form-control-label { margin: 0; }
.ycfc-submit-page .select2-container { max-width: 100% !important; }
.ycfc-submit-page .select2-container--default .select2-selection--single { min-height: 48px; border: 1px solid #e2e8f0; border-radius: 14px !important; background: #fff; box-shadow: none !important; }
.ycfc-submit-page .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px !important; padding-right: 14px !important; padding-left: 34px !important; color: #111827 !important; font-weight: 850; }
.ycfc-submit-page .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px !important; left: 8px !important; right: auto !important; }
.ycfc-voucher-form { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 8px; margin: 4px 0 12px; }
.ycfc-voucher-form input { width: 100%; min-height: 44px; border: 1px solid #e2e8f0; border-radius: 14px; padding: 0 12px; color: #111827; font-weight: 850; background: #fff; }
.ycfc-voucher-form button { min-height: 44px; border: 0; border-radius: 14px; background: #183a8f; color: #fff; font-weight: 950; }
.ycfc-voucher-form.is-loading { opacity: .7; pointer-events: none; }
.ycfc-voucher-message { min-height: 18px; margin: -4px 0 10px; font-size: 12px; font-weight: 850; color: #64748b; }
.ycfc-voucher-message.is-success { color: #16a34a; }
.ycfc-voucher-message.is-error { color: #ef3340; }
.ycfc-applied-vouchers { display: flex !important; flex-wrap: wrap; gap: 6px; margin: -2px 0 2px; }
.ycfc-applied-vouchers[style*="display:none"], .ycfc-applied-vouchers[style*="display: none"] { display: none !important; }
.ycfc-applied-voucher { min-height: 28px; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: #ecfdf5; color: #15803d; padding: 0 9px; font-size: 12px; font-weight: 900; }
.ycfc-applied-voucher em { font-style: normal; }
.ycfc-applied-voucher button { width: 20px; height: 20px; border: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(21,128,61,.12); color: #15803d; font-weight: 950; padding: 0; }

@media (max-width: 767px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .yc-fastcheckout-submit-page { padding: 10px 0 94px !important; overflow-x: hidden; }
  .ycfc-submit-container { width: calc(100% - 16px) !important; max-width: none !important; }
  .ycfc-submit-head { display: flex !important; flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 12px; }
  .ycfc-submit-titlewrap { text-align: right; }
  .ycfc-submit-steps { order: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .ycfc-submit-step { justify-content: center; min-width: 0; padding: 0 5px; font-size: 11px; white-space: nowrap; }
  .ycfc-submit-step b { width: 22px; height: 22px; }
  .ycfc-submit-grid { display: block !important; width: 100%; }
  .ycfc-submit-main, .ycfc-native-checkout-shell, .ycfc-submit-page .checkout-step { width: 100%; max-width: 100%; min-width: 0; }
  .ycfc-submit-page .checkout-step { overflow: hidden; }
  .ycfc-submit-page .checkout-step .content { padding: 12px !important; }
  .ycfc-submit-page .js-address-form .form-fields { display: grid !important; grid-template-columns: 1fr !important; gap: 12px; width: 100%; }
  .ycfc-submit-page .form-group.row { grid-template-columns: 1fr !important; align-items: stretch; gap: 7px; }
  .ycfc-submit-page .form-control-label { text-align: right !important; width: 100%; }
  .ycfc-submit-page input.form-control,
  .ycfc-submit-page select.form-control,
  .ycfc-submit-page textarea.form-control,
  .ycfc-submit-page .select2-container,
  .ycfc-submit-page .select2-container .select2-selection { width: 100% !important; max-width: 100% !important; }
  .ycfc-submit-page .address-selector { display: grid !important; grid-template-columns: 1fr !important; gap: 10px; }
  .ycfc-submit-page .address-item .address { font-size: 12px; line-height: 1.9; }
  .ycfc-submit-page .form-footer { flex-direction: column; align-items: stretch; }
  .ycfc-submit-page .form-footer .btn, .ycfc-submit-page .continue.btn, .ycfc-submit-page .cancel-address { width: 100%; }
  .ycfc-submit-page .map-container, .ycfc-submit-page #map, .ycfc-submit-page [id*="map"] { max-width: 100% !important; min-height: 230px; }
  .ycfc-voucher-form { grid-template-columns: 1fr 76px; }
}

/* v1.0.16 delivery step: pre-filter marketplace carriers and make shipping/date picker responsive */
.yc-fastcheckout-submit-page.ycfc-carrier-filtering .delivery-options-list,
.yc-fastcheckout-submit-page.ycfc-carrier-filtering #js-delivery .delivery-options,
.yc-fastcheckout-submit-page.ycfc-carrier-filtering #js-delivery .delivery-option,
.yc-fastcheckout-submit-page.ycfc-carrier-filtering .delivery-options-list .delivery-option {
  opacity: 0 !important;
  pointer-events: none !important;
  max-height: 1px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.ycfc-carrier-filter-loader {
  display: none;
  position: relative;
  margin: 12px 0;
  padding: 14px 16px 14px 52px;
  border: 1px solid rgba(24,58,143,.12);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  color: #334155;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  direction: rtl;
  text-align: right;
}
.ycfc-carrier-filter-loader span {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(24,58,143,.18);
  border-top-color: #183a8f;
  animation: ycfcSpin .85s linear infinite;
}
.ycfc-carrier-filter-loader b { display: block; color: #111827; font-weight: 950; font-size: 13px; margin-bottom: 4px; }
.ycfc-carrier-filter-loader em { display: block; color: #64748b; font-style: normal; font-weight: 800; font-size: 12px; line-height: 1.8; }
@keyframes ycfcSpin { to { transform: rotate(360deg); } }
.ycfc-carrier-hidden { display: none !important; }
.ycfc-carrier-seller-note {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-weight: 900;
  font-size: 12px;
  text-align: right;
}
.ycfc-submit-page #checkout-delivery-step .content,
.ycfc-submit-page #js-delivery,
.ycfc-submit-page .delivery-options-list {
  max-width: 100%;
}
.ycfc-submit-page .ycfc-delivery-card,
.ycfc-submit-page .delivery-option {
  border-radius: 16px !important;
  border: 1px solid #e8edf3;
  background: #fff;
  margin: 10px 0 !important;
  padding: 12px !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.05);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ycfc-submit-page .ycfc-delivery-card:has(input:checked),
.ycfc-submit-page .delivery-option:has(input:checked) {
  border-color: rgba(24,58,143,.35);
  background: #f8fbff;
  box-shadow: 0 10px 28px rgba(24,58,143,.08);
}
.ycfc-submit-page .delivery-option label,
.ycfc-submit-page .carrier label {
  margin: 0;
  cursor: pointer;
}
.ycfc-submit-page #yc-mp-delivery-picker,
.ycfc-submit-page .yc-mp-delivery-picker {
  width: 100%;
  max-width: 100%;
  border-radius: 18px !important;
  border: 1px solid #e8edf3 !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(15,23,42,.05) !important;
  overflow: hidden;
}
.ycfc-submit-page .yc-mp-delivery-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px !important;
  background: #f8fafc !important;
  border-radius: 14px !important;
  font-weight: 950 !important;
  color: #111827 !important;
  line-height: 1.8;
}
.ycfc-submit-page .yc-mp-delivery-body { padding: 12px 14px !important; }
.ycfc-submit-page .yc-mp-date-strip,
.ycfc-submit-page .yc-mp-dates,
.ycfc-submit-page [class*="date-strip"],
.ycfc-submit-page [class*="date-list"] {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  max-width: 100%;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.ycfc-submit-page .yc-mp-date-strip > *,
.ycfc-submit-page .yc-mp-dates > *,
.ycfc-submit-page [class*="date-strip"] > *,
.ycfc-submit-page [class*="date-list"] > * {
  flex: 0 0 auto !important;
  min-width: 104px;
  border-radius: 12px !important;
}
.ycfc-submit-page .carrier-extra-content,
.ycfc-submit-page .delivery-option + .carrier-extra-content {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 767px) {
  .ycfc-carrier-filter-loader { margin: 10px 0; padding: 12px 14px 12px 48px; border-radius: 14px; }
  .ycfc-carrier-filter-loader b { font-size: 12px; }
  .ycfc-carrier-filter-loader em { font-size: 11px; }
  .ycfc-submit-page .delivery-option,
  .ycfc-submit-page .ycfc-delivery-card {
    display: block !important;
    width: 100% !important;
    margin: 8px 0 !important;
    padding: 11px !important;
    border-radius: 15px !important;
  }
  .ycfc-submit-page #js-delivery .row,
  .ycfc-submit-page .delivery-options-list .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .ycfc-submit-page .delivery-option > [class*="col-"],
  .ycfc-submit-page .ycfc-delivery-card > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .ycfc-submit-page #yc-mp-delivery-picker,
  .ycfc-submit-page .yc-mp-delivery-picker {
    border-radius: 16px !important;
    margin: 10px 0 !important;
  }
  .ycfc-submit-page .yc-mp-delivery-title {
    display: block !important;
    padding: 11px 12px !important;
    font-size: 13px !important;
  }
  .ycfc-submit-page .yc-mp-delivery-body { padding: 10px 12px !important; }
  .ycfc-submit-page .yc-mp-date-strip > *,
  .ycfc-submit-page .yc-mp-dates > *,
  .ycfc-submit-page [class*="date-strip"] > *,
  .ycfc-submit-page [class*="date-list"] > * {
    min-width: 92px;
    font-size: 12px !important;
  }
}

/* v1.0.17 delivery date strip: keep seller delivery days in a horizontal scroll area */
.ycfc-submit-page #yc-mp-delivery-picker,
.ycfc-submit-page .yc-mp-delivery-picker,
.ycfc-submit-page .yc-mp-delivery-body,
.ycfc-submit-page .ycfc-delivery-date-scroll {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.ycfc-submit-page .yc-mp-delivery-body {
  overflow: hidden !important;
}
.ycfc-submit-page .yc-mp-delivery-body > *,
.ycfc-submit-page .yc-mp-delivery-body .row,
.ycfc-submit-page .yc-mp-delivery-body [class*="col-"] {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.ycfc-submit-page .ycfc-delivery-date-scroll,
.ycfc-submit-page .yc-mp-delivery-body .ycfc-delivery-date-scroll,
.ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll,
.ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll-wrap {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 5px 2px 10px !important;
  margin: 8px 0 12px !important;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}
.ycfc-submit-page .ycfc-delivery-date-scroll > *,
.ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll > *,
.ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll-wrap > *,
.ycfc-submit-page .ycfc-delivery-date-item {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 108px !important;
  max-width: 148px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.ycfc-submit-page .ycfc-delivery-date-scroll button,
.ycfc-submit-page .ycfc-delivery-date-scroll a,
.ycfc-submit-page .ycfc-delivery-date-scroll label,
.ycfc-submit-page .ycfc-delivery-date-item button,
.ycfc-submit-page .ycfc-delivery-date-item a,
.ycfc-submit-page .ycfc-delivery-date-item label {
  width: 100% !important;
  white-space: nowrap !important;
}
.ycfc-submit-page .ycfc-delivery-picker-fixed {
  overflow: hidden !important;
}
@media (min-width: 768px) {
  .ycfc-submit-page .ycfc-delivery-date-scroll,
  .ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll,
  .ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll-wrap {
    padding-bottom: 12px !important;
  }
  .ycfc-submit-page .ycfc-delivery-date-scroll > *,
  .ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll > *,
  .ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll-wrap > *,
  .ycfc-submit-page .ycfc-delivery-date-item {
    min-width: 120px !important;
  }
}
@media (max-width: 767px) {
  .ycfc-submit-page .ycfc-delivery-date-scroll,
  .ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll,
  .ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll-wrap {
    gap: 7px !important;
    margin: 7px 0 10px !important;
    padding-bottom: 9px !important;
  }
  .ycfc-submit-page .ycfc-delivery-date-scroll > *,
  .ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll > *,
  .ycfc-submit-page .yc-mp-delivery-body .ycfc-date-scroll-wrap > *,
  .ycfc-submit-page .ycfc-delivery-date-item {
    min-width: 94px !important;
    max-width: 126px !important;
    font-size: 12px !important;
  }
}

/* v1.0.18: hard containment for branch marketplace delivery date strip after ajax injection */
.ycfc-submit-page .ycfc-submit-container,
.ycfc-submit-page .ycfc-submit-grid,
.ycfc-submit-page .ycfc-submit-main,
.ycfc-submit-page .ycfc-native-checkout-shell,
.ycfc-submit-page .checkout-step,
.ycfc-submit-page .checkout-step .content,
.ycfc-submit-page #checkout-delivery-step,
.ycfc-submit-page #checkout-delivery-step .content,
.ycfc-submit-page #js-delivery,
.ycfc-submit-page #js-delivery .form-fields,
.ycfc-submit-page .delivery-options,
.ycfc-submit-page .delivery-options-list,
.ycfc-submit-page .delivery-options .row,
.ycfc-submit-page .carrier-extra-content,
.ycfc-submit-page .yc-mp-carrier-notice,
.ycfc-submit-page #yc-mp-delivery-picker,
.ycfc-submit-page .yc-mp-delivery-picker,
.ycfc-submit-page .yc-mp-delivery-body {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.ycfc-submit-page #checkout-delivery-step,
.ycfc-submit-page #checkout-delivery-step .content,
.ycfc-submit-page #js-delivery,
.ycfc-submit-page #js-delivery .form-fields,
.ycfc-submit-page .delivery-options-list,
.ycfc-submit-page .carrier-extra-content,
.ycfc-submit-page #yc-mp-delivery-picker,
.ycfc-submit-page .yc-mp-delivery-picker,
.ycfc-submit-page .yc-mp-delivery-body {
  overflow-x: hidden !important;
}
.ycfc-submit-page .yc-mp-delivery-summary {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.ycfc-submit-page .yc-mp-delivery-summary > * {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere;
}
.ycfc-submit-page .yc-mp-delivery-dates,
.ycfc-submit-page .yc-mp-delivery-dates.ycfc-delivery-date-scroll,
.ycfc-submit-page .yc-mp-delivery-body > .yc-mp-delivery-dates {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 6px 2px 12px !important;
  margin: 8px 0 12px !important;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}
.ycfc-submit-page .yc-mp-delivery-dates > *,
.ycfc-submit-page .yc-mp-delivery-date,
.ycfc-submit-page button.yc-mp-delivery-date {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 112px !important;
  max-width: 156px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
.ycfc-submit-page button.yc-mp-delivery-date {
  text-align: center !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.ycfc-submit-page .yc-mp-delivery-disabled-note {
  max-width: 100% !important;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .ycfc-submit-page .yc-mp-delivery-dates,
  .ycfc-submit-page .yc-mp-delivery-dates.ycfc-delivery-date-scroll,
  .ycfc-submit-page .yc-mp-delivery-body > .yc-mp-delivery-dates {
    gap: 7px !important;
    padding: 5px 2px 10px !important;
    margin: 7px 0 10px !important;
  }
  .ycfc-submit-page .yc-mp-delivery-dates > *,
  .ycfc-submit-page .yc-mp-delivery-date,
  .ycfc-submit-page button.yc-mp-delivery-date {
    min-width: 96px !important;
    max-width: 128px !important;
    font-size: 12px !important;
  }
}

/* v1.0.19: strict delivery date strip containment on /submit.
   The branch marketplace module injects .yc-mp-delivery-summary as a flex row;
   on small screens that makes the date buttons widen the page. Force the date
   list to be a real horizontal scroller and prevent all parents from expanding. */
body#checkout,
body#checkout #wrapper,
body#checkout #content-wrapper,
body#checkout #main,
body#checkout #content,
body#checkout #yc-fastcheckout-submit-page,
body#checkout .yc-fastcheckout-submit-page,
#yc-fastcheckout-submit-page,
.yc-fastcheckout-submit-page {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}
body#checkout #yc-fastcheckout-submit-page,
body#checkout #yc-fastcheckout-submit-page *,
#yc-fastcheckout-submit-page,
#yc-fastcheckout-submit-page * {
  box-sizing: border-box !important;
}
body#checkout #yc-fastcheckout-submit-page .ycfc-submit-container,
body#checkout #yc-fastcheckout-submit-page .ycfc-submit-grid,
body#checkout #yc-fastcheckout-submit-page .ycfc-submit-main,
body#checkout #yc-fastcheckout-submit-page .ycfc-native-checkout-shell,
body#checkout #yc-fastcheckout-submit-page .checkout-step,
body#checkout #yc-fastcheckout-submit-page .checkout-step .content,
body#checkout #yc-fastcheckout-submit-page #checkout-delivery-step,
body#checkout #yc-fastcheckout-submit-page #checkout-delivery-step .content,
body#checkout #yc-fastcheckout-submit-page #js-delivery,
body#checkout #yc-fastcheckout-submit-page .delivery-options,
body#checkout #yc-fastcheckout-submit-page .delivery-options-list,
body#checkout #yc-fastcheckout-submit-page .carrier-extra-content,
body#checkout #yc-fastcheckout-submit-page #yc-mp-delivery-picker,
body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-picker,
body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-body,
body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-summary {
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto;
  overflow-x: hidden !important;
}
body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-summary,
#yc-fastcheckout-submit-page .yc-mp-delivery-summary,
.yc-fastcheckout-submit-page .yc-mp-delivery-summary {
  display: block !important;
  flex: 0 1 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow: hidden !important;
}
body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-dates,
body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-summary > .yc-mp-delivery-dates,
body#checkout #yc-fastcheckout-submit-page .ycfc-delivery-date-scroll,
#yc-fastcheckout-submit-page .yc-mp-delivery-dates,
#yc-fastcheckout-submit-page .ycfc-delivery-date-scroll,
.yc-fastcheckout-submit-page .yc-mp-delivery-dates,
.yc-fastcheckout-submit-page .ycfc-delivery-date-scroll {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 6px 2px 12px !important;
  margin: 8px 0 12px !important;
  white-space: nowrap !important;
  scrollbar-width: thin !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-inline: contain !important;
  scroll-snap-type: x proximity;
}
body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-dates > *,
body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-date,
body#checkout #yc-fastcheckout-submit-page button.yc-mp-delivery-date,
#yc-fastcheckout-submit-page .yc-mp-delivery-dates > *,
#yc-fastcheckout-submit-page .yc-mp-delivery-date,
#yc-fastcheckout-submit-page button.yc-mp-delivery-date,
.yc-fastcheckout-submit-page .yc-mp-delivery-dates > *,
.yc-fastcheckout-submit-page .yc-mp-delivery-date,
.yc-fastcheckout-submit-page button.yc-mp-delivery-date {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 112px !important;
  max-width: 156px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  scroll-snap-align: start;
}
body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-disabled-note,
#yc-fastcheckout-submit-page .yc-mp-delivery-disabled-note,
.yc-fastcheckout-submit-page .yc-mp-delivery-disabled-note {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
}
@media (max-width: 767px) {
  body#checkout #yc-fastcheckout-submit-page,
  #yc-fastcheckout-submit-page,
  .yc-fastcheckout-submit-page {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-dates,
  #yc-fastcheckout-submit-page .yc-mp-delivery-dates,
  .yc-fastcheckout-submit-page .yc-mp-delivery-dates,
  body#checkout #yc-fastcheckout-submit-page .ycfc-delivery-date-scroll,
  #yc-fastcheckout-submit-page .ycfc-delivery-date-scroll,
  .yc-fastcheckout-submit-page .ycfc-delivery-date-scroll {
    gap: 7px !important;
    padding: 5px 2px 10px !important;
    margin: 7px 0 10px !important;
  }
  body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-dates > *,
  body#checkout #yc-fastcheckout-submit-page .yc-mp-delivery-date,
  body#checkout #yc-fastcheckout-submit-page button.yc-mp-delivery-date,
  #yc-fastcheckout-submit-page .yc-mp-delivery-dates > *,
  #yc-fastcheckout-submit-page .yc-mp-delivery-date,
  #yc-fastcheckout-submit-page button.yc-mp-delivery-date,
  .yc-fastcheckout-submit-page .yc-mp-delivery-dates > *,
  .yc-fastcheckout-submit-page .yc-mp-delivery-date,
  .yc-fastcheckout-submit-page button.yc-mp-delivery-date {
    min-width: 96px !important;
    max-width: 128px !important;
    font-size: 12px !important;
  }
}

/* v1.0.20: checkout navigation and summary usability fixes */
.ycfc-submit-step {
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.ycfc-submit-step:hover,
.ycfc-submit-step:focus {
  color: #183a8f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(24,58,143,.08), 0 8px 22px rgba(15,23,42,.05);
}
.ycfc-submit-summary {
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-left: 2px;
  scrollbar-width: thin;
}
.ycfc-submit-summary::-webkit-scrollbar { width: 6px; }
.ycfc-submit-summary::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.ycfc-submit-summary::-webkit-scrollbar-track { background: transparent; }
.ycfc-submit-summary-card {
  max-height: none;
}
.ycfc-step-native-action-visible .ycfc-submit-summary .ycfc-submit-floating-continue {
  display: none !important;
}
.ycfc-step-native-action-visible .ycfc-submit-summary-card::after {
  content: 'دکمه ادامه مرحله فعلی پایین همین بخش فعال است.';
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.9;
  text-align: center;
}
.ycfc-submit-page .checkout-step .content > .continue.btn,
.ycfc-submit-page .checkout-step .content .form-footer .continue.btn,
.ycfc-submit-page .checkout-step .content #payment-confirmation button[type="submit"],
.ycfc-submit-page .checkout-step .content button[name="confirm-addresses"] {
  position: relative;
  z-index: 2;
}
@media (max-width: 767px) {
  .ycfc-submit-step {
    border-radius: 999px;
  }
  .ycfc-step-native-action-visible .ycfc-submit-mobile-bar {
    transform: translateY(calc(100% + 16px));
    pointer-events: none;
  }
  .ycfc-submit-mobile-bar {
    transition: transform .22s ease;
  }
  .ycfc-step-native-action-visible .ycfc-submit-summary-card::after {
    display: none;
  }
}


/* v1.0.21: summary CTA becomes native final confirmation in payment step */
.ycfc-submit-floating-continue.ycfc-submit-final-confirm,
.ycfc-submit-mobile-bar button.ycfc-submit-final-confirm {
  background: #ef3340 !important;
  color: #fff !important;
  font-weight: 950 !important;
  text-align: center !important;
}
.ycfc-submit-floating-continue.ycfc-submit-final-confirm::before,
.ycfc-submit-mobile-bar button.ycfc-submit-final-confirm::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-inline-end: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  font-size: 12px;
  vertical-align: middle;
}
.ycfc-submit-floating-continue.ycfc-submit-final-confirm:disabled,
.ycfc-submit-mobile-bar button.ycfc-submit-final-confirm:disabled,
.ycfc-submit-floating-continue.ycfc-submit-final-confirm.disabled,
.ycfc-submit-mobile-bar button.ycfc-submit-final-confirm.disabled {
  opacity: .62 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
#checkout-payment-step.ycfc-payment-attention {
  animation: ycfcPaymentAttention 1.1s ease;
}
@keyframes ycfcPaymentAttention {
  0%, 100% { box-shadow: none; }
  35% { box-shadow: 0 0 0 4px rgba(239,51,64,.14), 0 14px 36px rgba(239,51,64,.12); }
}

/* v1.0.22: keep fast checkout/cart sticky bars above theme mobile bottom navigation */
@media (max-width: 767px) {
  :root {
    --ycfc-theme-mobile-nav-height: 64px;
    --ycfc-sticky-bar-height: 72px;
  }

  #yc-fastcheckout-submit-page.yc-fastcheckout-submit-page,
  section#yc-fastcheckout-submit-page.yc-fastcheckout-submit-page {
    padding-left: 10px !important;
    padding-right: 0 !important;
    padding-bottom: calc(var(--ycfc-theme-mobile-nav-height) + var(--ycfc-sticky-bar-height) + 22px + env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  #yc-fastcheckout-submit-page .ycfc-submit-container,
  #yc-fastcheckout-submit-page .ycfc-submit-head,
  #yc-fastcheckout-submit-page .ycfc-submit-titlewrap,
  #yc-fastcheckout-submit-page .ycfc-submit-grid,
  #yc-fastcheckout-submit-page .ycfc-submit-main,
  #yc-fastcheckout-submit-page .ycfc-native-checkout-shell,
  #yc-fastcheckout-submit-page .checkout-step {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  .ycfc-submit-mobile-bar,
  .ycfc-mobile-paybar {
    bottom: calc(var(--ycfc-theme-mobile-nav-height) + env(safe-area-inset-bottom)) !important;
    z-index: 9990 !important;
  }

  body#checkout .ycfc-submit-mobile-bar,
  body.page-cart .ycfc-mobile-paybar,
  body#cart .ycfc-mobile-paybar {
    bottom: calc(var(--ycfc-theme-mobile-nav-height) + env(safe-area-inset-bottom)) !important;
  }

  body#checkout #mobile-bottom-nav,
  body#checkout .mobile-bottom-nav,
  body.page-cart #mobile-bottom-nav,
  body.page-cart .mobile-bottom-nav,
  body#cart #mobile-bottom-nav,
  body#cart .mobile-bottom-nav {
    z-index: 9985;
  }
}


/* v1.0.23: mobile submit page containment + keep sticky action above bottom nav after delivery date changes */
@media (max-width: 767px) {
  body#checkout,
  body#checkout #wrapper,
  body#checkout #content-wrapper,
  body#checkout #main,
  body#checkout #content {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* The previous 100vw rule made the submit section start at -15px inside the theme container.
     Keep the checkout shell inside its parent and preserve the tested RTL padding. */
  body#checkout #yc-fastcheckout-submit-page,
  #yc-fastcheckout-submit-page,
  section#yc-fastcheckout-submit-page.yc-fastcheckout-submit-page,
  .yc-fastcheckout-submit-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    padding-right: 0 !important;
    padding-left: 10px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body#checkout #yc-fastcheckout-submit-page .ycfc-submit-container,
  body#checkout #yc-fastcheckout-submit-page .ycfc-submit-head,
  body#checkout #yc-fastcheckout-submit-page .ycfc-submit-titlewrap,
  body#checkout #yc-fastcheckout-submit-page .ycfc-submit-grid,
  body#checkout #yc-fastcheckout-submit-page .ycfc-submit-main,
  body#checkout #yc-fastcheckout-submit-page .ycfc-native-checkout-shell,
  body#checkout #yc-fastcheckout-submit-page .checkout-step,
  #yc-fastcheckout-submit-page .ycfc-submit-container,
  #yc-fastcheckout-submit-page .ycfc-submit-head,
  #yc-fastcheckout-submit-page .ycfc-submit-titlewrap,
  #yc-fastcheckout-submit-page .ycfc-submit-grid,
  #yc-fastcheckout-submit-page .ycfc-submit-main,
  #yc-fastcheckout-submit-page .ycfc-native-checkout-shell,
  #yc-fastcheckout-submit-page .checkout-step {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  /* When marketplace/date scripts make the native Continue button visible,
     do not slide the mobile action bar down. It must remain fixed above the theme nav. */
  .ycfc-step-native-action-visible .ycfc-submit-mobile-bar,
  body#checkout .ycfc-step-native-action-visible .ycfc-submit-mobile-bar {
    transform: none !important;
    pointer-events: auto !important;
  }

  body#checkout .ycfc-submit-mobile-bar,
  .ycfc-submit-mobile-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(var(--ycfc-theme-mobile-nav-height, 64px) + env(safe-area-inset-bottom)) !important;
    z-index: 9990 !important;
    width: 100% !important;
    max-width: 100vw !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body#checkout {
    padding-bottom: calc(var(--ycfc-theme-mobile-nav-height, 64px) + var(--ycfc-sticky-bar-height, 72px) + 18px + env(safe-area-inset-bottom)) !important;
  }
}

/* v1.0.24: hide external floating chat/support widgets on cart and checkout pages */
body#cart #goftino_w,
body#cart #goftino-widget,
body#cart #raychat-widget,
body#cart #raychat-widget-container,
body#cart #chat-widget,
body#cart #chat-widget-container,
body#cart #support-widget,
body#cart #support-chat,
body#cart .goftino-widget,
body#cart .raychat-widget,
body#cart .raychat-widget-container,
body#cart .chat-widget,
body#cart .chat-widget-container,
body#cart .support-widget,
body#cart .support-chat,
body#cart .crisp-client,
body#cart .zopim,
body#cart .zsiq_floatmain,
body#cart .tawk-min-container,
body#cart iframe[src*="goftino"],
body#cart iframe[src*="raychat"],
body#cart iframe[src*="crisp"],
body#cart iframe[src*="tawk"],
body#cart iframe[src*="zopim"],
body#cart iframe[src*="zsiq"],
body#checkout #goftino_w,
body#checkout #goftino-widget,
body#checkout #raychat-widget,
body#checkout #raychat-widget-container,
body#checkout #chat-widget,
body#checkout #chat-widget-container,
body#checkout #support-widget,
body#checkout #support-chat,
body#checkout .goftino-widget,
body#checkout .raychat-widget,
body#checkout .raychat-widget-container,
body#checkout .chat-widget,
body#checkout .chat-widget-container,
body#checkout .support-widget,
body#checkout .support-chat,
body#checkout .crisp-client,
body#checkout .zopim,
body#checkout .zsiq_floatmain,
body#checkout .tawk-min-container,
body#checkout iframe[src*="goftino"],
body#checkout iframe[src*="raychat"],
body#checkout iframe[src*="crisp"],
body#checkout iframe[src*="tawk"],
body#checkout iframe[src*="zopim"],
body#checkout iframe[src*="zsiq"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Yadacar unified top bar cart item v1.0.34 */
.yc-topbar-item{direction:rtl;display:inline-flex;align-items:center;vertical-align:middle;margin:0 4px;font-family:inherit;box-sizing:border-box}
.yc-topbar-link{display:inline-flex!important;align-items:center;gap:9px;min-height:46px;padding:6px 10px;border-radius:16px;text-decoration:none!important;color:#263238!important;background:transparent;transition:background .18s ease,box-shadow .18s ease,transform .18s ease;line-height:1.2;box-sizing:border-box;border:0;cursor:pointer}
.yc-topbar-link:hover{background:#f8fafc;box-shadow:0 8px 22px rgba(15,23,42,.06);transform:translateY(-1px)}
.yc-topbar-icon{position:relative;width:38px;height:38px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:#f1f5f9;color:#64748b;font-size:17px;flex:0 0 38px}
.yc-topbar-cart-icon{background:#fff7ed;color:#ea580c}
.yc-topbar-text{display:flex;flex-direction:column;gap:3px;text-align:right;white-space:nowrap}
.yc-topbar-text strong{font-size:13px;font-weight:900;color:#111827;line-height:1.15;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.yc-topbar-text small{font-size:11px;font-weight:700;color:#64748b;line-height:1}
.yc-fastcart-wrapper.col,.yc-fastcart-wrapper.col-auto{width:auto;max-width:none;flex:0 0 auto;padding-left:0;padding-right:0}
.yc-fastcart-toggle.yc-topbar-link{background:transparent!important}
.yc-fastcart-toggle.yc-topbar-link:hover{background:#f8fafc!important}
.yc-fastcart-count{top:-6px;right:-7px;background:#ef3340;color:#fff;border:2px solid #fff;min-width:19px;height:19px;line-height:15px;font-size:10px}
@media(max-width:991px){.yc-topbar-link{min-height:42px;padding:4px 7px;gap:7px}.yc-topbar-icon{width:34px;height:34px;flex-basis:34px;border-radius:12px;font-size:15px}.yc-topbar-text strong{font-size:12px;max-width:100px}.yc-topbar-text small{font-size:10px}}
@media(max-width:575px){.yc-topbar-item{margin:0 2px}.yc-topbar-link{padding:3px 6px}.yc-topbar-text small{display:none}.yc-topbar-text strong{max-width:84px}.yc-fastcart-count{min-width:17px;height:17px;line-height:13px;font-size:9px;top:-5px;right:-6px}}

/* v1.0.51: cart page summary Digify slot + lightweight route validation */
.ycfc-digify-summary-slot{
  display:block;
  width:100%;
  margin:0 0 14px;
  direction:rtl;
}
.ycfc-digify-summary-slot:empty{display:none;}
.ycfc-digify-summary-slot .digifybwdk-cart-widget{margin:0 0 4px;}
.ycfc-route-alert{
  margin:0 0 14px;
  border-radius:14px;
  padding:11px 12px;
  font-size:12px;
  font-weight:850;
  line-height:1.9;
}
.ycfc-route-alert-error{
  background:#fff1f2;
  border:1px solid #fecdd3;
  color:#b42318;
}
.ycfc-primary-action.is-disabled,
.ycfc-mobile-paybar .ycfc-order-action.is-disabled{
  opacity:.55;
  filter:grayscale(1);
  cursor:not-allowed;
  pointer-events:none;
  text-decoration:none;
}
.ycfc-digify-summary-slot.ycfc-digify-summary-slot-hidden{display:none;}


/* v1.0.55: cash carts must never expose the credit-only Digify action. */
.yc-fastcart-digify-slot[data-ycfc-digify-allowed="0"],
.ycfc-digify-summary-slot[data-ycfc-digify-allowed="0"],
.yc-fastcart-digify-slot.ycfc-digify-mode-disabled,
.ycfc-digify-summary-slot.ycfc-digify-mode-disabled,
.yc-fastcart-drawer .digifybwdk-cart-widget[data-ycfc-digify-allowed="0"],
#yc-fastcheckout-cart-page .digifybwdk-cart-widget[data-ycfc-digify-allowed="0"],
.yc-fastcart-drawer .digifybwdk-cart-widget.ycfc-digify-mode-disabled,
#yc-fastcheckout-cart-page .digifybwdk-cart-widget.ycfc-digify-mode-disabled {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* Cash split carts never expose third-party credit widgets, even before JS loads. */
[data-ycfc-split-cart="1"] .digifybwdk-cart-widget,
[data-ycfc-split-cart="1"] .yc-fastcart-digify-slot,
[data-ycfc-split-cart="1"] .ycfc-digify-summary-slot { display:none!important; pointer-events:none!important; }
