/* public-order-selection.css
   Photo selection, gating, CTA and addon variants for web/public_orders. */

.js-go-photos,
.js-toggle-comment {
  border-radius: var(--fx-radius-pill) !important;
  padding: 0.85rem 1.5rem !important;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.15s ease;
}

.js-go-photos {
  box-shadow: 0 3px 8px rgba(0, 0, 0, .16), 0 1px 3px rgba(0, 0, 0, .08);
}

.js-go-photos:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2), 0 2px 4px rgba(0, 0, 0, .1);
}

.js-toggle-comment {
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.js-toggle-comment:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.js-toggle-comment.has-comment {
  opacity: 0.5;
}

.gate-wrap,
.gate-locked {
  position: relative;
}

.gate-locked [data-gated] {
  filter: grayscale(10%) opacity(.85);
}

#gatedArea.gate-locked {
  pointer-events: none;
}

#gatedArea.gate-unlocked {
  pointer-events: auto;
}

.action-tile {
  border-radius: var(--fx-radius-lg, 999px);
  background-color: var(--fx-surface-subtle, #fff);
  border: 1px solid var(--fx-border-soft, #e5e5e5);
  padding: 0.85rem 1rem;
  box-shadow: var(--fx-shadow-soft, 0 1px 2px rgba(15, 23, 42, 0.06));
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease, background-color 0.08s ease;
}

.action-tile:hover {
  transform: translateY(-1px);
  background-color: var(--fx-surface-hover, #fffaf5);
  border-color: var(--bs-primary);
  box-shadow: var(--fx-shadow-md, 0 6px 18px rgba(15, 23, 42, 0.12));
}

.action-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fx-pill-bg, rgba(253, 186, 116, 0.16));
}

.action-icon i {
  font-size: 1.25rem;
  color: var(--bs-primary);
}

#public-orders-start-photos .cta-start-photos,
.mobile-cta-wrapper .cta-start-photos {
  --bs-btn-bg: var(--primary, #E07A3F);
  --bs-btn-border-color: var(--primary, #E07A3F);
  --bs-btn-hover-bg: var(--primary-hover, #D66A33);
  --bs-btn-hover-border-color: var(--primary-hover, #D66A33);
  --bs-btn-color: var(--surface);
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-border-radius: 1rem;
  --bs-btn-font-weight: 600;
}

#public-orders-start-photos .cta-start-photos {
  min-height: 4.5rem;
  --bs-btn-padding-y: 1rem;
  --bs-btn-font-size: 1.125rem;
  box-shadow: 0 8px 24px rgba(224, 122, 63, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#public-orders-start-photos .cta-start-photos:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(224, 122, 63, 0.36);
}

#public-orders-start-photos .cta-start-photos:active {
  transform: translateY(0);
}

.cta-start-photos:focus-visible {
  outline: 3px solid #ffd666;
  outline-offset: 2px;
}

.mobile-cta-wrapper {
  background: linear-gradient(to top, rgba(247, 245, 242, 0.98) 0%, rgba(247, 245, 242, 0.95) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  z-index: 1000;
  pointer-events: none;
}

.mobile-cta-wrapper .cta-start-photos {
  pointer-events: auto;
  --bs-btn-padding-y: 0.875rem;
  --bs-btn-font-size: 1.0625rem;
  box-shadow: 0 4px 16px rgba(224, 122, 63, 0.32);
}

.mobile-cta-wrapper .cta-start-photos:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 122, 63, 0.4);
}

.price-pill.is-muted {
  opacity: .85;
}

.photo-addon-body {
  border-top: 1px solid rgba(0, 0, 0, .06);
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-addon-desc {
  font-size: 16px;
  color: #4b5563;
  line-height: 1.4;
}

.variants {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.variant {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 22px;
  padding: 14px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.variant:hover {
  border-color: rgba(0, 0, 0, .16);
}

.variant > input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.variant-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.variant-title {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
}

.variant-sub {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.25;
}

.variant-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.variant-pricebox {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 120px;
}

.variant-price-normal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #f9fafb;
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
}

.variant-price-list {
  color: var(--ink);
}

.variant-price-list.is-strike {
  color: #9ca3af;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(0, 0, 0, .25);
}

.variant-price-effective {
  color: #111827;
}

.variant-currency {
  color: currentColor;
}

.variant-chip-gift:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(224, 122, 63, .25);
  background: rgba(224, 122, 63, .10);
  color: #8a4d18;
  font-weight: 900;
  font-size: 14px;
}

.variant-gift-note:not([hidden]) {
  font-size: 13px;
  color: #6b7280;
}

.variant-pricebox:has(.variant-chip-gift:not([hidden])) .variant-price-normal {
  display: none;
}

.variant-switch {
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: #e5e7eb;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  flex: 0 0 auto;
}

.variant-switch::after {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform .18s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

.variant:has(> input[type="checkbox"]:checked) {
  border-color: rgba(224, 122, 63, .55);
  box-shadow: 0 10px 24px rgba(224, 122, 63, .14);
  transform: translateY(-1px);
}

.variant:has(> input[type="checkbox"]:checked) .variant-switch {
  background: #e07a3f;
}

.variant:has(> input[type="checkbox"]:checked) .variant-switch::after {
  transform: translateX(24px);
}

.photo-addon-hint {
  margin-top: 2px;
  font-size: 14px;
  color: #6b7280;
}

@media (max-width: 820px) {
  .photo-addon-head {
    flex-direction: column;
    gap: 10px;
  }

  .photo-addon-chips {
    flex-direction: row;
    align-items: center;
  }

  .variant {
    grid-template-columns: 1fr;
  }

  .variant-right {
    justify-content: space-between;
  }

  .variant-pricebox {
    align-items: flex-start;
  }
}

.spread-card[data-min="0"][data-max="0"] .js-go-photos,
.spread-card[data-min="0"][data-max="0"] .js-go-photos-wrapper {
  display: none;
}

.extra-spread .badge {
  background-color: var(--fx-extra-accent);
}

.extra-spread .js-toggle-comment {
  background-color: var(--bs-body-bg);
}

.extra-spread .turn-comment-input,
.extra-spread .btn-light,
.extra-spread .js-toggle-comment,
.extra-spread .btn-outline-secondary,
.extra-spread .btn-outline-danger {
  border-color: var(--extra-border);
}

.oa-problem-link + .oa-problem-link,
.oa-payment-link + .oa-payment-link {
  border-top: 1px solid var(--line);
}
