:root {
  --gift-forest: #1a3a2a;
  --gift-forest-mid: #2c5240;
  --gift-cream: #f7f2e8;
  --gift-dark: #12241c;
  --gift-text: #e8ece9;
  --gift-text-muted: #9db3a5;
  --gift-accent: #c4952a;
  --gift-accent-hover: #d9aa42;
  --gift-border: #2c5240;
  --gift-red: #b5453d;
  --gift-green: #4a9d6f;

  /* Spacing scale - used for new/touched rules; existing values aren't
     mass-migrated, this just keeps new work consistent. */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.28);
  --shadow-card-hover: 0 2px 4px rgba(0,0,0,0.24), 0 12px 32px rgba(0,0,0,0.34);
}

/* Brand typeface for the builder's optional copy line (js/gifting.js's
   #copy-font dropdown - index.php) - self-hosted since Avenir Next isn't a
   Google Font. The actual @font-face rules live in fonts/fonts.css
   (Transfonter's own generated output, one "Avenir Next" family
   distinguished by real font-weight/font-style values, not fake per-weight
   family names) - linked directly from index.php's <head> rather than
   duplicated/re-typed here, so it never drifts from whatever's actually in
   fonts/. */

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--gift-dark);
  color: var(--gift-text);
  font-family: 'DM Sans', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gift-accent);
  outline-offset: 2px;
}

.gift-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--gift-border);
  position: relative;
  background: var(--gift-forest);
}

.gift-nav-link {
  background: none;
  border: none;
  color: var(--gift-text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.gift-nav-link:hover {
  color: var(--gift-accent);
  background: rgba(196, 149, 42, 0.08);
}

.gift-nav-active {
  color: var(--gift-accent);
}

.gift-nav-dropdown {
  position: relative;
}

.gift-nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: var(--sp-1);
  min-width: 240px;
  background: var(--gift-forest-mid);
  border: 1px solid var(--gift-border);
  border-radius: var(--radius-md);
  padding: var(--sp-2);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-card);
}

.gift-nav-dropdown-panel a {
  color: var(--gift-text);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 5px;
}

.gift-nav-dropdown-panel a:hover {
  background: rgba(196, 149, 42, 0.12);
}

.gift-nav-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  background: none;
  color: var(--gift-text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 5px;
}

.gift-nav-close:hover {
  color: var(--gift-text);
  background: rgba(255, 255, 255, 0.08);
}

.gift-nav-empty {
  color: var(--gift-text-muted);
  font-size: 13px;
  padding: 6px 8px;
}

.gift-nav-view-all {
  border-top: 1px solid var(--gift-border);
  margin-top: 4px;
  padding-top: 8px !important;
}

.gift-header {
  padding: var(--sp-7) var(--sp-5) var(--sp-4);
  text-align: center;
}

.gift-header-eyebrow {
  color: var(--gift-accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gift-header h1 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: var(--sp-2) 0 var(--sp-2);
}

.gift-header p {
  color: var(--gift-text-muted);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
}

.gift-app {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-5) 64px;
  align-items: flex-start;
  justify-content: center;
}

.gift-mockup-col,
.gift-canvas-col {
  flex: 0 0 auto;
}

/* Fixed 260px canvas/mockup width by design - mockup-overlay's per-layout
   top/left offsets below are hand-tuned pixel values against this exact
   width, so it stays constant across breakpoints rather than becoming
   fluid; mobile support is `.gift-app` stacking to a single column
   (see the @media block at the end of this file), not resizing this. */
.gift-canvas {
  position: relative;
  width: 260px;
  aspect-ratio: 149.9 / 480.73;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.logo-slot {
  position: absolute;
  /* left/width inset by a ~3mm gutter from the die-cut edges (mis-cutting
     risk) - mirrors SLOT_LEFT_PCT/SLOT_WIDTH_PCT in js/gifting.js */
  left: 5.66%;
  width: 88.68%;
  top: 37.03%;
  height: 24.56%;
  border: 1px dashed rgba(255,255,255,0.35);
}

.logo-slot-label {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}

.logo-drag {
  position: absolute;
  cursor: move;
  border: 1px solid var(--gift-accent);
}

.logo-drag img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.logo-resize-handle {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--gift-accent);
  border: 1px solid #000;
  cursor: nwse-resize;
}

.text-drag {
  position: absolute;
  cursor: move;
  transform: translate(-50%, -50%);
  padding: 2px 5px;
  border: 1px dashed transparent;
}

/* Each wrapped line is its own block child (js/gifting.js) so alignment and
   justify can be set per line - white-space:nowrap here just stops a line
   the wrap already fit from being re-broken by float-rounding. */
.text-drag > div {
  white-space: nowrap;
}

.text-drag:hover {
  border-color: var(--gift-accent);
}

.snap-line {
  position: absolute;
  background: var(--gift-accent);
  display: none;
  pointer-events: none;
  z-index: 20;
}

.snap-line-v {
  top: 0;
  bottom: 0;
  width: 1px;
}

.snap-line-h {
  left: 0;
  right: 0;
  height: 1px;
}

.gift-controls-col {
  flex: 1 1 360px;
  max-width: 460px;
  width: 100%;
}

.gift-panel {
  background: var(--gift-forest-mid);
  border: 1px solid var(--gift-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-card);
}

.gift-panel h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gift-accent);
  margin-bottom: var(--sp-3);
}

.gift-panel-subhead {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--gift-border);
}

/* Deliberately more separated from "Add another pack size" above it than
   the rest of this step's spacing - a mis-click here submits the whole
   batch, so it needs to read as a distinct, later zone, not the next
   button in the same list. */
.gift-submit-zone {
  margin-top: var(--sp-6);
}

.gift-preview-required-hint {
  color: var(--gift-accent);
}

.gift-progress {
  display: flex;
  list-style: none;
  gap: var(--sp-1);
  margin-bottom: var(--sp-4);
  background: var(--gift-forest-mid);
  border: 1px solid var(--gift-border);
  border-radius: var(--radius-md);
  padding: var(--sp-2);
  box-shadow: var(--shadow-card);
}

.gift-progress-step {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--gift-text-muted);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.gift-progress-step:hover {
  background: rgba(196, 149, 42, 0.08);
}

.gift-progress-step.active {
  color: var(--gift-text);
}

.gift-progress-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gift-dark);
  border: 1px solid var(--gift-border);
  font-size: 11px;
}

.gift-progress-step.active .gift-progress-num {
  background: var(--gift-accent);
  border-color: var(--gift-accent);
  color: #1d1d1b;
}

.gift-step-nav {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.gift-step-nav .gift-btn-primary, .gift-step-nav .gift-btn-secondary {
  margin-top: 0;
}

.gift-step-next {
  margin-top: var(--sp-4);
}

.swatch-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  cursor: pointer;
  padding: 0;
}

.swatch-chip.active {
  border-color: var(--gift-accent);
}

/* Native <input type="color"> - a real OS/browser color wheel or slider
   with zero custom-built picker code. Cross-browser styling of this input
   is notoriously inconsistent, so this is deliberately light-touch: just
   round it to match the other chips and strip whatever inner border the
   browser adds, rather than fighting each engine's own swatch rendering. */
.swatch-chip-custom {
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  overflow: hidden;
}

.swatch-chip-custom::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}

.swatch-chip-custom::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.swatch-chip-custom::-moz-color-swatch {
  border: none;
  border-radius: 50%;
}

.layout-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid var(--gift-border);
  background: var(--gift-dark);
  color: var(--gift-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.layout-chip-price {
  font-size: 11px;
  font-weight: 400;
  color: var(--gift-text-muted);
}

.layout-chip:hover {
  border-color: var(--gift-accent);
  background: rgba(196, 149, 42, 0.1);
}

.layout-chip.active {
  border-color: var(--gift-accent);
  background: rgba(196, 149, 42, 0.16);
  color: var(--gift-accent);
  font-weight: 600;
}

/* Already in the order - picking it again would just overwrite the same
   queue entry, so it's locked out to steer toward a genuinely different
   pack size for the next add. */
.layout-chip.layout-chip-added {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.layout-chip.layout-chip-added:hover {
  border-color: var(--gift-border);
  background: var(--gift-dark);
}

.gift-queue-preview-wrap {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--gift-border);
}

.layout-chip-divider {
  flex-basis: 100%;
  height: 1px;
  margin: 2px 0;
  background: var(--gift-border);
  opacity: 0.6;
}

.gift-hint {
  color: var(--gift-text-muted);
  font-size: 13px;
  margin-top: 8px;
}

.gift-upload-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gift-text);
}

.gift-spinner {
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid var(--gift-border);
  border-top-color: var(--gift-accent);
  border-radius: 50%;
  animation: gift-spin 0.7s linear infinite;
}

.gift-upload-status-error {
  color: var(--gift-red);
  background-color: white;
  border-radius: 8px;
  padding: 10px;
}

@keyframes gift-spin {
  to { transform: rotate(360deg); }
}

input[type="text"], input[type="file"], select, textarea {
  width: 100%;
  background: var(--gift-dark);
  border: 1px solid var(--gift-border);
  color: var(--gift-text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease;
}

input[type="text"]:focus, select:focus, textarea:focus {
  border-color: var(--gift-accent);
  outline: none;
}

textarea {
  resize: vertical;
}

.gift-align-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.gift-align-btn {
  flex: 1 1 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--gift-border);
  background: var(--gift-dark);
  color: var(--gift-text);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.gift-align-btn:hover {
  border-color: var(--gift-accent);
}

.gift-align-btn.active {
  border-color: var(--gift-accent);
  background: rgba(196, 149, 42, 0.16);
  color: var(--gift-accent);
  font-weight: 600;
}

.gift-slider-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.gift-slider-group label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 140px;
  font-size: 12px;
  color: var(--gift-text-muted);
}

.gift-slider-group input[type="range"] {
  width: 100%;
}

.gift-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--gift-text-muted);
  cursor: pointer;
}

.gift-checkbox-row input {
  cursor: pointer;
}

.gift-field-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.gift-field-row select {
  flex: 1 1 auto;
}

.gift-field-row input[type="range"] {
  flex: 0 0 90px;
}

.gift-btn-primary {
  width: 100%;
  background: var(--gift-accent);
  color: #1d1d1b;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.gift-btn-primary:hover:not(:disabled) {
  background: var(--gift-accent-hover);
}

.gift-btn-primary:active:not(:disabled) {
  transform: scale(0.99);
}

.gift-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gift-btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--gift-text);
  border: 1px solid var(--gift-border);
  padding: 11px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  margin-top: var(--sp-2);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.gift-btn-secondary:hover {
  border-color: var(--gift-accent);
  color: var(--gift-accent);
}

.gift-queue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.gift-queue-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gift-dark);
  border: 1px solid var(--gift-border);
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
  font-size: 13px;
}

.gift-queue-remove {
  background: none;
  border: none;
  color: var(--gift-text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.gift-queue-remove:hover {
  color: var(--gift-red, #b5453d);
}

/* Dedicated post-submit screen (js/gifting.js's giftShowSubmissionResult)
   - replaces the whole builder rather than sharing space with the now-
   irrelevant canvas/mockup columns. */
.gift-success-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--sp-5) 64px;
}

.gift-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(196, 149, 42, 0.15);
  color: var(--gift-accent);
  font-size: 18px;
  margin-bottom: var(--sp-3);
}

.gift-success-card {
  margin-top: var(--sp-5);
}

.gift-submitted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.gift-submitted-card {
  text-align: center;
}

.gift-submitted-thumb {
  width: 100%;
  aspect-ratio: 149.9 / 480.73;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gift-border);
  background: #000;
  margin-bottom: var(--sp-2);
}

.gift-submitted-name {
  font-size: 12px;
  color: var(--gift-text-muted);
}

.gift-success-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.gift-success-actions .gift-btn-primary, .gift-success-actions .gift-btn-secondary {
  margin-top: 0;
  text-align: center;
  text-decoration: none;
}

.gift-mockup-heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gift-accent);
  margin-bottom: 10px;
}

.gift-hint-inline {
  color: var(--gift-text-muted);
  text-transform: none;
  font-size: 13px;
  letter-spacing: normal;
}

.mockup-wrap {
  position: relative;
  width: 260px;
}

.mockup-photo {
  width: 100%;
  display: block;
  border-radius: 6px;
}

/* Placement of the label over the jar photo - set these to match where
   the real label actually sits (this is independent of the print
   pipeline, purely a visual mockup). aspect-ratio keeps the label from
   distorting regardless of what width you set. */
.mockup-overlay {
  position: absolute;
}

.mockup-overlay[data-layout="large-jar"] {
  aspect-ratio: 149.9 / 480.73;
  top: 120px;
  left: 85px;
  width: 33%;
}

.mockup-overlay[data-layout="large-pack"] {
  aspect-ratio: 149.9 / 480.73;
  top: 106px;
  left: 152px;
  width: 25%;
}

.mockup-overlay[data-layout="large-jar-festive"] {
  aspect-ratio: 149.9 / 480.73;
  top: 120px;
  left: 85px;
  width: 33%;
}

.mockup-overlay[data-layout="large-pack-festive"] {
  aspect-ratio: 149.9 / 480.73;
  top: 106px;
  left: 152px;
  width: 25%;
}

.mockup-overlay[data-layout="mini-pack"] {
  aspect-ratio: 149.9 / 480.73;
  top: -48px;
  left: 113px;
  width: 32%;
  clip-path: inset(90px 0 0 0);
  transform: rotate(0deg);
  transform-origin: top center;
}

.mockup-overlay[data-layout="mini-pack-festive"] {
  aspect-ratio: 149.9 / 480.73;
  top: -48px;
  left: 113px;
  width: 32%;
  clip-path: inset(90px 0 0 0);
  transform: rotate(0deg);
  transform-origin: top center;
}

.mockup-overlay[data-layout="mini-jar"] {
  aspect-ratio: 1 / 3;
  top: 130px;
  left: 80px;
  width: 40%;
  clip-path: inset(0 0 156px 0);
  transform: rotate(0deg);
  transform-origin: top center;
}

.mockup-overlay[data-layout="mini-jar-festive"] {
  aspect-ratio: 1 / 3;
  top: 130px;
  left: 80px;
  width: 40%;
  clip-path: inset(0 0 156px 0);
  transform: rotate(0deg);
  transform-origin: top center;
}

.mockup-overlay svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* touch-action:none stops the browser treating a finger-down on these as
   the start of a page scroll, so js/gifting.js's touchmove handlers get
   the gesture instead - without this, dragging the logo/text on a phone
   scrolls the page rather than moving the element. */
.logo-drag, .logo-resize-handle, .text-drag {
  touch-action: none;
}

@media (max-width: 900px) {
  .gift-app {
    flex-direction: column;
    align-items: center;
    padding: var(--sp-3) var(--sp-4) var(--sp-6);
    gap: var(--sp-5);
  }

  /* flex-direction:column, not row - these columns each hold a heading
     plus a fixed-260px-wide box; a row flex container would shrink that
     box to fit alongside the heading instead of stacking + centering it. */
  .gift-mockup-col, .gift-canvas-col {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gift-controls-col {
    max-width: 100%;
    width: 100%;
  }

  .gift-mockup-heading {
    text-align: center;
  }

  .gift-header {
    padding: var(--sp-5) var(--sp-4) var(--sp-3);
  }

  /* A 10px handle is too small to grab reliably with a finger. */
  .logo-resize-handle {
    width: 22px;
    height: 22px;
    right: -11px;
    bottom: -11px;
  }
}

@media (max-width: 480px) {
  .gift-nav {
    padding: var(--sp-2) var(--sp-3);
    gap: 0;
  }

  .gift-nav-link {
    font-size: 12px;
    padding: var(--sp-2);
  }

  /* Four text labels in a row get cramped on a phone - keep the numbered
     circles (still clickable/functional) and drop the label text. */
  .gift-progress-step span:not(.gift-progress-num) {
    display: none;
  }

  .gift-progress-step {
    justify-content: center;
  }
}

.gift-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  padding: 40px;
}

.gift-lightbox.open {
  display: flex;
}

.gift-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.gift-lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}

.gift-slider-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gift-text-muted);
  flex: 1 1 auto;
}

.gift-slider-inline input[type="range"] {
  flex: 1 1 auto;
}

.gift-crop-modal {
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 110;
  padding: 24px;
}

.gift-crop-modal-inner {
  background: var(--gift-dark);
  border: 1px solid var(--gift-border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.gift-crop-modal-inner h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gift-accent);
  margin-bottom: var(--sp-3);
}

.gift-crop-image-wrap {
  max-height: 60vh;
  overflow: hidden;
  background: #000;
  border-radius: var(--radius-sm);
}

.gift-crop-image-wrap img {
  display: block;
  max-width: 100%;
}

.gift-crop-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: var(--sp-4);
}

.gift-crop-modal-actions .gift-btn-primary,
.gift-crop-modal-actions .gift-btn-secondary {
  width: auto;
  padding: 10px 22px;
}

#gift-preview-btn {
  margin-top: var(--sp-3);
  border-color: var(--gift-accent);
}
