body.albatross-inner.albatross-custom-order #main > article {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.albatross-inner.albatross-custom-order .entry-header { display: none; }
body.albatross-inner.albatross-custom-order .entry-content { margin: 0; }

.ay-custom-order {
  --ay-wine: #5b0b18;
  --ay-wine-deep: #2b050b;
  --ay-rose: #d63f66;
  --ay-gold: #d6a23f;
  --ay-cream: #fff9ef;
  color: var(--woo-ink, #281417);
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(18px, 4vw, 54px) 18px 80px;
}

.ay-custom-hero {
  background:
    radial-gradient(circle at 78% 15%, rgba(214, 63, 102, .4), transparent 30%),
    radial-gradient(circle at 15% 100%, rgba(214, 162, 63, .2), transparent 35%),
    linear-gradient(135deg, #2a050a 0%, #620b1a 56%, #39060e 100%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(53, 3, 12, .25);
  color: #fff8ef;
  display: grid;
  gap: clamp(30px, 6vw, 90px);
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  padding: clamp(34px, 7vw, 88px);
  position: relative;
}

.ay-custom-hero::after {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  content: "";
  height: 420px;
  position: absolute;
  right: -150px;
  top: -210px;
  width: 420px;
}

.ay-custom-eyebrow {
  color: #f2c5cf;
  font: italic clamp(22px, 3vw, 34px)/1.2 Georgia, serif;
  margin: 0 0 14px;
}

.ay-custom-hero h1 {
  color: #fffaf1;
  font: 500 clamp(54px, 8vw, 104px)/.84 Georgia, serif;
  letter-spacing: -.045em;
  margin: 0 0 28px;
  max-width: 100%;
  text-wrap: balance;
}

.ay-custom-hero__copy > p:last-child {
  color: rgba(255,255,255,.76);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.75;
  margin: 0;
  max-width: 580px;
}

.ay-custom-process {
  align-content: center;
  display: grid;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.ay-custom-process li {
  align-items: center;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  gap: 2px 16px;
  grid-template-columns: 48px 1fr;
  padding: 18px 22px;
}

.ay-custom-process li:first-child { border-radius: 20px 20px 0 0; }
.ay-custom-process li:last-child { border-radius: 0 0 20px 20px; }

.ay-custom-process span {
  color: #efb2c0;
  font: 600 13px/1 sans-serif;
  grid-row: 1 / 3;
  letter-spacing: .14em;
}

.ay-custom-process strong {
  color: #fff;
  font: 500 21px/1.2 Georgia, serif;
}

.ay-custom-process small {
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

.ay-custom-order .woocommerce-notices-wrapper,
.ay-custom-order > .woocommerce-message,
.ay-custom-order > .woocommerce-error,
.ay-custom-order > .woocommerce-info {
  margin: 28px 0 0;
}

.ay-custom-form {
  background: rgba(255, 252, 247, .87);
  border: 1px solid rgba(91, 11, 24, .12);
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(63, 24, 31, .09);
  margin-top: 28px;
  overflow: hidden;
  padding: clamp(26px, 5vw, 64px);
  color-scheme: light;
}

.ay-custom-step,
.ay-colours legend span,
.ay-custom-details > span b {
  color: var(--ay-rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ay-custom-form__intro h2 {
  color: var(--ay-wine-deep);
  font: 500 clamp(34px, 5vw, 58px)/1 Georgia, serif;
  letter-spacing: -.025em;
  margin: 8px 0 16px;
}

.ay-custom-form__intro > p:last-child {
  color: #755f62;
  line-height: 1.65;
  margin: 0 0 28px;
}

.ay-upload {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255,255,255,.78), rgba(255,247,242,.88)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(91,11,24,.035) 12px, rgba(91,11,24,.035) 13px);
  border: 1.5px dashed rgba(91, 11, 24, .32);
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 270px;
  overflow: hidden;
  padding: 28px;
  position: relative;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.ay-upload:hover,
.ay-upload:focus-within {
  border-color: var(--ay-rose);
  box-shadow: 0 15px 35px rgba(91,11,24,.09);
  transform: translateY(-2px);
}

.ay-upload input {
  height: 1px;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  width: 1px;
}

.ay-upload__empty { display: grid; justify-items: center; }

.ay-upload__empty svg {
  fill: none;
  height: 50px;
  margin-bottom: 16px;
  stroke: var(--ay-wine);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 50px;
}

.ay-upload__empty strong {
  color: var(--ay-wine-deep);
  font: 500 22px/1.25 Georgia, serif;
}

.ay-upload__empty small {
  color: #856d70;
  margin-top: 7px;
}

.ay-upload__preview,
.ay-upload__filename { display: none; }

.ay-upload.has-preview { padding: 0; }
.ay-upload.has-preview .ay-upload__empty { display: none; }

.ay-upload.has-preview .ay-upload__preview {
  display: block;
  height: 360px;
  object-fit: contain;
  width: 100%;
}

.ay-upload.has-preview .ay-upload__filename {
  background: rgba(43,5,11,.86);
  border-radius: 999px;
  bottom: 14px;
  color: #fff;
  display: block;
  font-size: 12px;
  left: 50%;
  max-width: calc(100% - 28px);
  overflow: hidden;
  padding: 8px 14px;
  position: absolute;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  white-space: nowrap;
}

.ay-custom-fields {
  display: grid;
  gap: clamp(30px, 6vw, 72px);
  grid-template-columns: 1.05fr .95fr;
  margin-top: clamp(38px, 6vw, 68px);
}

.ay-colours {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.ay-colours legend,
.ay-custom-details > span {
  color: var(--ay-wine-deep);
  display: flex;
  flex-wrap: wrap;
  font: 600 18px/1.4 Georgia, serif;
  gap: 10px;
  margin-bottom: 20px;
}

.ay-colour-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ay-colour-choice {
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
  position: relative;
  text-align: center;
}

.ay-colour-choice input[type="radio"] {
  opacity: 0;
  position: absolute;
}

.ay-colour-choice i {
  background: var(--swatch);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(91,11,24,.16);
  display: block;
  height: 48px;
  transition: box-shadow .2s ease, transform .2s ease;
  width: 48px;
}

.ay-colour-choice input:checked + i {
  box-shadow: 0 0 0 3px var(--ay-wine);
  transform: scale(.9);
}

.ay-colour-choice--picker { isolation: isolate; }

.ay-colour-picker-shell {
  align-items: center;
  background: var(--picker-color, #8b3b63);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(91,11,24,.16);
  cursor: pointer;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
  width: 48px;
  z-index: 1;
}

.ay-colour-picker-preview {
  background: var(--picker-color, #8b3b63);
  border-radius: inherit;
  display: block;
  inset: 0;
  position: absolute;
}

body.albatross-inner.albatross-custom-order input.ay-colour-picker {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  cursor: pointer;
  height: 100% !important;
  inset: 0;
  margin: 0 !important;
  min-height: 0 !important;
  opacity: 0;
  padding: 0 !important;
  position: absolute;
  width: 100% !important;
  z-index: 2;
}

.ay-picker-radio:checked + .ay-colour-picker-shell {
  box-shadow: 0 0 0 3px var(--ay-wine);
  transform: scale(.9);
}

.ay-colour-choice span {
  color: #6e5559;
  font-size: 11px;
  line-height: 1.2;
}

.ay-other-colour {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.ay-other-colour[hidden] { display: none; }

.ay-other-colour span {
  color: #5f4448;
  font-size: 12px;
  font-weight: 700;
}

.ay-other-colour input,
.ay-custom-details textarea {
  background: #fff;
  border: 1px solid rgba(91,11,24,.2);
  border-radius: 14px;
  box-sizing: border-box;
  color: #2c181b;
  font: inherit;
  outline: none;
  padding: 14px 16px;
  width: 100%;
}

.ay-other-colour input:focus,
.ay-custom-details textarea:focus {
  border-color: var(--ay-rose);
  box-shadow: 0 0 0 3px rgba(214,63,102,.12);
}

.ay-custom-details textarea {
  min-height: 224px;
  resize: vertical;
}

.ay-custom-submit {
  align-items: center;
  background: linear-gradient(135deg, #f8ecea, #fff8ee);
  border: 1px solid rgba(91,11,24,.09);
  border-radius: 22px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
  margin-top: clamp(38px, 6vw, 68px);
  padding: clamp(22px, 4vw, 34px);
}

.ay-custom-submit strong {
  color: var(--ay-wine);
  display: block;
  font: 600 20px/1.2 Georgia, serif;
  margin-bottom: 7px;
}

.ay-custom-submit p {
  color: #755f62;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  max-width: 650px;
}

.ay-custom-submit button {
  align-items: center;
  background: linear-gradient(135deg, #7b0c20, #4a0813);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 25px rgba(91,11,24,.22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 16px;
  justify-content: center;
  letter-spacing: .06em;
  min-height: 54px;
  padding: 0 24px;
  text-transform: uppercase;
  white-space: nowrap;
}

.ay-custom-submit button:hover { transform: translateY(-2px); }

.ay-reference-link {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.ay-reference-thumb {
  border-radius: 9px;
  height: 54px;
  object-fit: cover;
  width: 54px;
}

.ay-price-pending { color: var(--woo-wine, #650f1f); font-weight: 700; }
.ay-custom-thanks { line-height: 1.6; }

/* Keep the light custom-order card readable after the dark store-shell styles. */
body.albatross-inner.albatross-custom-order .ay-custom-form {
  background: rgba(255, 252, 247, .97) !important;
  color: #281417 !important;
}

body.albatross-inner.albatross-custom-order .ay-custom-form__intro h2,
body.albatross-inner.albatross-custom-order .ay-colours legend,
body.albatross-inner.albatross-custom-order .ay-custom-details > span,
body.albatross-inner.albatross-custom-order .ay-upload__empty strong,
body.albatross-inner.albatross-custom-order .ay-custom-submit strong {
  color: var(--ay-wine-deep) !important;
}

body.albatross-inner.albatross-custom-order .ay-custom-step,
body.albatross-inner.albatross-custom-order .ay-colours legend span,
body.albatross-inner.albatross-custom-order .ay-custom-details > span b {
  color: var(--ay-rose) !important;
}

body.albatross-inner.albatross-custom-order .ay-custom-form__intro > p:last-child,
body.albatross-inner.albatross-custom-order .ay-upload__empty small,
body.albatross-inner.albatross-custom-order .ay-colour-choice > span:last-child,
body.albatross-inner.albatross-custom-order .ay-custom-submit p {
  color: #65494d !important;
}

body.albatross-inner.albatross-custom-order .ay-custom-details textarea {
  background: #fff !important;
  color: #2c181b !important;
}

body.albatross-inner.albatross-custom-order .ay-custom-details textarea::placeholder {
  color: rgba(44, 24, 27, .66) !important;
  opacity: 1;
}

@media (max-width: 800px) {
  .ay-custom-order { padding-left: 12px; padding-right: 12px; }
  .ay-custom-hero { grid-template-columns: 1fr; padding: 34px 24px; }
  .ay-custom-hero h1 {
    font-size: clamp(44px, 15vw, 72px);
    letter-spacing: -.035em;
    line-height: .94;
    overflow-wrap: normal;
  }
  .ay-custom-fields { grid-template-columns: 1fr; }
  .ay-custom-submit { grid-template-columns: 1fr; }
  .ay-custom-submit button { width: 100%; }
}

@media (max-width: 480px) {
  .ay-custom-form { border-radius: 24px; padding: 26px 18px; }
  .ay-custom-hero { border-radius: 24px; }
  .ay-upload { min-height: 220px; }
  .ay-upload.has-preview .ay-upload__preview { height: 280px; }
  .ay-colour-grid { grid-template-columns: repeat(3, 1fr); }
  .ay-colour-choice i,
  .ay-colour-picker-shell { height: 42px; width: 42px; }
}
