/* =====================================================================
   MAYFIELD — MY ACCOUNT / EDIT ACCOUNT
   Ported from the design (edit-account.html). Loaded on account pages.
   Scoped under .mf-edit-account.
   ===================================================================== */

/* Hide WooCommerce's account sidebar nav on the edit-account screen so the
   design's full-width two-column layout shows. */
.woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-navigation { display: none; }
.woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-content { width: 100%; float: none; margin: 0; }

.mf-edit-account .edit-account-head { margin: var(--sp-5) 0 var(--sp-3); align-items: baseline; }
.mf-edit-account .edit-account-head .page-title {  color: var(--teal); }
.mf-edit-account .edit-account-back-btn {
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--terracotta);
  color: var(--terracotta);
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.mf-edit-account .edit-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.mf-edit-account .edit-account-grid-column { display: grid; grid-template-columns: 1fr; gap: 28px; }

.mf-edit-account .edit-account-panel {
  position: relative;
  background: var(--off-white);
  padding: 22px 22px 28px;
  margin: 0;
  border: 2px solid #bcb0a9;
  border-top: 0;
  border-bottom: 0;
  /* Breathing room when scrolled to via an anchor (e.g. #mf-payment from the
     subscription portal's "Payment details" button). */
  scroll-margin-top: 30px;
}
.mf-edit-account .edit-account-panel::after {
  content: "";
  position: absolute;
  left: -1px; right: -1px; bottom: -7px;
  height: 8px;
  background: url("../img/bg-shape-zigzag.png") repeat-x bottom center;
  background-size: auto 178px;
  pointer-events: none;
}
.mf-edit-account .edit-account-panel .panel-title {
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sage);
  color: #000;
}

.mf-edit-account .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.mf-edit-account .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mf-edit-account .input,
.mf-edit-account textarea.input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--sage);
  border-radius: 5px;
  background: #fff;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #000;
}
.mf-edit-account textarea.input { height: 90px; padding: 10px 14px; resize: vertical; }
.mf-edit-account .input::placeholder {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b9b4ad;
  font-weight: 600;
}
.mf-edit-account .input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(110,150,154,.18); }

.mf-edit-account .edit-confirm-btn,
.mf-edit-account .edit-cancel-btn {
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px;
  /* A global button rule sets height:40px + line-height:40px, which pushed the
     label to the bottom of the box. Reset both and centre the label so padding
     defines the height and the text sits in the middle. */
  height: auto;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mf-edit-account .edit-confirm-btn { background: var(--teal); color: #fff; }
.mf-edit-account .edit-cancel-btn { background: var(--orange); color: #fff; }
.mf-edit-account .edit-confirm-btn:hover,
.mf-edit-account .edit-cancel-btn:hover { filter: brightness(1.06); }

.mf-edit-account .edit-help-text { margin: 10px 0 0; font-size: 12px; line-height: 1.35; color: #000; font-weight: 600; }
.mf-edit-account .edit-info-block { margin-bottom: 12px; }
.mf-edit-account .edit-info-block h3 { font-family: var(--font-body); font-size: 13px; font-weight: 700; margin: 0 0 3px; color: #000; }
.mf-edit-account .edit-info-block p { margin: 0; font-size: 12px; line-height: 1.35; color: #000; font-weight: 600; }
.mf-edit-account .payment-method-copy { margin-top: 14px; }

.mf-edit-account .card-field { position: relative; }
.mf-edit-account .card-field .input { padding-right: 72px; }
.mf-edit-account .card-icons { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; gap: 3px; }
.mf-edit-account .card-icons span { width: 18px; height: 12px; border-radius: 2px; background: var(--teal); border: 1px solid #fff; display: block; }
.mf-edit-account .card-icons span:nth-child(2) { background: var(--orange); }
.mf-edit-account .card-icons span:nth-child(3) { background: #e5e5e5; border-color: var(--sage); }

.mf-edit-account .mf-account-note {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  background: #fff;
  border: 1px dashed var(--sage);
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

/* ---------- Login / Register page ---------- */
.mf-login .edit-account-grid {
  max-width: 920px;
  margin: var(--sp-4) auto var(--sp-6);
}
.mf-login .edit-account-grid.mf-login--single {
  grid-template-columns: 1fr;
  max-width: 480px;
}
.mf-login .edit-account-panel { padding-bottom: 30px; }
.mf-login .required { color: var(--terracotta); font-weight: 700; }

/* Remember me row */
.mf-login .mf-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 13px;
  color: #000;
  cursor: pointer;
}
.mf-login .mf-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); }

/* Lost password link */
.mf-login .mf-lost-password { margin: 14px 0 0; font-size: 13px; }
.mf-login .mf-lost-password a { color: var(--teal); text-decoration: underline; }
.mf-login .mf-lost-password a:hover { color: var(--dark-green); }

/* Fields injected via WooCommerce/IDS hooks use .form-row + .input-text
   (e.g. the IDS "Delivery postcode" field). Make them stack like .field and
   pick up the same input styling so they align with the rest of the form. */
.mf-login .woocommerce-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}
.mf-login .woocommerce-form input.input-text,
.mf-login .woocommerce-form select.input-text {
  width: 100%;
  height: 42px;
  border: 1px solid var(--sage);
  border-radius: 5px;
  background: #fff;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #000;
}
.mf-login .woocommerce-form input.input-text:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(110, 150, 154, .18);
}
.mf-login .woocommerce-form .form-row small { margin-top: 6px; font-weight: 600; }

/* Field-level validation highlight */
.mf-login .woocommerce-invalid input.input-text,
.mf-login .woocommerce-invalid input.input,
.mf-login .woocommerce-invalid .input {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .14);
}
.mf-login .woocommerce-validated input.input-text { border-color: var(--teal); }

/* =====================================================================
   MY ACCOUNT — dashboard / orders / addresses / downloads
   WooCommerce default templates styled to the Mayfield theme. No design HTML
   exists for these; styled to theme tokens.
   ===================================================================== */

/* Layout: navigation sidebar + content.
   Flexbox (not grid) so that when a page HIDES the nav (edit-account) or has no
   nav at all (login / lost-password), the content fills the row instead of being
   squished into the 250px sidebar column. WooCommerce does NOT add a
   'woocommerce-edit-account' body class, so we can't target edit-account that
   way — flex handles the hidden-nav case automatically. */
.woocommerce-account .mf-page-content .woocommerce {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}
.woocommerce-account .woocommerce-MyAccount-navigation { flex: 0 0 250px; }
@media (max-width: 768px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 100%;
    width: 100%;
}
.woocommerce-account .woocommerce-MyAccount-content {
   
     flex: 0 0 100%;
    width: 100%;
}
}
.woocommerce-account .woocommerce-MyAccount-content { flex: 1 1 auto; min-width: 0; }

/* Dashboard-only refinement: turn the intro into an off-white card with a torn
   zigzag bottom edge (matching the account panels), instead of a bare strip. The
   .mf-account-zigzag element is printed by woocommerce/myaccount/dashboard.php,
   which renders on the account home only; the card styling is scoped to the
   .woocommerce-dashboard body class — so no other account screen or page is
   affected. */
body.woocommerce-dashboard .woocommerce-MyAccount-content {
  position: relative;
  background: var(--off-white);
  border: 2px solid #bcb0a9;
  border-top: 0;
  border-bottom: 0;
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
}
body.woocommerce-dashboard .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
body.woocommerce-dashboard .woocommerce-MyAccount-content .mf-account-zigzag {
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -7px;
  height: 8px;
  margin: 0;
  background: url("../img/bg-shape-zigzag.png") repeat-x bottom center;
  background-size: auto 178px;
}
/* edit-account / login / lost-password render their own full-width panel layout
   directly inside .woocommerce — let it span the full row. */
.woocommerce-account .mf-page-content .woocommerce > .mf-edit-account { flex: 1 1 100%; }

/* Navigation sidebar */
.woocommerce-MyAccount-navigation {
  background: var(--off-white);
  border: 2px solid #bcb0a9;
  border-top: 0;
  border-bottom: 0;
  padding: 6px 0;
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 12px 18px;
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
}
.woocommerce-MyAccount-navigation li:last-child a { border-bottom: 0; }
.woocommerce-MyAccount-navigation li a:hover { color: var(--teal); }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--teal); color: #fff; }

/* Content area */
/* .woocommerce-MyAccount-content {
  background: var(--off-white);
  border: 2px solid #bcb0a9;
  border-top: 0;
  border-bottom: 0;
  padding: var(--sp-4) var(--sp-5);
} */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 { font-family: var(--font-head); color: #000; margin: 0 0 var(--sp-3); }
.woocommerce-MyAccount-content p { color: var(--black); }
/* Plain content links → teal. Exclude button-styled anchors (.edit-confirm-btn /
   .edit-cancel-btn) so they keep their white label on the teal/orange fill. */
.woocommerce-MyAccount-content a:not(.button):not(.edit-confirm-btn):not(.edit-cancel-btn) {
    color: var(--terracotta);
}.woocommerce-MyAccount-content a:not(.button):not(.edit-confirm-btn):not(.edit-cancel-btn):hover { color: var(--dark-green); }

/* Orders page: wrap the table in an off-white card with a torn zigzag bottom
   edge (matches the dashboard / account panels). Scoped to the orders endpoint
   via .woocommerce-orders, so no other account screen is affected. */
body.woocommerce-orders .woocommerce-MyAccount-content {
  position: relative;
  background: var(--off-white);
  border: 2px solid #bcb0a9;
  border-top: 0;
  border-bottom: 0;
  padding: var(--sp-5);
}
body.woocommerce-orders .woocommerce-MyAccount-content::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -7px;
  height: 8px;
  background: url("../img/bg-shape-zigzag.png") repeat-x bottom center;
  background-size: auto 178px;
  pointer-events: none;
}
body.woocommerce-orders .woocommerce-orders-table { margin-bottom: var(--sp-3); }
body.woocommerce-orders .woocommerce-orders-table tr:last-child td { border-bottom: 0; }

/* Order status pill (rendered by mayfield_account_order_status_pill) */
.mf-order-status {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  background: var(--sage);
  color: #2c2c2c;
}
.mf-order-status.status-completed { background: #d8e8df; color: var(--dark-green); }
.mf-order-status.status-processing { background: #dfeaeb; color: var(--teal); }
.mf-order-status.status-on-hold { background: #f6e3d4; color: #b5651d; }
.mf-order-status.status-pending { background: #ece7df; color: #6b6258; }
.mf-order-status.status-cancelled,
.mf-order-status.status-failed,
.mf-order-status.status-refunded { background: #f3dcd8; color: #9a3327; }

/* Orders / generic account tables */
.woocommerce-MyAccount-content table.shop_table,
.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--sp-4);
  background: transparent;
  border: 0;
}
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-orders-table th {
  text-align: left;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 16px;
  color: #000;
  padding: 12px 10px;
  border-bottom: 1px solid var(--sage);
}
.woocommerce-MyAccount-content table.shop_table td,
.woocommerce-orders-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--sage);
  font-size: 14px;
  vertical-align: middle;
}

/* Account buttons (View order, etc.) */
.woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-MyAccount-content .button {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.woocommerce-MyAccount-content .button.alt { background: var(--orange); }
.woocommerce-MyAccount-content .button:hover { filter: brightness(1.06); }
.woocommerce-orders-table .order-actions .button + .button { margin-left: 6px; }

/* Addresses */
.woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-3); }
.woocommerce-MyAccount-content address { font-style: normal; line-height: 1.7; }
.woocommerce-MyAccount-content .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }

/* Payment methods / Add payment method (Stripe UPE element) — ensure the
   gateway's card field is visible and has height (WooCommerce/Stripe core CSS is
   not loaded since Storefront CSS is dequeued, so the element can collapse). */
.woocommerce-account ul.payment_methods,
.woocommerce-account ul.woocommerce-PaymentMethods { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.woocommerce-account .payment_box,
.woocommerce-account .woocommerce-PaymentBox {
  display: block !important; /* beats WC's inline style="display:none" on the box */
  background: #fff;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: var(--sp-3);
  margin: 8px 0 var(--sp-3);
}
.woocommerce-account .payment_box .wc-stripe-elements-field,
.woocommerce-account .payment_box #wc-stripe-card-element,
.woocommerce-account .payment_box .wc-stripe-upe-element,
.woocommerce-account #wc-stripe-upe-element,
.woocommerce-account .wc-stripe-upe-element,
.woocommerce-account .StripeElement {
  display: block;
  min-height: 44px;
  background: #fff;
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 12px;
}
.woocommerce-account .payment_box iframe { min-height: 22px; }

@media (max-width: 768px) {
  .mf-edit-account .edit-account-grid { grid-template-columns: 1fr; gap: 24px; }
  .mf-edit-account .edit-account-grid-column { gap: 24px; }
  .mf-login .edit-account-grid { grid-template-columns: 1fr; gap: 24px; }
  .mf-edit-account .field-row { grid-template-columns: 1fr; gap: 0; }
  .mf-edit-account .edit-account-head .page-title { font-size: 32px; }

  /* My Account responsive */
  .woocommerce-account .mf-page-content .woocommerce { flex-direction: column; gap: var(--sp-4); }
  .woocommerce-orders-table thead { display: none; }
  .woocommerce-orders-table tr { display: block; border-bottom: 1px solid var(--sage); padding: 8px 0; }
  .woocommerce-orders-table td { display: flex; justify-content: space-between; align-items: center; border: 0; padding: 6px 10px; }
  .woocommerce-orders-table td::before { content: attr(data-title); font-weight: 700; }
  .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr; }
  
}

/* =====================================================================
   VIEW ORDER  (my-account/view-order/{id})
   Same order-details / customer-details markup as the order-received page,
   styled to match. Scoped to the .woocommerce-view-order endpoint.
   ===================================================================== */
body.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type {
  font-size: 16px;
  margin: 0 0 var(--sp-4);
  color: #000;
}
body.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type mark {
  background: transparent;
  color: var(--teal);
  font-weight: 700;
  padding: 0;
}

/* Order details + customer details → off-white cards with zigzag bottom edge */
body.woocommerce-view-order .woocommerce-order-details,
body.woocommerce-view-order .woocommerce-customer-details {
  position: relative;
  background: var(--off-white);
  border: 2px solid #bcb0a9;
  border-top: 0;
  border-bottom: 0;
  padding: var(--sp-5);
  margin: 0 0 30px;
}
body.woocommerce-view-order .woocommerce-order-details::after,
body.woocommerce-view-order .woocommerce-customer-details::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -7px;
  height: 8px;
  background: url("../img/bg-shape-zigzag.png") repeat-x bottom center;
  background-size: auto 178px;
  pointer-events: none;
}
body.woocommerce-view-order .woocommerce-order-details__title {
  font-family: var(--font-head);
  font-size: 26px;
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--sage);
  color: #000;
}

/* Items table — fixed layout + wrapping so it never overflows the card */
body.woocommerce-view-order .woocommerce-table--order-details {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
body.woocommerce-view-order .woocommerce-table--order-details th,
body.woocommerce-view-order .woocommerce-table--order-details td {
  padding: 11px 6px;
  text-align: left;
  border-bottom: 1px solid var(--sage);
  font-size: 15px;
  color: #000;
  overflow-wrap: break-word;
  word-break: break-word;
}
body.woocommerce-view-order .woocommerce-table--order-details thead th {
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
body.woocommerce-view-order .woocommerce-table--order-details td.product-total,
body.woocommerce-view-order .woocommerce-table--order-details th.product-total,
body.woocommerce-view-order .woocommerce-table--order-details tfoot td {
  text-align: right;
  width: 32%;
}
body.woocommerce-view-order .woocommerce-table--order-details tfoot th { font-weight: 700; text-align: left; }
body.woocommerce-view-order .woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-view-order .woocommerce-table--order-details tfoot tr:last-child td {
  font-size: 18px;
  color: var(--dark-green);
  border-bottom: 0;
}
body.woocommerce-view-order .woocommerce-table--order-details a { color: var(--teal); font-weight: 700; }
body.woocommerce-view-order .woocommerce-table--order-details .wc-item-meta {
  margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: #5b5249;
}

/* Customer / addresses → two columns */
body.woocommerce-view-order .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin: 0;
}
body.woocommerce-view-order .woocommerce-column__title {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 0 0 8px;
  color: #000;
}
body.woocommerce-view-order .woocommerce-customer-details address {
  font-style: normal;
  line-height: 1.55;
  font-size: 15px;
  border: 0;
  padding: 0;
  color: #000;
}
@media (max-width: 600px) {
  body.woocommerce-view-order .woocommerce-columns--addresses { grid-template-columns: 1fr; }
}

/* =====================================================================
   ADDRESSES  (my-account/edit-address)
   Two views: the address list (Billing / Shipping cards) and the single
   address edit form. Scoped to the .woocommerce-edit-address endpoint.
   ===================================================================== */
body.woocommerce-edit-address .woocommerce-MyAccount-content > p:first-of-type {
  font-size: 16px;
  margin: 0 0 var(--sp-4);
  color: #000;
}

/* --- List view: Billing / Shipping address cards --- */
body.woocommerce-edit-address .woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin: 0;
}
body.woocommerce-edit-address .woocommerce-Address {
  position: relative;
  background: var(--off-white);
  border: 2px solid #bcb0a9;
  border-top: 0;
  border-bottom: 0;
  padding: var(--sp-5);
}
body.woocommerce-edit-address .woocommerce-Address::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -7px;
  height: 8px;
  background: url("../img/bg-shape-zigzag.png") repeat-x bottom center;
  background-size: auto 178px;
  pointer-events: none;
}
body.woocommerce-edit-address .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--sage);
}
body.woocommerce-edit-address .woocommerce-Address-title h2 {
  font-family: var(--font-head);
  font-size: 24px;
  margin: 0;
  color: #000;
}
body.woocommerce-edit-address .woocommerce-Address-title .edit {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid var(--terracotta);
  border-radius: 4px;
  padding: 5px 12px;
  white-space: nowrap;
}
body.woocommerce-edit-address .woocommerce-Address-title .edit:hover { background: var(--terracotta); color: #fff; }
body.woocommerce-edit-address .woocommerce-Address address {
  font-style: normal;
  line-height: 1.6;
  font-size: 15px;
  color: #000;
}

/* --- Form view: single address edit form as a card --- */
body.woocommerce-edit-address .woocommerce-MyAccount-content > form {
  position: relative;
  background: var(--off-white);
  border: 2px solid #bcb0a9;
  border-top: 0;
  border-bottom: 0;
  padding: var(--sp-5);
  max-width: 680px;
}
body.woocommerce-edit-address .woocommerce-MyAccount-content > form::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -7px;
  height: 8px;
  background: url("../img/bg-shape-zigzag.png") repeat-x bottom center;
  background-size: auto 178px;
  pointer-events: none;
}
body.woocommerce-edit-address .woocommerce-MyAccount-content > form > h2 {
  font-family: var(--font-head);
  font-size: 28px;
  margin: 0 0 var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--sage);
  color: #000;
}
body.woocommerce-edit-address .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--sp-3);
}
body.woocommerce-edit-address .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
}
body.woocommerce-edit-address .form-row-first { grid-column: 1; }
body.woocommerce-edit-address .form-row-last { grid-column: 2; }
body.woocommerce-edit-address .form-row-wide,
body.woocommerce-edit-address .address-field { grid-column: 1 / -1; }
body.woocommerce-edit-address .form-row label {
  font-weight: 600;
  font-size: 13px;
  color: #000;
}
body.woocommerce-edit-address .woocommerce-input-wrapper { width: 100%; }
body.woocommerce-edit-address input.input-text,
body.woocommerce-edit-address select,
body.woocommerce-edit-address .select2-container .select2-selection {
  width: 100%;
  height: 42px;
  min-height: 42px;
  border: 1px solid var(--sage);
  border-radius: 5px;
  background: #fff;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #000;
}
body.woocommerce-edit-address .select2-container .select2-selection__rendered { line-height: 40px; padding: 0; color: #000; }
body.woocommerce-edit-address .select2-container .select2-selection__arrow { height: 40px; }
body.woocommerce-edit-address input.input-text:focus,
body.woocommerce-edit-address select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(110, 150, 154, .18);
}
body.woocommerce-edit-address .woocommerce-MyAccount-content > form button.button {
  margin-top: var(--sp-2);
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 13px 28px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
body.woocommerce-edit-address .woocommerce-MyAccount-content > form button.button:hover { filter: brightness(1.06); }

@media (max-width: 600px) {
  body.woocommerce-edit-address .woocommerce-Addresses {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    margin: 0;
}
  body.woocommerce-edit-address .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* =====================================================================
   PAYMENT METHODS  (my-account/payment-methods)
   Saved-cards table + "Add payment method" button, wrapped in a card to match
   the rest of the account. Scoped to the .woocommerce-payment-methods endpoint.
   ===================================================================== */
body.woocommerce-payment-methods .woocommerce-MyAccount-content {
  position: relative;
  background: var(--off-white);
  border: 2px solid #bcb0a9;
  border-top: 0;
  border-bottom: 0;
  padding: var(--sp-5);
}
body.woocommerce-payment-methods .woocommerce-MyAccount-content::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -7px;
  height: 8px;
  background: url("../img/bg-shape-zigzag.png") repeat-x bottom center;
  background-size: auto 178px;
  pointer-events: none;
}
/* "No saved methods found." → plain note inside the card (no card-in-card) */
body.woocommerce-payment-methods .woocommerce-info {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--teal);
  border-radius: 0;
  padding: 2px 0 2px 14px;
  margin: 0 0 var(--sp-4);
  font-size: 15px;
  font-weight: 600;
}
/* Saved-cards table */
body.woocommerce-payment-methods .woocommerce-MyAccount-paymentMethods {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--sp-4);
}
body.woocommerce-payment-methods .woocommerce-MyAccount-paymentMethods th {
  text-align: left;
  font-family: var(--font-body);
  color: var(--teal);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 700;
  padding: 10px 8px;
  border-bottom: 1px solid var(--sage);
}
body.woocommerce-payment-methods .woocommerce-MyAccount-paymentMethods td {
  padding: 13px 8px;
  border-bottom: 1px solid var(--sage);
  font-size: 14px;
  vertical-align: middle;
  color: #000;
}
body.woocommerce-payment-methods .woocommerce-MyAccount-paymentMethods .payment-method-actions .button {
  padding: 7px 14px;
  font-size: 11px;
}
body.woocommerce-payment-methods .woocommerce-MyAccount-paymentMethods .payment-method-actions .button + .button { margin-left: 6px; }
body.woocommerce-payment-methods .woocommerce-MyAccount-paymentMethods td.method .card-type,
body.woocommerce-payment-methods .woocommerce-MyAccount-paymentMethods td.method dd { display: inline; margin: 0; }
/* "Add payment method" button spacing (button itself is teal via .button) */
body.woocommerce-payment-methods a.button { margin-top: var(--sp-2); }

/* ---------- Saved payment cards (Payment details panel) ---------- */
.mf-edit-account .mf-saved-cards { list-style: none; margin: 12px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mf-edit-account .mf-saved-card {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 12px 14px; border: 1px solid var(--sage); border-radius: 6px; background: #fff;
  font-family: var(--font-body); font-size: 15px; color: #000;
}
.mf-edit-account .mf-saved-card .mf-card-brand { font-weight: 700; }
.mf-edit-account .mf-saved-card .mf-card-exp { color: #6b6b6b; font-size: 13px; }
.mf-edit-account .mf-saved-card .mf-card-default {
  margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); border: 1px solid var(--teal); border-radius: 999px; padding: 2px 8px;
}
