body:has(#gift-page) { background: #f9f9f9; overflow: hidden; height: 100vh; }
body:has(#gift-page) footer,
body:has(#gift-page) .footer { display: none !important; }
#gift-page { max-width: 1200px; margin: 0 auto; padding: 0 15px; height: 100vh; }
#gift-page > .breadcrumb { display: none; }
#gift-page > .row { height: 100%; }
#gift-page #content { height: 100%; }

.gift-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 100px;
}
@media (max-width: 800px) {
  body:has(#gift-page) { overflow: auto; height: auto; }
  .gift-grid { grid-template-columns: 1fr; gap: 30px; height: auto; }
  .gift-preview { order: -1; }
}

/* Left column — scrollable form */
.gift-form {
  overflow-y: auto;
  max-height: 100vh;
  padding: 40px 20px 120px 0;
  -webkit-overflow-scrolling: touch;
}
.gift-form::-webkit-scrollbar { width: 0; }
@media (max-width: 800px) {
  .gift-form { max-height: none; overflow-y: visible; padding: 20px 0 40px; }
}

.gift-title {
  font-weight: 600;
  font-size: 28px;
  color: #000;
  margin: 0 0 28px;
}

.gift-field { margin-bottom: 24px; }
.gift-field label {
  display: block;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
  font-size: 15px;
}
.gift-field input,
.gift-field textarea {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: #000;
  outline: none;
}
.gift-field input:focus,
.gift-field textarea:focus { border-color: #0271e3; }
.gift-field textarea { resize: vertical; min-height: 100px; }

/* Type pills */
.gift-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.gift-pill {
  background: #ececec;
  color: #555;
  border: 1.5px solid transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.gift-pill.is-active {
  background: #fff;
  color: #0271e3;
  border-color: #0271e3;
}

/* Section heading */
.gift-section { margin-bottom: 28px; }
.gift-section__title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 14px;
}

/* Value cards grid */
.gift-values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
@media (max-width: 500px) {
  .gift-values { grid-template-columns: repeat(2, 1fr); }
}
.gift-value {
  display: block;
  padding: 18px 16px;
  border: 1.5px solid #e3e3e3;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  margin: 0;
}
.gift-value input { position: absolute; opacity: 0; pointer-events: none; }
.gift-value.is-active {
  border-color: #0271e3;
  box-shadow: 0 0 0 2px rgba(2,113,227,.12);
}
.gift-value__label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

/* Delivery autocomplete */
.gift-delivery select {
  width: 100%;
  padding: 14px 40px 14px 18px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: #000;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.np-autocomplete { position: relative; }
.np-dropdown {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  margin: 4px 0 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  max-height: 280px;
  overflow-y: auto;
  z-index: 20;
}
.np-dropdown li {
  padding: 10px 16px;
  font-size: 14px;
  color: #000;
  cursor: pointer;
}
.np-dropdown li:hover { background: #f1f6ff; }

/* When-to-send */
.gift-when {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gift-when select {
  width: 100%;
  padding: 14px 40px 14px 18px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: #000;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

/* Submit */
.gift-submit { margin-top: 8px; }
.gift-btn {
  display: inline-block;
  width: 100%;
  color: #fff !important;
  background: #0271e3;
  padding: 16px 40px;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.gift-btn:hover { opacity: .9; }
.gift-terms-link {
  margin: 14px 0 0;
  font-size: 12px;
  color: #999;
  text-align: center;
}
.gift-terms-link a { color: #999; text-decoration: underline; }
.gift-terms-link a:hover { color: #333; }

/* Right column — fixed to viewport center */
.gift-preview {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  right: calc((100vw - 1200px) / 2 + 15px);
  width: calc((1200px - 100px) * 1 / 2.3);
  max-width: 580px;
  z-index: 1;
}
.gift-preview .gift-card { width: 100%; }
@media (max-width: 1230px) {
  .gift-preview { right: 30px; width: 38vw; }
}
@media (max-width: 800px) {
  .gift-preview {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
  }
}
.gift-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.10);
}
.gift-card__img {
  display: block;
  width: 100%;
  height: auto;
}
.gift-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 100%);
  padding: 40px 30px 28px;
  text-align: left;
}
.gift-card__amount {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.gift-card__sub {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
