/* Drovo theme: checkout styles, compiled from the original SCSS modules. */

/* app/checkout/checkout.module.scss */
.cop-page {
  min-height: 100vh;
  background: #f5f5f5;
}

/* Hide mobile bottom bar on checkout */
@media (max-width: 47.99rem) {
  body {
    padding-bottom: 0 !important;
  }
}
.cop-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.cop-header h1 {
  margin: 0;
  color: #1a1a1a;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cop-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #888;
  font-size: 0.82rem;
  line-height: 1.2;
}

.cop-breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}
.cop-breadcrumb a:hover {
  color: var(--clr-primary, #0F7B6C);
}

.cop-breadcrumbCurrent {
  color: var(--clr-primary, #0F7B6C);
  font-weight: 700;
}

.cop-errorWrap {
  padding: 1.5rem;
}

/* components/checkout/CheckoutForm.module.scss */
@charset "UTF-8";
/* ── Root ─────────────────────────────────────────────────────────────────── */
.cf-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  color: var(--clr-text, #1A1A18);
  background: #f5f5f5;
  min-height: 100vh;
}

/* ── Two-column layout wrapper ───────────────────────────────────────────── */
/* Plain block boxes on mobile (not `display:contents`) so the browser keeps
   normal width/shrink constraints on their children — `display:contents`
   here was breaking min-width:auto shrinking on grid descendants and letting
   long product names blow the page out horizontally on small screens. */
.cf-layout {
  display: block;
}

.cf-leftCol,
.cf-rightCol {
  display: block;
}

/* ── Guest login/register banner ─────────────────────────────────────────── */
.cf-guestBanner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin: 0.75rem 0.75rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 0.95rem 1rem;
  text-align: center;
}

.cf-guestBanner p {
  margin: 0;
  color: #4b5563;
  font-size: 0.88rem;
}

.cf-guestBannerBtns {
  display: flex;
  gap: 0.6rem;
}

.cf-loginBtn,
.cf-registerBtn {
  display: inline-flex;
  align-items: center;
  min-width: 5rem;
  min-height: 2rem;
  justify-content: center;
  border-radius: 5px;
  padding: 0.35rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.cf-loginBtn {
  border: 1.5px solid var(--clr-primary, #0F7B6C);
  color: var(--clr-primary, #0F7B6C);
  background: #fff;
}

.cf-registerBtn {
  border: 1.5px solid var(--clr-primary, #0F7B6C);
  background: var(--clr-primary, #0F7B6C);
  color: #fff;
}

.cf-loginBtn:hover,
.cf-registerBtn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── Section ─────────────────────────────────────────────────────────────── */
.cf-section {
  margin: 0.75rem 0.75rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}

.cf-sectionTitle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  color: #1f2937;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
}
.cf-sectionTitle::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--clr-primary, #0F7B6C);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Item list ───────────────────────────────────────────────────────────── */
.cf-itemList {
  display: flex;
  flex-direction: column;
}

.cf-emptyCart {
  margin: 0;
  color: #888;
  font-size: 0.88rem;
}

.cf-helpText {
  margin: 0;
  color: #888;
  font-size: 0.84rem;
}

/* ── Review item ─────────────────────────────────────────────────────────── */
.cf-reviewItem {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.cf-reviewItem:first-child {
  padding-top: 0.2rem;
}
.cf-reviewItem:last-child {
  border-bottom: 0;
  padding-bottom: 0.2rem;
}

.cf-thumb {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.15rem;
}

.cf-thumb span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--clr-primary, #0F7B6C);
  font-weight: 800;
  text-transform: uppercase;
}

.cf-itemInfo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cf-itemName {
  min-width: 0;
  overflow: hidden;
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-giftBadge {
  display: inline-block;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0284c7;
  padding: 0.08rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  width: fit-content;
}

.cf-itemAttrs {
  margin: 0;
  color: #666;
  font-size: 0.76rem;
}

.cf-itemMetaRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cf-qtyRow {
  display: inline-flex;
  align-items: center;
  background: #f4f5f7;
  border-radius: 6px;
  padding: 0.12rem 0.2rem;
  gap: 0.15rem;
}

.cf-qtyBtn {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 0;
  background: transparent;
  color: var(--clr-primary, #0F7B6C);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 140ms ease;
}
.cf-qtyBtn:hover:not(:disabled) {
  background: rgba(15, 123, 108, 0.12);
}
.cf-qtyBtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cf-qtyVal {
  display: grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
}

.cf-itemPrice {
  color: #1f2937;
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
}

.cf-removeBtn {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 6px;
  background: #ea4335;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 140ms ease, transform 140ms ease;
}
.cf-removeBtn:hover:not(:disabled) {
  opacity: 0.9;
  transform: scale(1.04);
}
.cf-removeBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Shipping address fields ─────────────────────────────────────────────── */
.cf-fields {
  display: grid;
  gap: 0.65rem;
}

.cf-fields input,
.cf-fields select,
.cf-searchButton,
.cf-section textarea {
  width: 100%;
  min-height: 2.65rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  padding: 0.6rem 0.75rem;
  color: var(--clr-text, #1A1A18);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cf-fields input:focus,
.cf-fields select:focus,
.cf-searchButton:focus,
.cf-section textarea:focus {
  border-color: rgba(15, 123, 108, 0.7);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.12);
}

.cf-fields select:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Phone row with prefix */
.cf-phoneRow {
  display: flex;
  align-items: stretch;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cf-phoneRow:focus-within {
  border-color: rgba(15, 123, 108, 0.7);
  box-shadow: 0 0 0 3px rgba(15, 123, 108, 0.12);
}

.cf-phonePrefix {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.65rem;
  background: #f5f5f5;
  border-right: 1px solid #ccc;
  color: #333;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.cf-phoneInput {
  flex: 1;
  min-width: 0;
  min-height: 2.65rem;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.cf-dropdownRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

/* District custom select */
.cf-searchSelect {
  position: relative;
  min-width: 0;
}

.cf-searchButton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
  padding: 0.6rem 0.75rem;
}

.cf-searchButton span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.cf-chevron {
  color: #888;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.cf-searchMenu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.cf-searchInputWrap {
  display: block;
  padding: 0.4rem;
  border-bottom: 1px solid #eee;
}

.cf-searchInputWrap input {
  min-height: 2.2rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  width: 100%;
  outline: none;
}

.cf-searchInputWrap input:focus {
  border-color: rgba(15, 123, 108, 0.6);
}

.cf-searchOptions {
  display: grid;
  max-height: 12rem;
  overflow-y: auto;
  padding-block: 0.2rem;
}

.cf-searchOptions button {
  width: 100%;
  min-height: 2.1rem;
  border: 0;
  background: #fff;
  color: #444;
  cursor: pointer;
  padding: 0.45rem 0.75rem;
  text-align: left;
  font: inherit;
  font-size: 0.88rem;
  transition: background-color 120ms ease;
}

.cf-searchOptions button:hover,
.cf-searchOptions button:focus,
.cf-activeOption {
  background: var(--clr-primary, #0F7B6C) !important;
  color: #fff;
  outline: none;
}

.cf-searchOptions p {
  margin: 0;
  padding: 0.75rem;
  color: #888;
  font-size: 0.86rem;
}

/* ── Payment method ───────────────────────────────────────────────────────── */
.cf-methodList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.6rem;
}

.cf-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  background: #fff;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.cf-methodRadio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.cf-methodIcon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
  transition: background-color 150ms ease, color 150ms ease;
}
.cf-methodIcon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.cf-methodLabel {
  min-width: 0;
  color: #374151;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

.cf-activeMethod {
  border-color: var(--clr-primary, #0F7B6C);
  background: rgba(15, 123, 108, 0.06);
}
.cf-activeMethod .cf-methodIcon {
  background: rgba(15, 123, 108, 0.16);
  color: var(--clr-primary, #0F7B6C);
}
.cf-activeMethod .cf-methodLabel {
  color: var(--clr-primary, #0F7B6C);
}

.cf-methodCheck {
  display: grid;
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  background: var(--clr-primary, #0F7B6C);
  color: #fff;
}
.cf-methodCheck svg {
  width: 0.7rem;
  height: 0.7rem;
}

/* ── Coupon ───────────────────────────────────────────────────────────────── */
.cf-couponBox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.cf-couponBox input {
  min-height: 2.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color 150ms ease;
}

.cf-couponBox input:focus {
  border-color: rgba(15, 123, 108, 0.7);
}

.cf-applyCoupon {
  min-width: 5.5rem;
  min-height: 2.6rem;
  border: 0;
  border-radius: 6px;
  background: var(--clr-primary, #0F7B6C);
  color: #fff;
  cursor: pointer;
  padding: 0 1rem;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.86rem;
  transition: opacity 150ms ease;
}

.cf-applyCoupon:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cf-appliedCoupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
  border: 1px solid rgba(15, 123, 108, 0.2);
  border-radius: 6px;
  background: rgba(15, 123, 108, 0.07);
  padding: 0.5rem 0.65rem;
  color: var(--clr-primary, #0F7B6C);
  font-size: 0.84rem;
  font-weight: 700;
}

.cf-appliedCoupon button {
  border: 0;
  background: transparent;
  color: #dc2626;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
}

.cf-couponSuccess,
.cf-couponError {
  margin: 0.55rem 0 0;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.cf-couponSuccess {
  border: 1px solid rgba(15, 123, 108, 0.18);
  background: rgba(15, 123, 108, 0.07);
  color: var(--clr-primary, #0F7B6C);
}

.cf-couponError {
  border: 1px solid rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
}

/* ── Totals ───────────────────────────────────────────────────────────────── */
.cf-totals {
  margin: 0.75rem 0.75rem 0;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
  padding: 0.9rem;
  display: grid;
  gap: 0;
}

.cf-totals div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
  color: #555;
  font-size: 0.9rem;
  font-weight: 600;
}

.cf-totals div + div {
  border-top: 1px solid #f0f0f0;
}

.cf-totals strong {
  color: var(--clr-primary, #0F7B6C);
  font-weight: 800;
}

.cf-totalRow {
  color: #1a1a1a !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  padding-top: 0.6rem !important;
  border-top: 1.5px solid #e0e0e0 !important;
}

.cf-totalRow strong {
  font-size: 1.05rem;
}

/* ── Notes ───────────────────────────────────────────────────────────────── */
.cf-section textarea {
  min-height: 5rem;
  resize: vertical;
  font-size: 0.9rem;
  width: 100%;
}

.cf-notesCount {
  display: block;
  color: #888;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

/* ── T&C ─────────────────────────────────────────────────────────────────── */
.cf-terms {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.83rem;
  color: #555;
  padding: 0 0.75rem;
  margin-top: 0.75rem;
}

.cf-terms input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--clr-primary, #0F7B6C);
}

/* ── Error ───────────────────────────────────────────────────────────────── */
.cf-error {
  margin: 0.5rem 0.75rem 0;
  border-radius: 7px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: rgba(220, 38, 38, 0.06);
  padding: 0.65rem 0.85rem;
  color: #dc2626;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ── Sticky place order ───────────────────────────────────────────────────── */
/* position: sticky (not fixed) so the bar tracks the viewport bottom while
   scrolling through the form, then releases into its normal flow position
   once it reaches the end of the form — it never overlaps the footer. */
.cf-stickyOrder {
  position: sticky;
  bottom: 0;
  z-index: 50;
  margin-top: 0.85rem;
  padding: 0.75rem;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.cf-placeOrder {
  display: block;
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 7px;
  background: var(--clr-primary, #0F7B6C);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 150ms ease, transform 150ms ease;
}

.cf-placeOrder:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.cf-placeOrder:active:not(:disabled) {
  transform: translateY(0);
}

.cf-placeOrder:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* ── Desktop layout (≥ 768px) ─────────────────────────────────────────────── */
@media (min-width: 768px) {
  .cf-checkout {
    background: #f5f5f5;
  }
  /* Login/register nudge is mobile-only; desktop already has Sign In in the header */
  .cf-guestBanner {
    display: none;
  }
  .cf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
    width: 80%;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
  }
  .cf-leftCol,
  .cf-rightCol {
    display: flex;
    flex-direction: column;
  }
  .cf-section,
  .cf-totals,
  .cf-error {
    margin-left: 0;
    margin-right: 0;
  }
  .cf-terms {
    padding-left: 0;
    padding-right: 0;
  }
  .cf-stickyOrder {
    position: static;
    margin: 0.75rem 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}
/* ── Saved address picker ─────────────────────────────────────────────────── */
.cf-savedAddresses {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.cf-savedAddressLabel {
  font-size: 0.75rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.65rem;
}

.cf-savedAddressCards {
  display: grid;
  gap: 0.6rem;
}

.cf-savedAddressCard {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem;
  cursor: pointer;
  background: #fafafa;
  transition: border-color 0.14s, background 0.14s;
}
.cf-savedAddressCard input[type=radio] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--clr-primary, #0F7B6C);
  width: 14px;
  height: 14px;
}
.cf-savedAddressCard span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cf-savedAddressCard strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a1a;
}
.cf-savedAddressCard small {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.4;
}
.cf-savedAddressCard:has(input:checked) {
  border-color: var(--clr-primary, #0F7B6C);
  background: rgba(15, 123, 108, 0.05);
}

/* ── Save address row ─────────────────────────────────────────────────────── */
.cf-saveAddressRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding: 0.75rem;
  background: #f9f9f9;
  border-radius: 7px;
  border: 1px solid #eee;
}

.cf-saveAddressCheck {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: #1a1a1a;
}
.cf-saveAddressCheck input {
  accent-color: var(--clr-primary, #0F7B6C);
  width: 14px;
  height: 14px;
}

.cf-saveAddressType {
  font-size: 0.84rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  outline: none;
}
.cf-saveAddressType:focus {
  border-color: var(--clr-primary, #0F7B6C);
}

.cf-saveAddressHint {
  font-size: 0.78rem;
  color: #666;
  width: 100%;
  margin: 0;
}
