/* Trinity36 customer feedback, checkout comments, and cart-save offer. */
.customer-feedback-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 6vw, 88px);
  background: #0b0b0b;
  color: #f4efe3;
  border-top: 1px solid rgba(207, 174, 94, .28);
}

.customer-feedback-copy {
  position: sticky;
  top: 112px;
}

.customer-feedback-copy h2 {
  margin: 8px 0 16px;
  max-width: 15ch;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.customer-feedback-copy > p:last-child {
  max-width: 54ch;
  color: rgba(244, 239, 227, .76);
  line-height: 1.75;
}

.customer-feedback-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 40px);
  background: #131313;
  border: 1px solid rgba(207, 174, 94, .28);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
}

.customer-feedback-form label,
.checkout-comments-field {
  display: grid;
  gap: 8px;
}

.customer-feedback-form label > span,
.checkout-comments-field > span {
  color: #e5d6ae;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-feedback-form label small,
.checkout-comments-field small {
  color: rgba(229, 214, 174, .68);
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.customer-feedback-form input,
.customer-feedback-form select,
.customer-feedback-form textarea,
.checkout-comments-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid rgba(207, 174, 94, .28);
  border-radius: 4px;
  background: #090909;
  color: #fff;
  font: inherit;
}

.customer-feedback-form textarea,
.checkout-comments-field textarea {
  min-height: 122px;
  resize: vertical;
  line-height: 1.55;
}

.customer-feedback-form input:focus,
.customer-feedback-form select:focus,
.customer-feedback-form textarea:focus,
.checkout-comments-field textarea:focus {
  outline: 2px solid #cfad5e;
  outline-offset: 2px;
  border-color: transparent;
}

.customer-feedback-form .primary-button {
  min-height: 48px;
  justify-self: start;
}

.customer-feedback-status {
  min-height: 24px;
  margin: 0;
  color: #dfc77d;
  font-weight: 700;
}

.customer-feedback-status.is-error {
  color: #ffaaa2;
}

.checkout-comments-field {
  margin: 6px 0 12px;
}

.checkout-comments-field textarea {
  background: rgba(255, 255, 255, .035);
}

.cart-exit-offer {
  z-index: 10050;
  padding: 18px;
}

.cart-exit-offer-modal {
  position: relative;
  width: min(100%, 510px);
  margin: auto;
  padding: clamp(28px, 5vw, 48px);
  background: #101010;
  color: #f4efe3;
  border: 1px solid rgba(207, 174, 94, .55);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .7);
  text-align: left;
}

.cart-exit-offer-modal h2 {
  margin: 8px 0 14px;
  color: #fff;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
}

.cart-exit-offer-modal > p:not(.eyebrow) {
  margin: 0 0 22px;
  color: rgba(244, 239, 227, .76);
  line-height: 1.65;
}

.cart-exit-code {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 16px;
  align-items: center;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: #080808;
  border: 1px dashed rgba(207, 174, 94, .65);
}

.cart-exit-code span {
  grid-column: 1 / -1;
  color: rgba(244, 239, 227, .6);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cart-exit-code strong {
  color: #dfc77d;
  font-size: clamp(1.45rem, 5vw, 2rem);
  letter-spacing: .12em;
}

.cart-exit-code b {
  color: #fff;
  font-size: .82rem;
}

.cart-exit-offer-modal .primary-button {
  width: 100%;
  min-height: 50px;
}

.cart-exit-leave {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  color: rgba(244, 239, 227, .72);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cart-exit-leave:hover,
.cart-exit-leave:focus-visible {
  color: #fff;
}

[data-theme="light"] .customer-feedback-section {
  background: #f4f0e6;
  color: #201d17;
  border-top-color: rgba(107, 76, 19, .24);
}

[data-theme="light"] .customer-feedback-copy h2 {
  color: #17140f;
}

[data-theme="light"] .customer-feedback-copy > p:last-child {
  color: rgba(32, 29, 23, .72);
}

[data-theme="light"] .customer-feedback-form {
  background: #fffdf7;
  border-color: rgba(107, 76, 19, .25);
  box-shadow: 0 18px 45px rgba(46, 35, 14, .1);
}

[data-theme="light"] .customer-feedback-form label > span {
  color: #5e4517;
}

[data-theme="light"] .customer-feedback-form input,
[data-theme="light"] .customer-feedback-form select,
[data-theme="light"] .customer-feedback-form textarea {
  background: #fff;
  color: #201d17;
  border-color: rgba(107, 76, 19, .26);
}

@media (max-width: 760px) {
  .customer-feedback-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 18px 72px;
  }

  .customer-feedback-copy {
    position: static;
  }

  .customer-feedback-form {
    padding: 20px 16px;
  }

  .customer-feedback-form .primary-button {
    width: 100%;
  }

  .cart-exit-offer {
    align-items: flex-end;
    padding: 0;
  }

  .cart-exit-offer-modal {
    width: 100%;
    max-height: min(88dvh, 720px);
    overflow-y: auto;
    padding: 30px 20px calc(22px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-exit-offer,
  .customer-feedback-form {
    scroll-behavior: auto;
  }
}
