/* ============================================================
   CHECKOUT
============================================================ */

.checkout-page {
  background: #f7f1eb;
  color: #181513;
  min-height: 100vh;
}

/* ============================================================
   HEADER
============================================================ */

.checkout-header {
  padding: 155px 30px 55px;
  text-align: center;
  border-bottom: 1px solid rgba(38, 29, 23, 0.12);
}

.checkout-header-inner {
  max-width: 700px;
  margin: auto;
}

.checkout-eyebrow {
  margin: 0 0 14px;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9a7555;
}

.checkout-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.checkout-header p:last-child {
  margin: 15px 0 0;
  color: #746b64;
  font-size: 13px;
}

/* ============================================================
   GRID
============================================================ */

.checkout-section {
  padding: 25px 14px 80px;
}

.checkout-grid {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.05fr)
    minmax(280px, 1fr)
    minmax(280px, 1fr)
    minmax(260px, 0.95fr);

  gap: 12px;
  max-width: 1500px;
  margin: auto;
  align-items: stretch;
}

.checkout-column {
  border: 1px solid rgba(42, 31, 24, 0.11);
  background: rgba(255, 255, 255, 0.16);
  min-width: 0;
}

/* ============================================================
   COLUMN HEADER
============================================================ */

.checkout-column-header {
  min-height: 78px;
  padding: 24px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(42, 31, 24, 0.1);
}

.checkout-column-header > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.checkout-step {
  color: #a47d5c;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.checkout-column-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.6px;
}

.edit-cart {
  color: #9c7657;
  font-size: 12px;
}

/* ============================================================
   CART
============================================================ */

.checkout-cart-items {
  padding: 18px 27px 0;
}

.checkout-cart-item {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(42, 31, 24, 0.1);
}

.checkout-item-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e9e0d7;
}

.checkout-item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.checkout-item-content {
  min-width: 0;
}

.checkout-item-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.checkout-item-heading p {
  margin: 0 0 5px;
  font-size: 7px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a17b5b;
}

.checkout-item-heading h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.checkout-item-remove {
  border: 0;
  background: transparent;
  color: #544b45;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.checkout-item-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 12px;
}

.checkout-item-attributes span {
  font-size: 9px;
  color: #756b63;
}

.checkout-item-attributes strong {
  margin-right: 4px;
  font-weight: 500;
  color: #4c4540;
}

.checkout-item-addons {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-item-addons small {
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #9b7657;
}

.checkout-item-addons span {
  font-size: 10px;
  color: #665d57;
}

.checkout-item-addons em {
  font-style: normal;
  color: #8d674a;
  margin-left: 5px;
}

.checkout-item-bottom {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
}

.checkout-item-price {
  font-size: 11px;
}

.checkout-item-quantity {
  display: flex;
  align-items: center;
  border: 1px solid rgba(42, 31, 24, 0.14);
}

.checkout-item-quantity button {
  width: 29px;
  height: 29px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #2b2521;
}

.checkout-item-quantity span {
  min-width: 27px;
  text-align: center;
  font-size: 10px;
}

.checkout-item-bottom > strong {
  font-size: 11px;
  font-weight: 500;
}

/* ============================================================
   CART SUMMARY
============================================================ */

.checkout-cart-summary {
  padding: 21px 27px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 10px;
}

.checkout-summary-row strong {
  font-weight: 500;
}

.checkout-summary-row span:last-child {
  color: #716862;
}

.checkout-total-row {
  margin-top: 8px;
  padding-top: 17px;
  border-top: 1px solid rgba(42, 31, 24, 0.14);
  font-size: 12px;
}

.checkout-total-row strong {
  font-size: 17px;
}

/* ============================================================
   PROMO
============================================================ */

.promo-toggle {
  margin: 0 27px 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #967258;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-toggle span {
  margin-right: 7px;
}

.promo-box {
  margin: 0 27px 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.promo-box input {
  min-width: 0;
}

.promo-box button {
  border: 1px solid #bd9a78;
  background: transparent;
  padding: 0 18px;
  cursor: pointer;
}

.promo-message {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  font-size: 9px;
}

/* ============================================================
   FORM
============================================================ */

#checkout-form {
  padding: 23px 27px;
}

.checkout-field {
  margin-bottom: 11px;
}

.checkout-field label {
  display: block;
  margin-bottom: 6px;
  color: #514943;
  font-size: 9px;
}

.checkout-field label span {
  color: #999089;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
  width: 100%;
  border: 1px solid rgba(42, 31, 24, 0.14);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 0;
  padding: 13px 13px;
  color: #211c19;
  font-family: inherit;
  font-size: 11px;
  outline: none;
}

.checkout-field textarea {
  resize: vertical;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus {
  border-color: #ad8665;
}

.checkout-field.is-error input,
.checkout-field.is-error textarea,
.checkout-field.is-error select {
  border-color: #a65f55;
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 4px;
  color: #9b5148;
  font-size: 8px;
}

.checkout-three-fields {
  display: grid;
  grid-template-columns: 1fr 0.9fr 0.9fr;
  gap: 9px;
}

.checkout-two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

/* ============================================================
   GIFT
============================================================ */

.gift-option {
  display: grid;
  grid-template-columns: 17px 1fr auto;
  align-items: start;
  gap: 9px;
  margin: 23px 0 22px;
  cursor: pointer;
}

.gift-option input,
.save-information input,
.checkout-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gift-checkbox {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(42, 31, 24, 0.28);
  position: relative;
}

.gift-option input:checked + .gift-checkbox::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #876447;
}

.gift-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gift-copy strong {
  font-size: 10px;
  font-weight: 500;
}

.gift-copy small {
  color: #80766e;
  font-size: 9px;
}

.gift-icon {
  color: #a17a5b;
}

/* ============================================================
   DELIVERY
============================================================ */

.delivery-section {
  border-top: 1px solid rgba(42, 31, 24, 0.12);
  padding-top: 24px;
}

.delivery-heading {
  display: flex;
  gap: 13px;
  margin-bottom: 18px;
}

.delivery-heading h2 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
}

.delivery-heading p {
  margin: 0;
  color: #81776f;
  font-size: 9px;
}

.select-with-icon {
  position: relative;
}

.select-with-icon > span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9c785b;
  z-index: 1;
}

.select-with-icon input,
.select-with-icon select {
  padding-left: 38px;
}

.delivery-note {
  margin: 7px 0 0;
  color: #82776e;
  font-size: 9px;
  line-height: 1.6;
}

/* ============================================================
   PAYMENT
============================================================ */

.secure-payment {
  padding: 18px 27px 5px;
  color: #766d67;
  font-size: 8px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.secure-payment span {
  margin-right: 6px;
}

.payment-methods {
  padding: 0 27px;
}

.payment-method {
  display: flex;
  align-items: center;
  min-height: 55px;
  border-bottom: 1px solid rgba(42, 31, 24, 0.1);
  cursor: pointer;
  gap: 10px;
}

.payment-radio {
  width: 16px;
  height: 16px;
  border: 1px solid #8a817a;
  border-radius: 50%;
  position: relative;
}

.payment-method input:checked + .payment-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #302a26;
  border-radius: 50%;
}

.payment-name {
  font-size: 10px;
}

.card-brands {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.card-brands b {
  font-size: 6px;
  padding: 4px 4px;
  border: 1px solid rgba(42, 31, 24, 0.18);
  background: rgba(255, 255, 255, 0.4);
}

.paypal-logo {
  margin-left: auto;
  color: #175c9d;
  font-size: 12px;
}

.apple-pay-logo {
  margin-left: auto;
  font-size: 13px;
}

.card-payment-fields {
  padding: 14px 0 4px;
}

.card-payment-fields .checkout-field {
  margin-bottom: 8px;
}

.save-information,
.checkout-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 21px 27px;
  cursor: pointer;
  color: #5f5751;
  font-size: 9px;
  line-height: 1.5;
}

.save-information > span,
.checkout-consent > span {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 1px solid rgba(42, 31, 24, 0.27);
}

.save-information input:checked + span::after,
.checkout-consent input:checked + span::after {
  content: "✓";
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 10px;
  color: #876447;
}

.checkout-consent {
  margin-top: 5px;
}

.checkout-consent a {
  color: #8d684e;
  text-decoration: underline;
}

/* ============================================================
   PLACE ORDER
============================================================ */

.place-order-button {
  width: calc(100% - 54px);
  margin: 0 27px;
  min-height: 62px;
  border: 0;
  background: #bd926c;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 35px;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.place-order-button:hover {
  background: #aa7d59;
}

.place-order-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-error {
  margin: 12px 27px;
  padding: 10px 12px;
  border: 1px solid #b46b62;
  color: #914e46;
  font-size: 9px;
  line-height: 1.5;
}

.payment-security {
  padding: 15px 27px 25px;
  text-align: center;
  color: #827a73;
  font-size: 8px;
}

/* ============================================================
   CONFIRMATION
============================================================ */

.confirmation-inner {
  padding: 27px;
}

.confirmation-flower {
  width: 95px;
  height: 105px;
  margin: 0 auto 20px;
  color: #a9896c;
}

.confirmation-flower svg {
  width: 100%;
  height: 100%;
}

.confirmation-eyebrow {
  margin: 0 0 9px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a17b5d;
}

.confirmation-inner h2 {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.confirmation-copy {
  max-width: 230px;
  margin: 14px auto 30px;
  text-align: center;
  color: #716862;
  font-size: 10px;
  line-height: 1.6;
}

.confirmation-summary {
  padding: 22px 0;
  border-top: 1px solid rgba(42, 31, 24, 0.12);
  border-bottom: 1px solid rgba(42, 31, 24, 0.12);
}

.confirmation-summary h3 {
  margin: 0 0 17px;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.confirmation-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 10px;
}

.confirmation-row strong {
  font-weight: 400;
}

.confirmation-divider {
  margin: 10px 0;
  border-top: 1px solid rgba(42, 31, 24, 0.1);
}

.confirmation-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5px;
}

.confirmation-total span {
  font-size: 11px;
}

.confirmation-total strong {
  font-size: 19px;
  font-weight: 500;
}

.confirmation-trust {
  padding-top: 20px;
}

.trust-item {
  display: flex;
  gap: 13px;
  padding: 12px 0;
}

.trust-item > span {
  width: 28px;
  color: #b18b6c;
  font-size: 21px;
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 500;
}

.trust-item small {
  display: block;
  color: #81776f;
  font-size: 8px;
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1200px) {
  .checkout-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .checkout-header {
    padding: 130px 20px 40px;
  }

  .checkout-section {
    padding: 12px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .checkout-column-header {
    padding: 20px;
  }

  .checkout-cart-items,
  #checkout-form,
  .payment-methods {
    padding-left: 20px;
    padding-right: 20px;
  }

  .checkout-cart-summary {
    padding-left: 20px;
    padding-right: 20px;
  }

  .promo-toggle {
    margin-left: 20px;
  }

  .promo-box {
    margin-left: 20px;
    margin-right: 20px;
  }

  .save-information,
  .checkout-consent {
    margin-left: 20px;
    margin-right: 20px;
  }

  .place-order-button {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }

  .payment-security {
    padding-left: 20px;
    padding-right: 20px;
  }

  .checkout-cart-item {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 13px;
  }

  .checkout-three-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkout-item-bottom {
    grid-template-columns: 1fr auto;
  }

  .checkout-item-total {
    grid-column: 1 / -1;
  }

  .confirmation-inner {
    padding: 25px 20px;
  }
}
