/* sadarbazardelhi Quick Checkout — Sugar / GoKwik style popup */
.qk-checkout {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.qk-checkout.is-open {
  display: flex;
}
.qk-checkout__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.qk-checkout__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(92vh, 760px);
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  font-family: inherit;
  color: #1a1a1a;
}
.qk-checkout__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.qk-checkout__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.qk-checkout__back,
.qk-checkout__close {
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #222;
  font-size: 16px;
  padding: 0;
}
.qk-checkout__back:hover,
.qk-checkout__close:hover {
  background: #f3f3f3;
}
.qk-checkout__logo {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}
.qk-checkout__logo-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
}
.qk-checkout__bag {
  text-align: right;
  cursor: pointer;
  user-select: none;
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
}
.qk-checkout__bag-count {
  display: block;
  font-size: 12px;
  color: #666;
  line-height: 1.2;
}
.qk-checkout__bag-total {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}
.qk-checkout__bag-total i {
  font-size: 11px;
  color: #888;
  transition: transform 200ms;
}
.qk-checkout__bag.is-expanded .qk-checkout__bag-total i {
  transform: rotate(180deg);
}
.qk-checkout__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  -webkit-overflow-scrolling: touch;
}
.qk-checkout__step {
  display: none;
}
.qk-checkout__step.is-active {
  display: block;
}
.qk-checkout__coupon {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.qk-checkout__coupon-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f4f4f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #444;
  font-size: 12px;
}
.qk-checkout__coupon-text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #333;
  line-height: 1.35;
}
.qk-checkout__coupon-text strong {
  font-weight: 700;
}
.qk-checkout__coupon-apply {
  border: none;
  background: transparent;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
}
.qk-checkout__coupon-form {
  display: none;
  gap: 8px;
  margin-bottom: 12px;
}
.qk-checkout__coupon-form.is-open {
  display: flex;
}
.qk-checkout__coupon-form input {
  flex: 1;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.qk-checkout__coupon-form button {
  border: none;
  background: #2b2b2b;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.qk-checkout__items {
  margin-bottom: 8px;
}
.qk-checkout__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.qk-checkout__item:last-child {
  border-bottom: none;
}
.qk-checkout__item-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #f5f5f5;
  flex-shrink: 0;
}
.qk-checkout__item-info {
  flex: 1;
  min-width: 0;
}
.qk-checkout__item-name {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qk-checkout__item-qty {
  margin: 0;
  font-size: 12px;
  color: #777;
}
.qk-checkout__item-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.qk-checkout__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.qk-checkout__qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.qk-checkout__qty-btn:disabled {
  color: #ccc;
  cursor: default;
}
.qk-checkout__qty-val {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.qk-checkout__remove {
  border: none;
  background: transparent;
  color: #c0392b;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.qk-checkout__item.is-busy {
  opacity: 0.55;
  pointer-events: none;
}
.qk-checkout__item-price {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.qk-checkout__totals {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 4px;
}
.qk-checkout__total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  color: #555;
}
.qk-checkout__total-row.is-pay {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.qk-checkout__total-row .is-free {
  color: #1a7f37;
  font-weight: 600;
}
.qk-checkout__trust {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}
.qk-checkout__trust-quote {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 6px;
  font-style: italic;
}
.qk-checkout__trust-author {
  font-size: 11px;
  color: #999;
  margin: 0 0 14px;
}
.qk-checkout__badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.qk-checkout__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #777;
  max-width: 80px;
  text-align: center;
  line-height: 1.2;
}
.qk-checkout__badge i {
  font-size: 16px;
  color: #555;
}
.qk-checkout__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
}
.qk-checkout__address-block {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fff;
}
.qk-checkout__address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.qk-checkout__address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.qk-checkout__address-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  background: #fafafa;
  margin: 0;
  transition: border-color 150ms, background 150ms;
}
.qk-checkout__address-option.is-selected,
.qk-checkout__address-option:has(input:checked) {
  border-color: #1a1a1a;
  background: #f3f3f3;
}
.qk-checkout__address-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.qk-checkout__address-check {
  width: 20px;
  height: 20px;
  border: 2px solid #bbb;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  background: #fff;
}
.qk-checkout__address-option.is-selected .qk-checkout__address-check,
.qk-checkout__address-option:has(input:checked) .qk-checkout__address-check {
  border-color: #1a1a1a;
  background: #1a1a1a;
}
.qk-checkout__address-option.is-selected .qk-checkout__address-check::after,
.qk-checkout__address-option:has(input:checked) .qk-checkout__address-check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.qk-checkout__address-body {
  flex: 1;
  min-width: 0;
}
.qk-checkout__address-body .name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: #111;
}
.qk-checkout__address-body .name em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #1a7f37;
  margin-left: 6px;
}
.qk-checkout__address-body .lines {
  display: block;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.qk-checkout__add-below {
  width: 100%;
  border: 1px dashed #1a1a1a;
  background: #fff;
  color: #1a1a1a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}
.qk-checkout__add-below:hover {
  background: #f7f7f7;
}
.qk-checkout__address-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fafafa;
}
.qk-checkout__address-card .name {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
}
.qk-checkout__address-card address {
  font-style: normal;
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  margin: 0;
}
.qk-checkout__address-empty {
  font-size: 13px;
  color: #888;
  margin: 0 0 12px;
}
.qk-checkout__addr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.qk-checkout__chip-btn {
  border: 1px solid #1a1a1a;
  background: #fff;
  color: #1a1a1a;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.qk-checkout__chip-btn.primary {
  background: #1a1a1a;
  color: #fff;
}
.qk-checkout__addr-form {
  display: none;
  margin-top: 8px;
}
.qk-checkout__addr-form.is-open {
  display: block;
}
.qk-checkout__addr-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.qk-checkout__addr-form input {
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  color: #333;
}
.qk-checkout__addr-form input:focus {
  border-color: #1a1a1a;
}
.qk-checkout__addr-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.qk-checkout__pay-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qk-checkout__pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
}
.qk-checkout__pay-option:has(input:checked) {
  border-color: #1a1a1a;
  background: #f7f7f7;
}
.qk-checkout__pay-option input {
  accent-color: #1a1a1a;
}
.qk-checkout__pay-option span {
  font-size: 14px;
  font-weight: 600;
}
.qk-checkout__notes {
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-top: 14px;
  resize: vertical;
  min-height: 72px;
  outline: none;
}
.qk-checkout__footer {
  flex-shrink: 0;
  border-top: 1px solid #eee;
  padding: 12px 16px 16px;
  background: #fff;
}
.qk-checkout__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
}
.qk-checkout__consent input {
  margin-top: 2px;
  accent-color: #1a1a1a;
}
.qk-checkout__footer-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.qk-checkout__shop-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 12px;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}
.qk-checkout__shop-btn:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}
.qk-checkout__cta {
  flex: 1.2;
  width: auto;
  border: none;
  border-radius: 10px;
  background: #2b2b2b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 200ms;
}
.qk-checkout__cta:hover {
  background: #111;
}
.qk-checkout__cta:disabled {
  background: #c8c8c8;
  cursor: not-allowed;
}
@media (max-width: 480px) {
  .qk-checkout__footer-actions {
    flex-direction: column-reverse;
  }
  .qk-checkout__shop-btn,
  .qk-checkout__cta {
    width: 100%;
    flex: none;
  }
}
.qk-checkout__legal {
  margin: 10px 0 0;
  font-size: 11px;
  color: #999;
  text-align: center;
  line-height: 1.4;
}
.qk-checkout__legal a {
  color: #666;
  text-decoration: underline;
}
.qk-checkout__account {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
}
.qk-checkout__account-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}
.qk-checkout__account-error {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8d7da;
  color: #721c24;
  font-size: 12px;
  line-height: 1.4;
}
.qk-checkout__account input {
  width: 100%;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  color: #333;
  background: #fff;
}
.qk-checkout__account input:focus {
  border-color: #1a1a1a;
}
.qk-checkout__account .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.qk-checkout__account-switch {
  border: none;
  background: transparent;
  padding: 0;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
body.qk-checkout-open {
  overflow: hidden;
}
@media (max-width: 480px) {
  .qk-checkout {
    padding: 0;
    align-items: flex-end;
  }
  .qk-checkout__panel {
    max-width: 100%;
    max-height: 96vh;
    border-radius: 16px 16px 0 0;
  }
  .qk-checkout__addr-form .row-2,
  .qk-checkout__account .row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
