/* ============================================================
   Garbear Custom Diamond Order — public styles
   Everything is scoped under .gcdo-root and every class is
   prefixed .gcdo- so it coexists with Elementor / Astra /
   WooCommerce / theme CSS without collisions.
   ============================================================ */

.gcdo-root {
  /* Palette (mirrors the original site) */
  --gcdo-primary-blue: #1E4FFF;
  --gcdo-blue-bright: #4F74FF;
  --gcdo-blue-deep: #0A1F6B;
  --gcdo-blue-ink: #061240;
  --gcdo-dark: #0B1020;
  --gcdo-light: #F5F7FF;
  --gcdo-white: #FFFFFF;
  --gcdo-text: #14183A;
  --gcdo-text-muted: #5A6183;
  --gcdo-text-onblue: #EAF0FF;
  --gcdo-gem-cyan: #22D3EE;
  --gcdo-gem-gold: #FFC93C;
  --gcdo-cta-from: #D6156F;
  --gcdo-cta-to: #8E3BE0;

  --gcdo-radius: 18px;
  --gcdo-radius-sm: 10px;
  --gcdo-radius-lg: 30px;
  --gcdo-radius-pill: 999px;

  --gcdo-shadow-sm: 0 1px 2px rgba(10, 31, 107, .06), 0 4px 14px rgba(10, 31, 107, .09);
  --gcdo-shadow-md: 0 2px 5px rgba(10, 31, 107, .08), 0 14px 38px rgba(10, 31, 107, .16);
  --gcdo-shadow-lg: 0 6px 12px rgba(6, 18, 64, .12), 0 30px 68px rgba(6, 18, 64, .26);

  --gcdo-font-display: 'Fredoka', 'Poppins', system-ui, sans-serif;
  --gcdo-font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Fluid: the plugin adopts whatever width the Elementor parent gives it.
     No fixed/hard-coded max-width on the wrapper. */
  width: 100%;
  max-width: none;
  font-family: var(--gcdo-font-body);
  color: var(--gcdo-text);
  line-height: 1.6;
  box-sizing: border-box;
}

.gcdo-root *,
.gcdo-root *::before,
.gcdo-root *::after {
  box-sizing: border-box;
}

.gcdo-root img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Author display rules above beat the [hidden] UA style, so restore it. */
.gcdo-root [hidden] {
  display: none !important;
}

.gcdo-root h1,
.gcdo-root h2,
.gcdo-root h3,
.gcdo-root h4 {
  font-family: var(--gcdo-font-display);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
}

.gcdo-root p {
  margin: 0;
}

/* Fluid container — fills the Elementor parent, no forced max-width, no side
   gutters (Elementor's own container padding controls that). */
.gcdo-container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.gcdo-root :focus-visible {
  outline: 3px solid var(--gcdo-gem-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   SECTION + CONFIG GRID
   ============================================================ */
.gcdo-section {
  padding-block: clamp(1.5rem, 4vw, 3rem);
  background: var(--gcdo-light);
}

/* Left builder + right summary, both fluid. minmax(0,1fr) lets the left column
   shrink without overflowing; the summary has a sensible min/max, not a fixed
   width, so the whole layout adapts to the parent container. */
.gcdo-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.gcdo-builder {
  min-width: 0;
}

.gcdo-builder>* {
  min-width: 0;
}

/* Step block */
.gcdo-step-block {
  margin-bottom: 2.5rem;
}

.gcdo-step-block:last-child {
  margin-bottom: 0;
}

.gcdo-step-block__head {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.2rem;
}

.gcdo-step-block__no {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gcdo-blue-bright), var(--gcdo-primary-blue));
  color: #fff;
  font-family: var(--gcdo-font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(30, 79, 255, .35);
}

.gcdo-step-block__head h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--gcdo-dark);
}

.gcdo-panel {
  background: #fff;
  border-radius: var(--gcdo-radius);
  box-shadow: var(--gcdo-shadow-sm);
  padding: clamp(1.2rem, 3vw, 2rem);
}

/* ============================================================
   SOURCE SWITCH
   ============================================================ */
.gcdo-source-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.gcdo-source-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  background: #fff;
  border: 2px solid rgba(30, 79, 255, .2);
  border-radius: var(--gcdo-radius);
  padding: 1.1rem 1.15rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}

.gcdo-source-opt:hover {
  border-color: var(--gcdo-primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--gcdo-shadow-sm);
}

.gcdo-source-opt.is-active {
  border-color: var(--gcdo-primary-blue);
  background: linear-gradient(160deg, #eef2ff, #fff);
  box-shadow: 0 10px 26px rgba(30, 79, 255, .2);
}

.gcdo-source-opt__ico {
  width: 38px;
  height: 38px;
  border-radius: var(--gcdo-radius-sm);
  display: grid;
  place-items: center;
  background: rgba(30, 79, 255, .1);
  color: var(--gcdo-primary-blue);
  font-size: 1.05rem;
  margin-bottom: .25rem;
}

.gcdo-source-opt.is-active .gcdo-source-opt__ico {
  background: var(--gcdo-primary-blue);
  color: #fff;
}

.gcdo-source-opt__t {
  font-family: var(--gcdo-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gcdo-dark);
}

.gcdo-source-opt__d {
  color: var(--gcdo-text-muted);
  font-size: .92rem;
  line-height: 1.45;
}

/* ============================================================
   DROPZONE / UPLOAD
   ============================================================ */
.gcdo-dropzone {
  border: 2.5px dashed rgba(30, 79, 255, .4);
  border-radius: var(--gcdo-radius);
  background: #f3f6ff;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .1s;
}

.gcdo-dropzone:hover,
.gcdo-dropzone:focus-visible {
  border-color: var(--gcdo-primary-blue);
  background: #eaf0ff;
}

.gcdo-dropzone.is-drag {
  border-color: var(--gcdo-cta-from);
  background: #fff0f6;
  transform: scale(1.01);
}

.gcdo-dropzone__icon {
  font-size: 2.6rem;
  color: var(--gcdo-primary-blue);
  margin-bottom: .8rem;
}

.gcdo-dropzone h3 {
  font-size: 1.3rem;
  margin-bottom: .4rem;
  color: var(--gcdo-dark);
}

.gcdo-dropzone p {
  color: var(--gcdo-text-muted);
}

.gcdo-dropzone .gcdo-btn {
  margin-top: 1.1rem;
}

.gcdo-dropzone.is-busy {
  opacity: .7;
  pointer-events: none;
}

.gcdo-upload-error {
  color: #d61f4e;
  font-weight: 600;
  margin-top: 1rem;
}

.gcdo-upload-warn {
  margin-top: .8rem;
  padding: .85rem 1rem;
  background: #FFF8E6;
  border: 1px solid #F0D48A;
  border-left: 4px solid var(--gcdo-gem-gold);
  border-radius: var(--gcdo-radius-sm);
  color: #6B551A;
  font-size: .93rem;
  line-height: 1.5;
}

/* Preview */
.gcdo-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.gcdo-preview-grid>* {
  min-width: 0;
}

.gcdo-preview-card {
  border-radius: var(--gcdo-radius);
  overflow: hidden;
  background: #eef2ff;
  box-shadow: var(--gcdo-shadow-sm);
}

.gcdo-preview-card__label {
  font-family: var(--gcdo-font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1rem;
  background: var(--gcdo-primary-blue);
  color: #fff;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.gcdo-preview-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #dfe6ff;
}

.gcdo-preview-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gcdo-preview-card__img.gcdo-diamond img {
  filter: contrast(1.15) saturate(1.35) brightness(1.05);
}

.gcdo-preview-fx {
  position: relative;
}

.gcdo-preview-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .5) .5px, transparent 1.4px);
  background-size: 7px 7px;
  mix-blend-mode: screen;
  opacity: .5;
}

.gcdo-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: .8rem 1rem;
  background: #f3f6ff;
  border-radius: var(--gcdo-radius-sm);
}

.gcdo-file-row__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcdo-btn-remove {
  border: none;
  background: rgba(214, 31, 78, .12);
  color: #d61f4e;
  font-family: var(--gcdo-font-display);
  font-weight: 600;
  padding: .5rem .9rem;
  border-radius: var(--gcdo-radius-pill);
  cursor: pointer;
  flex: none;
  transition: background .18s, color .18s;
}

.gcdo-btn-remove:hover {
  background: #d61f4e;
  color: #fff;
}

/* Guidance */
.gcdo-guidance {
  background: #eef2ff;
  border-radius: var(--gcdo-radius);
  padding: 1.4rem 1.6rem;
  margin-top: 1.4rem;
}

.gcdo-guidance__intro {
  margin-bottom: .8rem;
  color: var(--gcdo-text-muted);
}

.gcdo-guidance h4 {
  font-size: 1.1rem;
  margin-bottom: .7rem;
  color: var(--gcdo-dark);
}

.gcdo-guidance__h4--spaced {
  margin-top: 1.4rem;
}

.gcdo-guidance ul {
  list-style: none;
  display: grid;
  gap: .5rem;
  margin: 0;
  padding: 0;
}

.gcdo-guidance li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  color: var(--gcdo-text);
}

.gcdo-guidance i {
  color: #2bb673;
  margin-top: .25rem;
  flex: none;
}

/* Brief */
.gcdo-brief__label {
  display: block;
  font-family: var(--gcdo-font-display);
  font-weight: 600;
  margin-bottom: .5rem;
  font-size: 1.02rem;
}

.gcdo-brief__input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: .9rem 1rem;
  border: 2px solid rgba(30, 79, 255, .2);
  border-radius: var(--gcdo-radius-sm);
  font: inherit;
  background: #fff;
  color: var(--gcdo-text);
  resize: vertical;
  min-height: 8.5rem;
  transition: border-color .18s;
}

.gcdo-brief__input:focus {
  outline: none;
  border-color: var(--gcdo-primary-blue);
}

.gcdo-brief__meta {
  color: var(--gcdo-text-muted);
  font-size: .9rem;
  margin: .45rem 0 .9rem;
}

/* ============================================================
   SIZE CARDS
   Rules are scoped under .gcdo-root and set an explicit background on every
   state so a theme/Elementor `button` or `button:hover` rule can never darken
   the card and hide the text.
   ============================================================ */
.gcdo-size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}

.gcdo-size-grid>* {
  min-width: 0;
}

.gcdo-root .gcdo-size-card {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  background: #fff;
  border: 2px solid rgba(30, 79, 255, .2);
  border-radius: var(--gcdo-radius);
  padding: 1.3rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-family: inherit;
}

/* Hover / keyboard-focus: a solid blue card. Every text element is explicitly
   recoloured so nothing stays dark-on-blue. */
.gcdo-root .gcdo-size-card:hover,
.gcdo-root .gcdo-size-card:focus-visible {
  background: var(--gcdo-primary-blue);
  border-color: var(--gcdo-primary-blue);
  transform: translateY(-3px);
  box-shadow: var(--gcdo-shadow-md);
}

.gcdo-root .gcdo-size-card:hover .gcdo-size-card__label,
.gcdo-root .gcdo-size-card:focus-visible .gcdo-size-card__label {
  color: #fff;
}

.gcdo-root .gcdo-size-card:hover .gcdo-size-card__dims,
.gcdo-root .gcdo-size-card:focus-visible .gcdo-size-card__dims {
  color: rgba(255, 255, 255, .85);
}

.gcdo-root .gcdo-size-card:hover .gcdo-size-card__price,
.gcdo-root .gcdo-size-card:focus-visible .gcdo-size-card__price {
  color: var(--gcdo-gem-gold);
}

/* Selected: readable light card with a strong blue border + gold check badge. */
.gcdo-root .gcdo-size-card.is-selected {
  border-color: var(--gcdo-primary-blue);
  background: linear-gradient(160deg, #eef2ff, #fff);
  box-shadow: 0 10px 26px rgba(30, 79, 255, .25);
}

.gcdo-size-card__check {
  display: none;
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gcdo-primary-blue);
  color: #fff;
  place-items: center;
  font-size: .8rem;
  box-shadow: var(--gcdo-shadow-sm);
}

.gcdo-size-card.is-selected .gcdo-size-card__check {
  display: grid;
}

.gcdo-size-card__label {
  font-family: var(--gcdo-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gcdo-dark);
  transition: color .18s;
}

.gcdo-size-card__dims {
  color: var(--gcdo-text-muted);
  font-size: .95rem;
  transition: color .18s;
}

.gcdo-size-card__price {
  font-family: var(--gcdo-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gcdo-primary-blue);
  margin-top: .3rem;
  transition: color .18s;
}

/* ============================================================
   OPTIONS
   ============================================================ */
.gcdo-opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.gcdo-opt-grid>* {
  min-width: 0;
}

.gcdo-opt-field label {
  display: block;
  font-family: var(--gcdo-font-display);
  font-weight: 600;
  margin-bottom: .4rem;
  font-size: .98rem;
  color: var(--gcdo-dark);
}

/* Native select, reset so Elementor/theme select styles can't clip or restyle
   it. A custom chevron is drawn as a background image; padding-right leaves it
   room. Height comes from padding + line-height, never a fixed height. */
.gcdo-root .gcdo-opt-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* A fixed height with ZERO vertical padding lets the browser vertically
     centre the selected value itself — the most reliable way to avoid clipping.
     !important defeats any theme/Elementor `select` height/line-height rule. */
  box-sizing: border-box !important;
  height: 48px !important;
  min-height: 48px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 2.6rem 0 1rem !important;
  border: 2px solid rgba(30, 79, 255, .2);
  border-radius: var(--gcdo-radius-sm);
  font-family: var(--gcdo-font-body) !important;
  font-size: 1rem !important;
  background-color: #fff;
  color: var(--gcdo-text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E4FFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 16px;
  cursor: pointer;
  transition: border-color .18s;
}

.gcdo-root .gcdo-opt-field select:focus {
  outline: none;
  border-color: var(--gcdo-primary-blue);
}

.gcdo-root .gcdo-opt-field select::-ms-expand {
  display: none;
}

/* new added start */

/* FIX: Diamond Type / Option Select text visibility */
.gcdo-root .gcdo-opt-field select {
    color: var(--gcdo-text) !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    text-indent: 0 !important;
    -webkit-text-fill-color: var(--gcdo-text) !important;
}

.gcdo-root .gcdo-opt-field select option {
    color: var(--gcdo-text) !important;
    background: #ffffff !important;
    opacity: 1 !important;
    font-family: var(--gcdo-font-body) !important;
}

.gcdo-root .gcdo-opt-field select:focus {
    color: var(--gcdo-text) !important;
    -webkit-text-fill-color: var(--gcdo-text) !important;
}

/* new added end  */

.gcdo-opt-static {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  min-height: 48px;
  box-sizing: border-box;
  padding: .55rem 1rem;
  border: 2px solid rgba(30, 79, 255, .14);
  border-radius: var(--gcdo-radius-sm);
  background: #f5f7ff;
  color: var(--gcdo-text-muted);
  font-size: .96rem;
  line-height: 1.3;
}

.gcdo-opt-static i {
  color: #22A06B;
}

.gcdo-opt-static strong {
  color: var(--gcdo-primary-blue);
  white-space: nowrap;
  margin-left: auto;
}

/* Quantity — [ − ] 1 [ + ]. Reset button appearance so theme padding/line-height
   can't distort the circles. */
.gcdo-qty {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

/* Perfect circles: fixed square box with !important so a theme/Elementor
   `button` width/padding/min-width rule can't stretch them into ovals. */
.gcdo-root .gcdo-qty button {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 44px !important;
  box-sizing: border-box !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  border: 2px solid rgba(30, 79, 255, .25);
  background: #fff;
  color: var(--gcdo-primary-blue);
  font-family: var(--gcdo-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}

.gcdo-root .gcdo-qty button:hover {
  background: var(--gcdo-primary-blue);
  color: #fff;
  border-color: var(--gcdo-primary-blue);
}

.gcdo-root .gcdo-qty button:active {
  transform: scale(.9);
}

.gcdo-qty__val {
  min-width: 2.5rem;
  text-align: center;
  font-family: var(--gcdo-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gcdo-dark);
}


/* ============================================================
   HINTS
   ============================================================ */
.gcdo-hint {
  font-size: .9rem;
  color: var(--gcdo-text-muted);
  margin-top: .7rem;
}

.gcdo-hint--spaced {
  margin-top: 1rem;
}

.gcdo-hint i {
  color: var(--gcdo-primary-blue);
}

/* ============================================================
   ORDER SUMMARY
   ============================================================ */
.gcdo-summary {
  position: sticky;
  top: 1rem;
  background: linear-gradient(165deg, #fff, #f3f6ff);
  border-radius: var(--gcdo-radius);
  box-shadow: var(--gcdo-shadow-md);
  padding: 1.6rem;
  border-top: 5px solid var(--gcdo-primary-blue);
}

.gcdo-summary h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--gcdo-dark);
}

.gcdo-summary__thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--gcdo-radius-sm);
  margin-bottom: 1rem;
  background: #dfe6ff;
}

.gcdo-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px dashed rgba(30, 79, 255, .18);
}

.gcdo-summary__row span:first-child {
  color: var(--gcdo-text-muted);
}

.gcdo-summary__row span:last-child {
  font-weight: 600;
  text-align: right;
}

.gcdo-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(30, 79, 255, .2);
}

.gcdo-summary__total .gcdo-lbl {
  font-family: var(--gcdo-font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.gcdo-summary__total .gcdo-amt {
  font-family: var(--gcdo-font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--gcdo-primary-blue);
  display: inline-block;
  transition: color .2s ease;
}

.gcdo-summary__total .gcdo-amt.is-bumped {
  animation: gcdoPulse .42s ease-out;
}

@keyframes gcdoPulse {
  0% {
    transform: none;
    color: var(--gcdo-primary-blue);
  }

  35% {
    transform: scale(1.07);
    color: var(--gcdo-cta-from);
  }

  100% {
    transform: none;
    color: var(--gcdo-primary-blue);
  }
}

.gcdo-summary__hint {
  font-size: .9rem;
  color: var(--gcdo-text-muted);
  margin: .8rem 0 1rem;
}

.gcdo-checkout-error {
  color: #d61f4e;
  font-weight: 600;
  font-size: .9rem;
  margin-top: .8rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.gcdo-root .gcdo-btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--gcdo-font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: .95rem 1.7rem;
  border-radius: var(--gcdo-radius-pill);
  background: var(--gcdo-primary-blue);
  color: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--gcdo-shadow-sm);
  white-space: nowrap;
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  line-height: 1.2;
}

.gcdo-root .gcdo-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--gcdo-shadow-md);
  color: #fff;
}

.gcdo-root .gcdo-btn:active {
  transform: translateY(0) scale(.985);
  transition-duration: .06s;
}

.gcdo-root .gcdo-btn--primary {
  background: linear-gradient(135deg, var(--gcdo-blue-bright), var(--gcdo-primary-blue));
  box-shadow: 0 10px 30px rgba(30, 79, 255, .4);
  color: #fff;
}

.gcdo-root .gcdo-btn--gem {
  background: linear-gradient(135deg, var(--gcdo-cta-from), var(--gcdo-cta-to));
  box-shadow: 0 10px 30px rgba(214, 21, 111, .38);
  color: #fff;
}

.gcdo-btn--lg {
  padding: 1.15rem 2.2rem;
  font-size: 1.15rem;
}

.gcdo-btn--block {
  width: 100%;
}

.gcdo-btn i {
  transition: transform .22s cubic-bezier(.34, 1.5, .64, 1);
}

.gcdo-btn:hover i.fa-arrow-right {
  transform: translateX(3px);
}

/* Disabled */
.gcdo-btn:disabled,
.gcdo-btn[disabled] {
  filter: grayscale(.55) brightness(1.06);
  opacity: .55;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.gcdo-btn:disabled:hover,
.gcdo-btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

/* Busy / spinner */
.gcdo-btn.is-busy {
  color: transparent !important;
  pointer-events: none;
}

.gcdo-btn.is-busy::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: gcdoSpin .6s linear infinite;
}

@keyframes gcdoSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Uploading state: a non-blocking spinner over the preview. The customer's
   just-selected image stays visible underneath (no blanking / re-render), so
   the upload feels instant. */
.gcdo-root [data-preview-wrap] {
  position: relative;
}

.gcdo-root [data-preview-wrap].is-uploading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(245, 247, 255, .55);
  border-radius: var(--gcdo-radius);
  pointer-events: none;
}

.gcdo-root [data-preview-wrap].is-uploading::after {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(30, 79, 255, .25);
  border-top-color: var(--gcdo-primary-blue);
  border-radius: 50%;
  animation: gcdoSpin .6s linear infinite;
  pointer-events: none;
}

@keyframes gcdoShimmer {
  to {
    background-position: 200% 0;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Tablet: summary drops below, size cards to 2 per row. */
@media (max-width: 960px) {
  .gcdo-config-grid {
    grid-template-columns: 1fr;
  }

  .gcdo-summary {
    position: static;
  }

  .gcdo-size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gcdo-preview-grid {
    grid-template-columns: 1fr;
  }

  .gcdo-source-switch {
    grid-template-columns: 1fr;
  }
}

/* Mobile: single column everywhere. */
@media (max-width: 560px) {
  .gcdo-size-grid {
    grid-template-columns: 1fr;
  }

  .gcdo-opt-grid {
    grid-template-columns: 1fr;
  }

  .gcdo-btn--lg {
    padding: 1rem 1.4rem;
    font-size: 1.05rem;
  }

  .gcdo-root .gcdo-btn {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .gcdo-qty__val {
    min-width: 2rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

  .gcdo-btn.is-busy::before,
  .gcdo-root [data-preview-wrap].is-uploading::after {
    animation: none !important;
  }

  .gcdo-root *,
  .gcdo-root *::before,
  .gcdo-root *::after {
    transition-duration: 120ms !important;
    animation-duration: 120ms !important;
    animation-iteration-count: 1 !important;
  }

  .gcdo-root .gcdo-btn:hover,
  .gcdo-root .gcdo-size-card:hover,
  .gcdo-source-opt:hover {
    transform: none !important;
  }
}

/* new code added  */

/* FIX: Quantity controls */
.gcdo-root .gcdo-qty {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    height: 46px !important;
}

.gcdo-root .gcdo-qty button {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;

    padding: 0 !important;
    margin: 0 !important;

    border-radius: 50% !important;
    border: 2px solid rgba(30,79,255,.25) !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;
    text-align: center !important;
    box-sizing: border-box !important;

    background: #fff !important;
    color: var(--gcdo-primary-blue) !important;
}

.gcdo-root .gcdo-qty__val {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    line-height: 1 !important;
    text-align: center !important;
}

/* end */
