
:root {
  --pink: #f6248b;
  --dark-pink: #b81265;
  --text: #71314e;
  --pale: #fff3f9;
  --border: #ff8fc2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: #ffc0dc url("images/Giggleberry background.png")
    center top / cover fixed no-repeat;
}

button, input, textarea {
  font: inherit;
}

a {
  text-decoration: none;
}

.checkout-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 3%;
  background: linear-gradient(180deg, #fff1f8, #f6a1ca);
  border-bottom: 3px solid #e982b2;
  box-shadow: 0 7px 15px #a9286b55;
}

.checkout-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 55px;
  background: #ffffff99;
  border: 2px solid white;
  box-shadow: 0 5px 0 #d980aa;
  flex-shrink: 0;
}

.checkout-brand img:first-child {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.checkout-brand img:last-child {
  width: clamp(150px, 17vw, 245px);
  height: 53px;
  object-fit: contain;
}

.checkout-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.checkout-nav a,
.checkout-bag,
.checkout-steps a {
  color: #813354;
  font-weight: 700;
  background: #fff4fa;
  border: 2px solid white;
  border-radius: 30px;
  padding: 12px 15px;
  box-shadow: 0 5px 0 #cc81a8;
  transition: .2s ease;
}

.checkout-nav a:hover,
.checkout-bag:hover,
.checkout-steps a:hover {
  background: var(--pink);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #a51661;
}

.checkout-bag {
  white-space: nowrap;
  flex-shrink: 0;
}

.checkout-main {
  width: min(1120px, 88%);
  margin: 32px auto 60px;
}

.checkout-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.checkout-steps a {
  font-size: 14px;
  text-align: center;
}

.checkout-steps a.active {
  background: var(--pink);
  color: white;
  box-shadow: 0 5px 0 #a51661;
}

.checkout-panel {
  padding: clamp(22px, 4vw, 44px);
  border: 2px solid white;
  border-radius: 30px;
  background: rgba(255, 245, 250, .95);
  box-shadow: 0 12px 0 #d779a8, 0 22px 35px #9b2a6540;
}

.checkout-intro {
  text-align: center;
  margin-bottom: 35px;
}

.eyebrow {
  color: var(--pink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
}

.checkout-intro h1 {
  font-size: clamp(30px, 4vw, 49px);
  margin: 14px 0;
  color: var(--text);
}

.checkout-intro h1 em {
  color: var(--pink);
}

.checkout-intro p {
  line-height: 1.7;
}

.checkout-panel h2 {
  font-size: 23px;
  color: var(--dark-pink);
  margin: 30px 0 20px;
}

.form-grid,
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: bold;
}

.field.full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  width: 100%;
  padding: 16px;
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 15px;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border: 2px solid var(--pink);
  box-shadow: 0 0 0 4px #ffb6d944;
}

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 17px;
  font-weight: bold;
  background: #fff4fa;
  box-shadow: 0 4px 0 #e6a1c2;
  transition: .2s;
}

.choice:hover,
.choice:has(input:checked) {
  background: #ffd6e9;
  border-color: var(--pink);
  transform: translateY(-2px);
}

.choice input,
.agreement input {
  accent-color: var(--pink);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.policy-box {
  margin-top: 32px;
  padding: 23px 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff0f7;
  box-shadow: 0 5px 0 #e6a1c2;
  line-height: 1.8;
}

.policy-box h3 {
  color: var(--dark-pink);
  margin-top: 0;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  margin-top: 25px;
  border: 1px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  font-weight: bold;
  line-height: 1.6;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.berry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 23px;
  border-radius: 30px;
  border: 2px solid white;
  font-weight: bold;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.berry-button.primary {
  background: linear-gradient(#ff62ae, #e81881);
  color: white;
  box-shadow: 0 6px 0 #a71262;
}

.berry-button.secondary {
  background: white;
  color: var(--dark-pink);
  box-shadow: 0 6px 0 #d78aad;
}

.berry-button:hover:not(:disabled) {
  transform: translateY(-4px);
  background: #c71470;
  color: white;
  box-shadow: 0 10px 0 #8d0b4c;
}

.berry-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.review-product {
  display: grid;
  grid-template-columns: 180px minmax(130px, 1fr) minmax(250px, 1.35fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
  padding: 23px;
  border-radius: 25px;
  border: 2px solid var(--border);
  background: linear-gradient(145deg, #fff5fa, #ffdcec);
  box-shadow: 0 8px 0 #e47eae, 0 13px 22px #a5245d26;
  transition: .2s ease;
}

.review-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 #d75c99, 0 17px 25px #a5245d30;
}

.review-photo {
  height: 190px;
  border-radius: 20px;
  border: 5px solid #ff83b9;
  overflow: hidden;
  background: white;
  box-shadow: 0 7px 0 #d64d90, 0 10px 18px #a5245d33;
}

.review-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.review-product:hover .review-photo img {
  transform: scale(1.07);
}

.review-product-name h3 {
  margin: 0 0 15px;
  font-size: 21px;
  color: #a41260;
}

.review-product-name p {
  margin: 0;
}

.review-product-right {
  min-width: 0;
}

.review-instructions {
  padding: 19px;
  border: 2px solid #ff90c1;
  border-radius: 18px;
  background: #fff9fc;
  box-shadow: 0 6px 0 #dc86b0;
}

.review-instructions strong {
  color: var(--dark-pink);
}

.review-instructions p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.review-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
}

.review-price-row strong {
  color: var(--pink);
  font-size: 23px;
}

.review-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 5px;
  border-bottom: 2px solid #ff9cc7;
  font-size: 21px;
}

.review-total strong {
  color: var(--pink);
  font-size: 27px;
}

.review-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff5fa;
  box-shadow: 0 5px 0 #e6a1c2;
}

.review-info div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.review-info strong {
  color: var(--dark-pink);
}

.review-info span {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.checkout-footer {
  text-align: center;
  padding: 25px;
  color: #9e245d;
  background: #ffe4f1;
}

@media (max-width: 1050px) {
  .checkout-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .checkout-nav {
    order: 3;
    width: 100%;
  }

  .review-product {
    grid-template-columns: 150px 1fr;
  }

  .review-product-right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .checkout-main {
    width: 94%;
  }

  .checkout-panel {
    padding: 20px;
  }

  .form-grid,
  .option-grid,
  .review-info {
    grid-template-columns: 1fr;
  }

  .review-product {
    grid-template-columns: 1fr;
  }

  .review-photo {
    width: 100%;
    height: 260px;
  }

  .review-product-right {
    grid-column: auto;
  }

  .checkout-actions {
    flex-direction: column;
  }

  .berry-button {
    width: 100%;
  }

  .checkout-nav a {
    padding: 9px 11px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* GIGGLEBERRY HOVER POP EFFECT */

.berry-pop {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 19px;
  animation: berryFloat .85s ease-out forwards;
  filter: drop-shadow(0 3px 3px #c6297955);
}

@keyframes berryFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.3);
  }

  25% {
    opacity: 1;
    transform: translate(-50%, -70%) scale(1.15);
  }

  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--drift)),
      -115px
    ) scale(.6) rotate(20deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .berry-pop {
    animation: none;
    display: none;
  }
}

/* =========================================
   GIGGLEBERRY - CLEAN CHECKOUT LAYOUT
========================================= */

/* Main checkout area */
.checkout-main {
  width: min(1100px, 94%);
  margin: 25px auto 60px;
  padding: 0;
}

/* Form layout */
#berryDeliveryForm {
  width: 100%;
}

#berryDeliveryForm .form-grid,
#berryDeliveryForm .customer-grid,
#berryDeliveryForm .information-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Customer information fields */
#berryDeliveryForm input[type="text"],
#berryDeliveryForm input[type="email"],
#berryDeliveryForm input[type="tel"],
#berryDeliveryForm textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 15px;
  border: 1.5px solid #f7a0c7;
  border-radius: 15px;
  background: #fffafd;
  color: #78314f;
  font: inherit;
  box-shadow: inset 0 2px 5px rgba(178, 66, 119, .06);
  transition: border-color .2s, box-shadow .2s;
}

#berryDeliveryForm textarea {
  min-height: 95px;
  resize: vertical;
}

#berryDeliveryForm input:focus,
#berryDeliveryForm textarea:focus {
  outline: none;
  border-color: #ef2d91;
  box-shadow: 0 0 0 3px rgba(239, 45, 145, .12);
}

/* Courier and payment cards */
#berryDeliveryForm .option-grid,
#berryDeliveryForm .radio-grid,
#berryDeliveryForm .choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#berryDeliveryForm .option-grid label,
#berryDeliveryForm .radio-grid label,
#berryDeliveryForm .choice-grid label {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  box-sizing: border-box;
  border: 1.5px solid #ff91c3;
  border-radius: 17px;
  background: #fff1f8;
  color: #79304e;
  font-weight: 700;
  box-shadow: 0 4px 0 #eaa0c5;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

#berryDeliveryForm .option-grid label:hover,
#berryDeliveryForm .radio-grid label:hover,
#berryDeliveryForm .choice-grid label:hover {
  background: #ffe0ef;
  transform: translateY(-2px);
}

#berryDeliveryForm input[type="radio"],
#berryDeliveryForm input[type="checkbox"] {
  accent-color: #f3268d;
}

/* Smaller, balanced action buttons */
.checkout-actions,
.checkout-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

/* Mobile layout */
@media (max-width: 700px) {
  #berryDeliveryForm .form-grid,
  #berryDeliveryForm .customer-grid,
  #berryDeliveryForm .information-grid,
  #berryDeliveryForm .option-grid,
  #berryDeliveryForm .radio-grid,
  #berryDeliveryForm .choice-grid {
    grid-template-columns: 1fr;
  }

  .checkout-actions,
  .checkout-footer-actions {
    flex-wrap: wrap;
  }
}

/* GIGGLEBERRY DARK PINK 3D HOVER */

/* Header navigation */
.checkout-nav a:hover,
.checkout-bag:hover,
.checkout-brand:hover,

/* Checkout navigation and buttons */
.checkout-steps a:hover,
.checkout-progress a:hover,
.checkout-actions a:hover,
.checkout-actions button:hover,
.checkout-footer-actions a:hover,
.checkout-footer-actions button:hover,
#berryCheckoutButton:hover,

/* Courier and payment options */
#berryDeliveryForm .option-grid label:hover,
#berryDeliveryForm .radio-grid label:hover,
#berryDeliveryForm .choice-grid label:hover {
  background: linear-gradient(
    145deg,
    #f52b91,
    #bd075e
  ) !important;

  color: #ffffff !important;
  border-color: #ff87c2 !important;

  box-shadow:
    0 5px 0 #850343,
    0 9px 18px rgba(153, 0, 80, 0.25),
    inset 0 2px 3px rgba(255,255,255,0.35) !important;

  transform: translateY(-3px);
  transition: all 0.25s ease;
}

/* Keep text white on hover */
.checkout-nav a:hover *,
.checkout-actions a:hover *,
.checkout-actions button:hover *,
.checkout-footer-actions a:hover *,
.checkout-footer-actions button:hover * {
  color: #ffffff !important;
}

/* 3D pressed effect */
.checkout-nav a:active,
.checkout-actions button:active,
.checkout-footer-actions button:active,
#berryCheckoutButton:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #850343 !important;
}

/* ==========================================
   GIGGLEBERRY REVIEW PAGE
========================================== */

.berry-review-wrap {
  width: min(1120px, 94%);
  margin: 25px auto 60px;
}

.berry-checkout-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}

.berry-checkout-steps a,
.berry-checkout-steps span {
  display: inline-block;
  padding: 13px 18px;
  border-radius: 28px;
  background: #fff2f9;
  border: 2px solid white;
  box-shadow: 0 5px 0 #c77b9f;
  color: #873252;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s ease;
}

.berry-checkout-steps .active {
  background: #ed258a;
  color: white;
}

.berry-checkout-steps a:hover {
  background: linear-gradient(145deg, #fa399d, #b90962);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 7px 0 #880646;
}

.berry-review-panel {
  padding: 38px;
  border-radius: 30px;
  border: 2px solid white;
  background: rgba(255, 246, 251, .96);
  box-shadow: 0 9px 0 #d67ca9;
  color: #74334e;
}

.berry-review-heading {
  text-align: center;
  margin-bottom: 32px;
}

.berry-eyebrow {
  letter-spacing: 5px;
  color: #ee1684;
  font-weight: 800;
}

.berry-review-heading h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 15px 0;
}

.berry-review-heading em {
  color: #ed1685;
}

.berry-review-panel h2 {
  font-size: 23px;
  color: #c30a6b;
  margin: 28px 0 20px;
}

.berry-review-product {
  display: grid;
  grid-template-columns: 175px 1fr 1.4fr;
  align-items: center;
  gap: 22px;
  padding: 20px;
  margin-bottom: 20px;
  background: linear-gradient(145deg, #fff4fa, #ffe0ee);
  border: 2px solid #ff91c2;
  border-radius: 24px;
  box-shadow: 0 7px 0 #df79ad;
}

.berry-review-photo {
  height: 175px;
  overflow: hidden;
  border: 5px solid #ff8bc0;
  border-radius: 22px;
  box-shadow: 0 6px 0 #c7488b;
}

.berry-review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.berry-review-product-info h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #98365b;
}

.berry-review-instructions {
  background: #fffafd;
  border: 2px solid #ff94c6;
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 5px 0 #dc80ad;
}

.berry-review-instructions strong {
  color: #cf0871;
}

.berry-review-instructions p {
  overflow-wrap: anywhere;
}

.berry-review-price {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.berry-review-price strong {
  font-size: 22px;
  color: #e9007b;
}

.berry-review-subtotal {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 5px;
  font-size: 23px;
  border-bottom: 2px solid #ff9bc8;
}

.berry-review-subtotal strong {
  color: #e9007b;
}

.berry-review-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.berry-review-details > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 17px;
  border: 1px solid #ff9dc8;
  border-radius: 15px;
  background: #fff9fc;
}

.berry-review-details strong {
  color: #c30a6b;
}

.berry-review-details span {
  overflow-wrap: anywhere;
}

.berry-review-reminders {
  padding: 20px;
  background: #fff0f7;
  border: 2px solid #ff9bc8;
  border-radius: 20px;
  box-shadow: 0 5px 0 #df8ab4;
}

.berry-review-reminders p {
  line-height: 1.7;
}

.berry-review-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 35px;
}

.berry-review-btn {
  display: inline-block;
  padding: 15px 22px;
  border-radius: 28px;
  border: 2px solid white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
}

.berry-review-secondary {
  background: #fff;
  color: #c40870;
  box-shadow: 0 6px 0 #d17ea8;
}

.berry-review-primary {
  background: linear-gradient(145deg, #ff55ac, #e91683);
  color: white;
  box-shadow: 0 6px 0 #9e0957;
}

.berry-review-btn:hover {
  background: linear-gradient(145deg, #f52b91, #b80760);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #850343;
}

@media (max-width: 800px) {
  .berry-review-panel {
    padding: 20px;
  }

  .berry-review-product {
    grid-template-columns: 120px 1fr;
  }

  .berry-review-photo {
    height: 130px;
  }

  .berry-review-product-right {
    grid-column: 1 / -1;
  }

  .berry-review-details {
    grid-template-columns: 1fr;
  }

  .berry-review-actions {
    flex-direction: column;
  }

  .berry-review-btn {
    text-align: center;
  }
}
