.rcc {
  --violet: #68198a;
  --violet-dark: #25102d;
  --gold: #ffd34f;
  --select: #00a138;
  --select-dark: #008f32;
  --select-bg: #e5f6ed;
  --ink: #19131d;
  --muted: #685e6c;
  --border: #ded5e2;
  --panel-border: #eee8f0;
  --hover-shadow: 0 12px 28px rgba(40, 16, 50, .14);
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--ink);
  font-family: inherit;
}

.rcc *, .rcc *::before, .rcc *::after { box-sizing: border-box; }
.rcc [hidden] { display: none !important; }
.rcc button, .rcc input, .rcc textarea, .rcc select { font: inherit; }
.rcc button { text-transform: none; }

.rcc-head { margin-bottom: 24px; text-align: center; }
.rcc-head h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); }
.rcc-head p { margin: 0; color: var(--muted); }

.rcc-product-grid, .rcc-grid { display: grid; gap: 14px; }
.rcc-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.rcc-product, .rcc-grid button, .rcc-text-choice {
  position: relative;
  appearance: none;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--border);
  background: #fff;
  color: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.rcc-product, .rcc-grid button {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 18px;
  padding: 0;
  text-align: left;
}
.rcc-grid button { padding: 16px; text-align: center; }
.rcc-product:hover, .rcc-grid button:hover, .rcc-text-choice:hover {
  border-color: #d7cbdc;
  box-shadow: var(--hover-shadow);
  transform: translateY(-3px) scale(1.015);
}
.rcc-product.is-selected, .rcc-grid button.is-selected, .rcc-text-choice.is-selected {
  border-color: var(--select) !important;
  background: var(--select-bg) !important;
  box-shadow: 0 0 0 2px var(--select), 0 9px 22px rgba(0, 161, 56, .18) !important;
  color: var(--violet-dark) !important;
  transform: none;
}
.rcc-product.is-selected:hover, .rcc-grid button.is-selected:hover, .rcc-text-choice.is-selected:hover {
  transform: translateY(-2px) scale(1.01);
}
.rcc-product.is-selected::after, .rcc-grid button.is-selected::after, .rcc-text-choice.is-selected::after {
  content: "✓";
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--select);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 3px 9px rgba(40, 16, 50, .2);
}
.rcc-product:focus-visible, .rcc-grid button:focus-visible, .rcc-text-choice:focus-visible, .rcc-send:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}

.rcc-media-frame {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
  line-height: 0;
}
.rcc-media-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  object-fit: contain;
  object-position: center;
}
.rcc-placeholder {
  display: grid;
  width: 100%;
  min-height: 100px;
  place-items: center;
  background: #f5ecf8;
  color: var(--violet);
  font-size: 42px;
}
.rcc-product .rcc-media-frame { aspect-ratio: 2 / 1; border-radius: 17px 17px 0 0; }
.rcc-product .rcc-media-frame img { height: 100%; object-fit: cover; }
.rcc-product-copy {
  display: block;
  width: 100%;
  min-height: 128px;
  padding: 22px 24px 24px;
  background: #fff;
}
.rcc-product.is-selected .rcc-product-copy, .rcc-product.is-selected .rcc-media-frame,
.rcc-grid button.is-selected .rcc-media-frame { background: var(--select-bg); }
.rcc-product strong { display: block; margin-bottom: 9px; font-size: 23px; line-height: 1.2; }
.rcc-product small, .rcc-grid small { display: block; color: #514756; line-height: 1.5; }
.rcc-product small { font-size: 15px; }

.rcc-panel {
  margin-top: 20px;
  padding: 28px;
  overflow: visible;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(54, 17, 67, .08);
}
.rcc-panel h3 { margin: 0 0 18px; font-size: 23px; }
.rcc-required { color: #b3003c; }
.rcc-video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: stretch; }
.rcc-qty { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 30px; scroll-margin-top: 110px; }
.rcc-qty .rcc-media-frame { margin-bottom: 12px; }
.rcc-qty strong { display: block; margin-bottom: 5px; font-size: 18px; }
.rcc-qty small { font-size: 14px; line-height: 1.45; }
.rcc-quality { grid-template-columns: repeat(3, minmax(0, 1fr)); scroll-margin-top: 110px; }
.rcc-quality button { min-height: 88px; padding: 22px 10px; }
.rcc-quality strong { display: block; font-size: 17px; }
.rcc-quality span { display: block; margin-top: 5px; color: #675d6a; }

.rcc-selection-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 34px;
  border-radius: 32px;
  background: var(--violet-dark);
  color: #fff;
}
.rcc-eyebrow, .rcc-order-copy > span { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.rcc-card-title { margin: 28px 0 8px; font-size: 30px; line-height: 1.1; }
.rcc-card-quality { color: #f2c8ff; font-size: 20px; }
.rcc-selection-card dl { margin: 28px 0 18px; }
.rcc-selection-card dl > div { display: flex; justify-content: space-between; gap: 15px; margin: 17px 0; }
.rcc-selection-card dt, .rcc-selection-card dd { margin: 0; }
.rcc-selection-card dd { font-weight: 800; }
.rcc-save-row, .rcc-save { color: var(--gold); }
.rcc-card-total { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.3); }
.rcc-card-total strong { color: var(--gold); font-size: 35px; line-height: 1; }
.rcc-selection-card > small { margin-top: 20px; color: #e7c9ef; text-align: right; letter-spacing: 1.5px; text-transform: uppercase; }

.rcc-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); scroll-margin-top: 110px; }
.rcc-styles button { padding: 10px 10px 16px; }
.rcc-styles .rcc-media-frame { aspect-ratio: 16 / 9; margin-bottom: 10px; }
.rcc-styles .rcc-media-frame img { height: 100%; object-fit: cover; }
.rcc-styles strong { display: block; margin: 0; padding: 0 6px; font-size: 16px; }
.rcc-video-music { margin-top: 8px; }
.rcc-compact-title { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.rcc-video-styles { gap: 10px; }
.rcc-video-styles button { padding: 7px 7px 11px; border-radius: 14px; }
.rcc-video-styles strong { font-size: 14px; }
.rcc-other-style { display: block; max-width: 520px; margin: 18px auto 0; font-size: 14px; font-weight: 700; }
.rcc-process { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 18px 20px; border-left: 4px solid var(--gold); border-radius: 14px; background: #f6edf9; }
.rcc-process > span { color: var(--violet); font-size: 29px; }
.rcc-process p { margin: 0; font-weight: 700; line-height: 1.5; }

.rcc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rcc-fields label, .rcc-other-style { font-size: 14px; font-weight: 700; }
.rcc-fields .wide { grid-column: 1 / -1; }
.rcc input, .rcc textarea, .rcc select {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #d9cedd;
  border-radius: 11px;
  background: #fff;
  color: inherit;
  line-height: 1.35;
}
.rcc textarea { resize: vertical; }
.rcc input:focus, .rcc textarea:focus, .rcc select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 2px rgba(104,25,138,.15); }
.rcc-choice-group { margin-top: 4px; }
.rcc-inline-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rcc-text-choice { min-height: 52px; padding: 13px 34px; border-radius: 13px; font-weight: 700; }
.rcc-text-choice.is-selected::after { top: 50%; right: 10px; width: 22px; height: 22px; font-size: 13px; transform: translateY(-50%); }

.rcc-order-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 380px); gap: 28px; align-items: center; margin-top: 28px; padding: 34px 38px; border-radius: 30px; background: linear-gradient(110deg, #46115d, #70208a); color: #fff; }
.rcc-order-copy > span { color: var(--gold); font-weight: 800; }
.rcc-order-copy > strong { display: block; margin: 13px 0 8px; font-size: 31px; line-height: 1.15; }
.rcc-order-copy p { margin: 0; color: #f3e6f7; }
.rcc-order-save { display: block; margin-top: 7px; color: var(--gold); }
.rcc-order-action { text-align: right; }
.rcc-order-action > span { display: block; font-size: 13px; }
.rcc-order-action > strong { display: block; margin: 8px 0 18px; color: var(--gold); font-size: 42px; line-height: 1.1; }
.rcc-send { width: 100%; padding: 16px 20px; border: 0; border-radius: 999px; background: var(--select); color: #fff; cursor: pointer; font-size: 17px; font-weight: 800; transition: transform .2s ease, background-color .2s ease; }
.rcc-send:hover { background: var(--select-dark); transform: translateY(-1px); }
.rcc-order-action small { display: block; margin-top: 8px; color: #f3e6f7; }
.rcc-error { border-color: #c40035 !important; box-shadow: 0 0 0 2px rgba(196,0,53,.12) !important; }

@media (max-width: 900px) {
  .rcc-video-layout, .rcc-order-banner { grid-template-columns: 1fr; }
  .rcc-selection-card { min-height: auto; }
  .rcc-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rcc-order-action { text-align: left; }
  .rcc-order-action > strong { font-size: 36px; }
}

@media (max-width: 680px) {
  .rcc-product-grid, .rcc-quality, .rcc-fields { grid-template-columns: 1fr; }
  .rcc-fields .wide { grid-column: auto; }
  .rcc-panel { padding: 20px; border-radius: 18px; }
  .rcc-product-copy { min-height: 0; padding: 18px 19px 20px; }
  .rcc-product strong { font-size: 20px; }
  .rcc-product small { font-size: 14px; }
  .rcc-selection-card { padding: 26px; border-radius: 24px; }
  .rcc-card-title { font-size: 26px; }
  .rcc-inline-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rcc-order-banner { padding: 26px 22px; border-radius: 22px; }
  .rcc-order-copy > strong { font-size: 25px; }
  .rcc-order-action > strong { font-size: 34px; }

  .rcc-qty { grid-template-columns: 1fr; gap: 9px; margin-bottom: 24px; }
  .rcc-qty button {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "media copy";
    gap: 12px;
    align-items: center;
    min-height: 84px;
    padding: 9px 39px 9px 9px;
    overflow: visible;
    text-align: left;
  }
  .rcc-qty .rcc-media-frame { grid-area: media; width: 64px; height: 54px; margin: 0; border-radius: 8px; }
  .rcc-qty .rcc-media-frame img { width: 100%; height: 100%; object-fit: contain; }
  .rcc-qty .rcc-placeholder { width: 64px; min-height: 54px; font-size: 25px; }
  .rcc-option-copy { grid-area: copy; display: block; min-width: 0; }
  .rcc-qty strong { margin: 0 0 3px; font-size: 15px; line-height: 1.22; }
  .rcc-qty small { margin: 0; color: #5d5361; font-size: 12px; line-height: 1.32; }
  .rcc-qty button.is-selected::after { top: 8px; right: 8px; width: 23px; height: 23px; font-size: 13px; }
}

@media (max-width: 420px) {
  .rcc-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rcc-styles button { padding: 8px 8px 13px; }
  .rcc-styles strong { font-size: 14px; }
  .rcc-selection-card dl > div { font-size: 14px; }
}

@media (hover: none) {
  .rcc-product:not(.is-selected):hover, .rcc-grid button:not(.is-selected):hover, .rcc-text-choice:not(.is-selected):hover {
    border-color: var(--border);
    box-shadow: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rcc-product, .rcc-grid button, .rcc-text-choice, .rcc-send { transition: none; }
  .rcc-product:hover, .rcc-grid button:hover, .rcc-text-choice:hover, .rcc-send:hover { transform: none; }
}
