/**
 * Zarsim Gift Options — checkout panel (RTL)
 * Compact cart-like panel + Woodmart-style VIP progress box + postcard modal.
 */

.zgo-gift-options {
  --zgo-ink: #1c1410;
  --zgo-muted: #6b5e54;
  --zgo-line: #e7dfd4;
  --zgo-bg: #f6f3ee;
  --zgo-card: #ffffff;
  --zgo-accent: #9a7040;
  --zgo-accent-soft: #f3eadc;
  --zgo-success: #3d6b4f;
  --zgo-danger: #b42318;
  --zgo-radius: 4px;
  --zgo-shadow: 0 1px 0 rgba(28, 20, 16, 0.04);
  --zgo-stripe: repeating-linear-gradient(
    -45deg,
    var(--zgo-accent),
    var(--zgo-accent) 6px,
    #b8925c 6px,
    #b8925c 12px
  );
  direction: rtl;
  margin: 0 0 1.25rem;
  font-family: inherit;
  color: var(--zgo-ink);
}

/*
 * Cart page (Woodmart): .cart-content-wrapper is flex-wrap.
 * Desktop (≥1025): gift options + cart totals side-by-side; cart form full-width above.
 * Mobile/tablet: stacked full-width (theme default flex:1 1 100%).
 */
@media (min-width: 1025px) {
  body.woocommerce-cart .cart-content-wrapper > .woocommerce-cart-form {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  body.woocommerce-cart .cart-content-wrapper > .zgo-gift-options,
  body.woocommerce-cart .cart-content-wrapper > .cart_totals {
    flex: 1 1 0 !important;
    max-width: calc(50% - (var(--wd-col-gap, 30px) / 2)) !important;
    width: auto;
    margin: 0;
    align-self: stretch;
  }

  body.woocommerce-cart .cart-content-wrapper > .zgo-gift-options {
    background: transparent;
    display: flex;
    flex-direction: column;
  }

  body.woocommerce-cart .cart-content-wrapper > .zgo-gift-options > .zgo-gift-options__inner {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    height: 100%;
    box-sizing: border-box;
  }

  /* Stretch cart totals box to match gift-options height; pin CTA to bottom. */
  body.woocommerce-cart .cart-content-wrapper > .cart_totals {
    display: flex;
    flex-direction: column;
  }

  body.woocommerce-cart .cart-content-wrapper > .cart_totals > .cart-totals-inner {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  body.woocommerce-cart .cart-content-wrapper > .cart_totals .wc-proceed-to-checkout {
    margin-top: auto;
    padding-top: 1rem;
  }

  /* Slightly larger amounts so the totals column feels balanced. */
  body.woocommerce-cart .cart-content-wrapper > .cart_totals .cart-totals-inner > h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }

  body.woocommerce-cart .cart-content-wrapper > .cart_totals .shop_table th,
  body.woocommerce-cart .cart-content-wrapper > .cart_totals .shop_table td {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    font-size: 1.05rem;
  }

  body.woocommerce-cart .cart-content-wrapper > .cart_totals .shop_table .amount {
    font-size: 1.2em;
    font-weight: 600;
  }

  body.woocommerce-cart .cart-content-wrapper > .cart_totals .shop_table .order-total th,
  body.woocommerce-cart .cart-content-wrapper > .cart_totals .shop_table .order-total td {
    font-size: 1.15rem;
  }

  body.woocommerce-cart .cart-content-wrapper > .cart_totals .shop_table .order-total .amount {
    font-size: 1.45em;
    font-weight: 700;
  }
}

@media (max-width: 1024px) {
  body.woocommerce-cart .cart-content-wrapper > .zgo-gift-options > .zgo-gift-options__inner {
    width: 100%;
  }
}

/* Main panel — dense cart-totals-style box */
.zgo-gift-options__inner {
  background: var(--zgo-card);
  border: 1px solid var(--zgo-line);
  border-radius: var(--zgo-radius);
  box-shadow: var(--zgo-shadow);
  overflow: hidden;
}

.zgo-gift-options__header {
  padding: 0.75rem 1rem 0.55rem;
  background: #fff;
  border-bottom: 1px solid var(--zgo-line);
}

.zgo-gift-options__title {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 700;
}

.zgo-gift-options__subtitle {
  margin: 0;
  font-size: 0.78rem;
  color: var(--zgo-muted);
}

.zgo-gift-options__body {
  padding: 0;
}

.zgo-option {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--zgo-line);
}

.zgo-option:last-child {
  border-bottom: none;
}

.zgo-option__label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  margin: 0;
}

.zgo-option__checkbox {
  margin-top: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--zgo-accent);
  flex-shrink: 0;
}

.zgo-option__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.zgo-option__name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
}

.zgo-option__hint {
  font-size: 0.75rem;
  color: var(--zgo-muted);
  line-height: 1.4;
}

.zgo-option__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.zgo-link,
.zgo-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--zgo-accent);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Compact postcard summary — less empty space */
.zgo-postcard-summary {
  display: none;
  margin-top: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: var(--zgo-bg);
  border: 1px solid var(--zgo-line);
  border-radius: var(--zgo-radius);
  font-size: 0.8rem;
  line-height: 1.4;
}

.zgo-postcard-summary.is-visible {
  display: block;
}

.zgo-postcard-summary__design {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.zgo-postcard-summary__message {
  margin: 0.3rem 0 0;
  color: var(--zgo-muted);
  white-space: pre-wrap;
}

/* VIP — one dashed box like free-shipping progress */
.zgo-option--vip {
  padding: 0.7rem 1rem;
  background: transparent;
}

.zgo-vip-box {
  border: 1px dashed #cfc5b8;
  border-radius: var(--zgo-radius);
  padding: 0.65rem 0.75rem 0.7rem;
  background: #fff;
}

.zgo-option--vip .zgo-option__head {
  margin-bottom: 0.4rem;
}

.zgo-option--vip .zgo-option__name {
  font-size: 0.88rem;
}

/* Progress bar — Woodmart free-shipping visual parity */
.zgo-progress {
  margin: 0 0 0.55rem;
}

.zgo-progress__message {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: var(--zgo-ink);
  line-height: 1.45;
}

.zgo-progress__message .woocommerce-Price-amount,
.zgo-progress__message bdi,
.zgo-progress__message .amount {
  color: var(--zgo-accent);
  font-weight: 600;
}

.zgo-progress.is-complete .zgo-progress__message {
  color: var(--zgo-success);
  font-weight: 600;
}

.zgo-progress__track {
  height: 8px;
  background: #ece7e0;
  border-radius: 999px;
  overflow: hidden;
}

.zgo-progress__fill {
  height: 100%;
  background: var(--zgo-stripe);
  border-radius: 999px;
  transition: width 0.4s ease;
  min-width: 0;
}

.zgo-progress.is-complete .zgo-progress__fill {
  background: linear-gradient(90deg, #7d9a7a, var(--zgo-success));
}

/* VIP Packaging Preview (Image + Description + Link) */
.zgo-vip-preview {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.65rem 0 0.75rem;
  padding: 0.65rem;
  background: var(--zgo-bg, #faf8f5);
  border: 1px solid #e8e2d8;
  border-radius: var(--zgo-radius, 8px);
}

.zgo-vip-preview__img-wrap {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfd8cc;
}

.zgo-vip-preview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zgo-vip-preview__content {
  flex: 1;
  min-width: 0;
}

.zgo-vip-preview__title {
  margin: 0 0 0.2rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--zgo-ink, #222);
  line-height: 1.35;
}

.zgo-vip-preview__desc {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: var(--zgo-muted, #666);
  line-height: 1.45;
}

.zgo-vip-preview__link {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--zgo-accent, #90734c);
  text-decoration: underline;
  font-weight: 600;
}

.zgo-vip-preview__link:hover {
  color: var(--zgo-ink, #222);
}

@media (max-width: 480px) {
  .zgo-vip-preview {
    flex-direction: column;
    align-items: flex-start;
  }
  .zgo-vip-preview__img-wrap {
    width: 100%;
    height: 120px;
  }
}

.zgo-vip-free-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.25rem 0.55rem;
  background: var(--zgo-accent-soft);
  color: var(--zgo-accent);
  border-radius: var(--zgo-radius);
  font-size: 0.78rem;
  font-weight: 600;
}

.zgo-vip-paid__label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--zgo-muted);
  line-height: 1.4;
}

.zgo-vip-paid__label .woocommerce-Price-amount,
.zgo-vip-paid__label bdi,
.zgo-vip-paid__label .amount {
  color: var(--zgo-accent);
  font-weight: 600;
}

.zgo-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--zgo-line);
  border-radius: var(--zgo-radius);
  overflow: hidden;
  background: #fff;
}

.zgo-qty__btn {
  width: 2rem;
  height: 2rem;
  border: none;
  background: var(--zgo-bg);
  font-size: 1rem;
  cursor: pointer;
  color: var(--zgo-ink);
}

.zgo-qty__btn:hover {
  background: var(--zgo-accent-soft);
  color: var(--zgo-accent);
}

.zgo-qty__input {
  width: 2.5rem;
  height: 2rem;
  border: none;
  border-inline: 1px solid var(--zgo-line);
  text-align: center;
  font-size: 0.9rem;
  -moz-appearance: textfield;
}

.zgo-qty__input::-webkit-outer-spin-button,
.zgo-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.zgo-vip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.zgo-vip-buy {
  margin: 0;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

/* Buttons */
.zgo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.zgo-btn:active {
  transform: translateY(1px);
}

.zgo-btn--primary {
  background: var(--zgo-ink);
  color: #f6f1e8;
}

.zgo-btn--primary:hover {
  background: #3a2c22;
}

.zgo-btn--secondary {
  background: var(--zgo-bg);
  color: var(--zgo-ink);
  border-color: var(--zgo-line);
}

.zgo-btn--secondary:hover {
  background: var(--zgo-accent-soft);
  color: var(--zgo-accent);
  border-color: transparent;
}

.zgo-btn--ghost {
  background: transparent;
  border-color: var(--zgo-line);
  color: var(--zgo-muted);
}

/* Modal — premium minimal */
.zgo-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.zgo-modal[hidden] {
  display: none !important;
}

.zgo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 16, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.zgo-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: none;
  overflow: visible;
  background: #fbfaf7;
  border: 1px solid rgba(28, 20, 16, 0.08);
  border-radius: 6px;
  padding: 1.15rem 1.15rem 1.1rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 24px 64px rgba(28, 20, 16, 0.22);
  direction: rtl;
  animation: zgo-modal-in 0.28s ease;
}

@keyframes zgo-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.zgo-modal__header {
  display: block;
  margin: 0 0 0.95rem;
  padding: 0;
  text-align: right;
}

.zgo-modal__close {
  float: left;
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0 0 0.35rem;
  padding: 0;
  border: 1px solid rgba(28, 20, 16, 0.12);
  border-radius: 50%;
  background: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--zgo-muted);
}

.zgo-modal__close:hover {
  background: var(--zgo-ink);
  border-color: var(--zgo-ink);
  color: #f6f1e8;
}

.zgo-modal__title {
  display: block !important;
  width: 100%;
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--zgo-ink);
  padding: 0;
}

.zgo-modal__hint {
  display: block !important;
  width: 100%;
  margin: 0;
  font-size: 0.8rem;
  color: var(--zgo-muted);
  line-height: 1.45;
}

/* Design picker */
.zgo-design-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem 0.65rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

.zgo-design-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  transition: opacity 0.2s ease;
}

.zgo-design-grid:has(.zgo-design-item.is-selected) .zgo-design-item:not(.is-selected),
.zgo-design-grid.has-selection .zgo-design-item:not(.is-selected) {
  opacity: 0.55;
}

.zgo-design-grid:has(.zgo-design-item.is-selected) .zgo-design-item:not(.is-selected):hover,
.zgo-design-grid.has-selection .zgo-design-item:not(.is-selected):hover {
  opacity: 0.85;
}

.zgo-design-card-frame {
  position: relative;
  width: 100%;
  line-height: 0;
}

.zgo-design-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(28, 20, 16, 0.1);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 2px rgba(28, 20, 16, 0.04);
  transform: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}

.zgo-design-card:hover {
  border-color: rgba(154, 112, 64, 0.5);
  box-shadow: 0 8px 22px rgba(28, 20, 16, 0.1);
}

.zgo-design-card:focus-visible {
  outline: 2px solid var(--zgo-accent);
  outline-offset: 2px;
}

.zgo-design-item.is-selected .zgo-design-card,
.zgo-design-card.is-selected {
  border-color: var(--zgo-accent);
  box-shadow:
    0 0 0 2px rgba(154, 112, 64, 0.35),
    0 8px 20px rgba(154, 112, 64, 0.16);
  transform: none;
}

.zgo-design-card__preview {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #f3efe8 0%, #e8e0d4 100%);
  margin: 0;
}

.zgo-design-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none;
}

.zgo-design-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.8rem;
  color: var(--zgo-muted);
  line-height: 1.3;
}

/* تیک انتخاب — گوشه راست‌بالا روی تصویر */
.zgo-design-card__check {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  left: auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--zgo-accent);
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(28, 20, 16, 0.3);
  z-index: 2;
}

.zgo-design-card__check::before {
  content: "";
  position: absolute;
  inset: 0;
  background: no-repeat center / 0.7rem 0.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2L6.4 11.1L12.5 4.9' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.zgo-design-item.is-selected .zgo-design-card__check,
.zgo-design-card.is-selected .zgo-design-card__check {
  opacity: 1;
  transform: scale(1);
}

/* ذره‌بین — گوشه چپ‌پایین تصویر؛ آیکون با background تا قالب SVG را پنهان نکند */
.zgo-design-card__zoom {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  bottom: 0.4rem !important;
  left: 0.4rem !important;
  z-index: 3;
  display: block !important;
  width: 1.7rem !important;
  height: 1.7rem !important;
  min-width: 1.7rem !important;
  min-height: 1.7rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background-color: rgba(28, 20, 16, 0.78) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='10.5' cy='10.5' r='6.1' stroke='%23f6f1e8' stroke-width='2'/%3E%3Cpath d='M15.15 15.15L20 20' stroke='%23f6f1e8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 0.95rem 0.95rem !important;
  box-shadow: 0 2px 8px rgba(28, 20, 16, 0.28);
  cursor: zoom-in;
  opacity: 1;
  visibility: visible;
  line-height: 0 !important;
  float: none !important;
}

.zgo-design-card__zoom:hover,
.zgo-design-card__zoom:focus-visible {
  background-color: #1c1410 !important;
}

.zgo-design-card__zoom svg,
.zgo-design-card__zoom-svg {
  display: none !important;
}

/* Label under card (not beside) */
.zgo-design-card__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--zgo-ink);
  line-height: 1.3;
  text-align: center;
}

.zgo-design-item.is-selected .zgo-design-card__label {
  color: var(--zgo-accent);
}

.zgo-design-card__status {
  display: block;
  min-height: 1em;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--zgo-accent);
  text-align: center;
  line-height: 1;
  visibility: hidden;
}

.zgo-design-item.is-selected .zgo-design-card__status {
  visibility: visible;
}

.zgo-message-field__label {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--zgo-ink);
}

.zgo-message-field__optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--zgo-muted);
}

.zgo-message-field__input {
  width: 100%;
  border: 1px solid rgba(28, 20, 16, 0.12);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  resize: vertical;
  min-height: 3.25rem;
  background: #fff;
  color: var(--zgo-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.zgo-message-field__input:focus {
  outline: none;
  border-color: var(--zgo-accent);
  box-shadow: 0 0 0 3px rgba(154, 112, 64, 0.15);
}

.zgo-message-field__input.is-invalid {
  border-color: var(--zgo-danger);
}

.zgo-message-field__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--zgo-muted);
}

.zgo-message-field__note {
  color: var(--zgo-muted);
}

.zgo-modal__actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(28, 20, 16, 0.08);
}

.zgo-modal__actions .zgo-btn--primary {
  min-width: 7.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.zgo-modal__actions .zgo-btn--ghost {
  border-color: transparent;
  background: transparent;
}

.zgo-modal__actions .zgo-btn--ghost:hover {
  background: rgba(28, 20, 16, 0.04);
  color: var(--zgo-ink);
}

/* Lightbox — full preview */
.zgo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.zgo-lightbox[hidden] {
  display: none !important;
}

.zgo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.zgo-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: 90vh;
  background: #fff;
  border-radius: 6px;
  padding: 0.75rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  direction: rtl;
  animation: zgo-modal-in 0.25s ease;
}

.zgo-lightbox__close {
  float: left;
  position: static;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  margin: 0 0 0.4rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(28, 20, 16, 0.75);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.zgo-lightbox__img {
  clear: both;
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(90vh - 4rem);
  object-fit: contain;
  border-radius: 3px;
  background: #f3efe8;
}

.zgo-lightbox__caption {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--zgo-ink);
}

.zgo-gift-options.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

body.zgo-modal-open {
  overflow: hidden;
}

.zgo-order-display {
  margin: 1.5rem 0;
  direction: rtl;
  text-align: right;
}

.zgo-order-display__title {
  margin: 0 0 0.5rem;
}

.zgo-order-display__table {
  width: 100%;
  border-collapse: collapse;
  direction: rtl;
}

.zgo-order-display__row th,
.zgo-order-display__row td {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--zgo-line, #e5e5e5);
  vertical-align: baseline;
}

.zgo-order-display__label {
  font-weight: 600;
  text-align: right;
  unicode-bidi: isolate;
  padding-left: 1rem;
}

.zgo-order-display__value {
  text-align: left;
  white-space: nowrap;
  unicode-bidi: isolate;
}

@media (max-width: 480px) {
  .zgo-design-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem 0.4rem;
  }

  .zgo-design-card__label {
    font-size: 0.72rem;
  }

  .zgo-modal__dialog {
    padding: 1rem 0.9rem 0.95rem;
    overflow: visible;
  }

  .zgo-vip-buy {
    display: block;
    margin-inline-start: 0;
    width: 100%;
  }
}
