/* My Account: login and register, the account menu, dashboard, orders, addresses and account details.
   Same language as the rest of the shop: white cards on paper, peach actions, sentence-case buttons. */

/* Icons per account section (menu and dashboard tiles). */
.woocommerce-MyAccount-navigation-link, .fcn-account-tile { --fcn-account-icon: url("icons/grid.svg"); }
.woocommerce-MyAccount-navigation-link--orders, .fcn-account-tile--orders { --fcn-account-icon: url("icons/bag.svg"); }
.woocommerce-MyAccount-navigation-link--edit-address, .fcn-account-tile--edit-address { --fcn-account-icon: url("icons/pin.svg"); }
.woocommerce-MyAccount-navigation-link--edit-account, .fcn-account-tile--edit-account { --fcn-account-icon: url("icons/user.svg"); }
.woocommerce-MyAccount-navigation-link--wishlist, .fcn-account-tile--wishlist,
.woocommerce-MyAccount-navigation-link--verlanglijst, .fcn-account-tile--verlanglijst { --fcn-account-icon: url("icons/heart.svg"); }
.woocommerce-MyAccount-navigation-link--downloads, .fcn-account-tile--downloads { --fcn-account-icon: url("icons/download.svg"); }
.woocommerce-MyAccount-navigation-link--payment-methods, .fcn-account-tile--payment-methods { --fcn-account-icon: url("icons/card.svg"); }
.woocommerce-MyAccount-navigation-link--customer-logout { --fcn-account-icon: url("icons/logout.svg"); }

/* Layout: the menu beside the content. */
.woocommerce-account .fcn-page-content > .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
/* WooCommerce's clearfix pseudo-elements would take grid cells. */
.woocommerce-account .fcn-page-content > .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
.woocommerce-account .fcn-page-content > .woocommerce:has(> .woocommerce-MyAccount-navigation)::after { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-content > :first-child:not(.woocommerce-notices-wrapper),
.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty + * { margin-top: 0; }

/* The account menu. */
.woocommerce-MyAccount-navigation { position: sticky; top: 24px; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--fcn-line); border-radius: var(--fcn-panel-radius); }
.woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px; border-radius: var(--fcn-item-radius); color: var(--fcn-ink); font-size: 15px; line-height: 1.3; }
.woocommerce-MyAccount-navigation a::before { content: ""; flex: none; width: 20px; height: 20px; background: var(--fcn-muted); -webkit-mask: var(--fcn-account-icon) center/contain no-repeat; mask: var(--fcn-account-icon) center/contain no-repeat; }
.woocommerce-MyAccount-navigation a:hover { background: #f8efe8; color: var(--fcn-ink); }
.woocommerce-MyAccount-navigation .is-active a { background: #f8e6d9; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a::before { background: var(--fcn-accent); }
.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px !important; padding-top: 6px; border-top: 1px solid var(--fcn-line); }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--fcn-muted); }

/* Content type. */
.woocommerce-MyAccount-content h2 { font-size: 28px; }
.woocommerce-MyAccount-content h3 { font-size: 18px; font-weight: 600; }
.woocommerce-MyAccount-content p a:not(.button), .woocommerce-account .lost_password a { color: var(--fcn-accent); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-MyAccount-content mark { background: none; color: inherit; font-weight: 600; }

/* Buttons: sentence case, like the cart and product cards. */
.woocommerce-account .woocommerce a.button,
.woocommerce-account .woocommerce button.button { min-height: 44px; padding: 10px 18px; border: 1px solid #d59168; border-radius: 6px; font: 600 14px/1.3 var(--fcn-sans); text-transform: none; letter-spacing: 0; }
.woocommerce-account .woocommerce-orders-table a.button,
.woocommerce-account .woocommerce-table--billit-documents a.button,
.woocommerce-account .woocommerce-pagination a.button,
.woocommerce-account .woocommerce-Address .edit { min-height: 38px; padding: 8px 14px; background: #fff; color: var(--fcn-ink); font: 600 13px/1.3 var(--fcn-sans); border: 1px solid #d59168; border-radius: 6px; }
.woocommerce-account .woocommerce-orders-table a.button:hover,
.woocommerce-account .woocommerce-table--billit-documents a.button:hover,
.woocommerce-account .woocommerce-pagination a.button:hover,
.woocommerce-account .woocommerce-Address .edit:hover { background: #f8e9de; color: var(--fcn-ink); }

/* Notices (e.g. "Bevestig je e-mailadres"): the button beside the text, below it on phones. */
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error { display: flex; align-items: center; gap: 18px; margin: 0 0 24px; padding: 18px 18px 18px 50px; border: 1px solid #e6b99b; border-radius: 12px; background: #f8e6d9; color: var(--fcn-ink); font-size: 15px; line-height: 1.55; }
.woocommerce-account .woocommerce-error { flex-direction: column; align-items: flex-start; gap: 4px; border-color: #d99a8a; background: #fbe9e5; }
.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-error::before { top: 20px; left: 20px; color: #a3653e; }
.woocommerce-account .woocommerce-info::after { display: none; }
.woocommerce-account .woocommerce-info a.button { order: 1; flex: none; float: none; margin: 0 0 0 auto; background: var(--fcn-peach); }
.woocommerce-account .woocommerce-info a.button:hover { background: #d59168; }

/* Dashboard. */
.fcn-account-hello h2 { margin-bottom: 8px; }
.fcn-account-hello p { color: var(--fcn-muted); }
.fcn-account-latest { margin: 0 0 28px; padding: 20px 24px; background: #fff; border: 1px solid var(--fcn-line); border-radius: var(--fcn-panel-radius); }
.fcn-account-latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fcn-account-latest-head h3 { margin: 0; }
.fcn-account-latest-head a { color: var(--fcn-accent); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.fcn-account-latest-body { display: flex; align-items: center; gap: 24px; }
.fcn-account-latest dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; flex: 1; margin: 0; }
.fcn-account-latest dt { margin-bottom: 2px; color: var(--fcn-muted); font-size: 13px; }
.fcn-account-latest dd { margin: 0; font-weight: 600; }
.fcn-account-latest .button { flex: none; background: #fff !important; }
.fcn-account-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.fcn-account-tile { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: start; padding: 18px; background: #fff; border: 1px solid var(--fcn-line); border-radius: var(--fcn-panel-radius); color: var(--fcn-ink); }
.fcn-account-tile::before { content: ""; grid-row: span 2; width: 24px; height: 24px; background: var(--fcn-accent); -webkit-mask: var(--fcn-account-icon) center/contain no-repeat; mask: var(--fcn-account-icon) center/contain no-repeat; }
.fcn-account-tile:hover { border-color: #d59168; background: #fffaf6; color: var(--fcn-ink); }
.fcn-account-tile-title { font-weight: 600; }
.fcn-account-tile-text { color: var(--fcn-muted); font-size: 14px; line-height: 1.4; }

/* Order status: a coloured dot before the status (table and dashboard). */
.fcn-order-status::before,
.woocommerce-orders-table__cell-order-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 0; border-radius: 50%; background: #c9b8ab; vertical-align: middle; }
.fcn-order-status--completed::before, .woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status::before { background: #6f9f6a; }
.fcn-order-status--processing::before, .woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status::before { background: #dfa078; }
.fcn-order-status--on-hold::before, .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status::before,
.fcn-order-status--pending::before, .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status::before { background: #e3c15b; }
.fcn-order-status--cancelled::before, .woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status::before,
.fcn-order-status--failed::before, .woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status::before { background: #c46a5a; }

/* Tables (orders, order details): a white card with light rows. */
.woocommerce-account .woocommerce table.shop_table { margin: 0 0 24px; background: #fff; border: 1px solid var(--fcn-line); border-collapse: separate; border-spacing: 0; border-radius: var(--fcn-panel-radius); overflow: hidden; }
.woocommerce-account .woocommerce table.shop_table th,
.woocommerce-account .woocommerce table.shop_table td { padding: 14px 18px; border-top: 1px solid var(--fcn-line); line-height: 1.45; vertical-align: middle; }
.woocommerce-account .woocommerce table.shop_table thead th { border-top: 0; color: var(--fcn-muted); font-size: 13px; font-weight: 600; }
.woocommerce-account .woocommerce table.shop_table tfoot th { font-weight: 600; }
.woocommerce-account .woocommerce table.shop_table tfoot tr:last-child > * { font-size: 17px; }
.woocommerce-account .woocommerce-orders-table__cell-order-number a { font-weight: 600; color: var(--fcn-ink); }
.woocommerce-account .woocommerce-orders-table__cell-order-actions { text-align: right; }
.woocommerce-account .woocommerce-orders-table__cell-order-actions .button + .button { margin-left: 6px; }
/* Invoices and credit notes (Billit) on the order page: a card like the order table. */
.woocommerce-account .woocommerce-billit-documents { margin-top: 28px; }
.woocommerce-account .woocommerce-billit-documents h2 { font-size: 22px; }
.woocommerce-account .woocommerce-table--billit-documents .billit-document-download { text-align: right; }
.woocommerce-account .woocommerce-table--order-details .product-total { width: 1%; text-align: right; white-space: nowrap; }
.woocommerce-account .woocommerce-table--order-details tfoot td { text-align: right; white-space: nowrap; }
.woocommerce-account .woocommerce-table--order-details tfoot td small { white-space: normal; }
.woocommerce-account .woocommerce-table--order-details tfoot small { display: block; color: var(--fcn-muted); font-weight: 400; }
.woocommerce-account .woocommerce-table--order-details .product-quantity { font-weight: 400; color: var(--fcn-muted); }
.woocommerce-account .woocommerce-pagination { display: flex; gap: 10px; }

/* Customer details and addresses as cards. */
.woocommerce-account .woocommerce .col2-set::before,
.woocommerce-account .woocommerce .col2-set::after { display: none; }
.woocommerce-account .woocommerce .col2-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: auto; }
.woocommerce-account .woocommerce .col2-set > * { float: none; width: auto; max-width: none; }
.woocommerce-account .woocommerce-Address,
.woocommerce-account .woocommerce-customer-details .woocommerce-column,
.woocommerce-account .woocommerce-customer-details:not(:has(.col2-set)) { padding: 20px 22px; background: #fff; border: 1px solid var(--fcn-line); border-radius: var(--fcn-panel-radius); }
.woocommerce-account .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.woocommerce-account .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-Address-title::after { display: none; }
.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-column__title { margin: 0; font-size: 22px; text-align: left; }
.woocommerce-account .woocommerce-Address-title h2 { flex: 1; width: auto; float: none; }
.woocommerce-account .woocommerce-column__title { margin-bottom: 12px; }
.woocommerce-account .woocommerce-Address .edit { display: inline-flex; align-items: center; float: none; flex: none; font-size: 0 !important; }
.woocommerce-account .woocommerce-Address .edit::after { content: "Bewerken"; font-size: 13px; }
.woocommerce-account .woocommerce-Address address,
.woocommerce-account .woocommerce-customer-details .woocommerce-column address { padding: 0; border: 0; font-style: normal; line-height: 1.6; }
.woocommerce-account .woocommerce-customer-details > address { padding: 0; border: 0; font-style: normal; line-height: 1.6; }
.woocommerce-account .woocommerce-customer-details .vatify-order-vat { margin: 6px 0 0; }
.woocommerce-account .woocommerce-customer-details p[class^="woocommerce-customer-details--"] { margin: 6px 0 0; padding: 0; }
.woocommerce-account .woocommerce-customer-details p[class^="woocommerce-customer-details--"]::before { display: none; }
.woocommerce-account .woocommerce-customer-details { margin-top: 28px; }

/* Forms (addresses, account details, login, register, lost password). */
.woocommerce-account .woocommerce-MyAccount-content form { max-width: 760px; }
.woocommerce-account .woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce-account .woocommerce form .form-row label { margin-bottom: 6px; font-size: 15px; line-height: 1.4; }
.woocommerce-account .woocommerce form .form-row .optional { color: var(--fcn-muted); }
.woocommerce-account .woocommerce form .form-row input.input-text,
.woocommerce-account .woocommerce form .form-row textarea,
.woocommerce-account .woocommerce form .form-row select,
.woocommerce-account .woocommerce .select2-container .select2-selection--single { min-height: 48px; padding: 12px 14px; border: 1px solid #d9ad90; border-radius: 8px; background: #fffaf6; color: var(--fcn-ink); font-size: 16px; line-height: 22px; box-shadow: none; }
.woocommerce-account .woocommerce .select2-container .select2-selection--single { display: flex; align-items: center; }
.woocommerce-account .woocommerce .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 22px; }
.woocommerce-account .woocommerce .select2-container .select2-selection--single .select2-selection__arrow { top: 50%; right: 8px; transform: translateY(-50%); }
.woocommerce-account .woocommerce form .form-row input.input-text:focus,
.woocommerce-account .woocommerce form .form-row select:focus { border-color: var(--fcn-accent); outline: 2px solid #cf926c; outline-offset: 2px; }
.woocommerce-account .woocommerce form .show-password-input { top: 50%; right: 12px; transform: translateY(-50%); }
.woocommerce-account .woocommerce form .form-row em,
.woocommerce-account #account_display_name_description { display: block; margin-top: 6px; color: var(--fcn-muted); font-size: 13px; font-style: normal; }
.woocommerce-account .woocommerce fieldset { margin: 24px 0; padding: 18px 22px 4px; border: 1px solid var(--fcn-line); border-radius: var(--fcn-panel-radius); background: #fff; }
.woocommerce-account .woocommerce fieldset legend { padding: 0 8px; font: 20px/1.2 var(--fcn-serif); }
.woocommerce-account .woocommerce form .button[type="submit"],
.woocommerce-account .woocommerce form button[name="save_address"],
.woocommerce-account .woocommerce form button[name="save_account_details"] { margin-top: 4px; }

/* Login and register: two cards side by side. */
.woocommerce-account #customer_login.col2-set { gap: 32px; }
.woocommerce-account #customer_login h2 { font-size: 30px; }
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register,
.woocommerce-account .woocommerce form.lost_reset_password { margin: 0; padding: 28px; background: #fff; border: 1px solid var(--fcn-line); border-radius: var(--fcn-panel-radius); }
.woocommerce-account .woocommerce form.lost_reset_password { max-width: 560px; }
.woocommerce-account .woocommerce form.login .form-row:has(.woocommerce-form-login__submit) { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.woocommerce-account .woocommerce form.login .form-row:has(.woocommerce-form-login__submit)::before,
.woocommerce-account .woocommerce form.login .form-row:has(.woocommerce-form-login__submit)::after { display: none; } /* Clearfix pseudo-elements would add flex gaps. */
.woocommerce-account .woocommerce .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; order: 1; margin: 0; }
.woocommerce-account .woocommerce .woocommerce-form-login__rememberme input { width: 18px; height: 18px; margin: 0; accent-color: var(--fcn-accent); }
.woocommerce-account .woocommerce .woocommerce-form-login__submit,
.woocommerce-account .woocommerce .woocommerce-form-register__submit { order: 2; width: 100%; float: none; margin: 0 !important; }
.woocommerce-account .woocommerce .lost_password { margin: 14px 0 0; font-size: 14px; }
.woocommerce-account .woocommerce-privacy-policy-text p { color: var(--fcn-muted); font-size: 13px; line-height: 1.5; }
.woocommerce-account .woocommerce-privacy-policy-text a { color: var(--fcn-accent); text-decoration: underline; }

@media (max-width: 900px) {
  .woocommerce-account .fcn-page-content > .woocommerce:has(> .woocommerce-MyAccount-navigation) { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  /* The menu becomes a row of chips that scrolls sideways. */
  .woocommerce-MyAccount-navigation { position: static; margin: 0 -16px; }
  .woocommerce-MyAccount-navigation ul { flex-direction: row; gap: 8px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; background: none; border: 0; border-radius: 0; }
  .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
  .woocommerce-MyAccount-navigation li { flex: none; }
  .woocommerce-MyAccount-navigation a { gap: 8px; min-height: 40px; padding: 8px 14px; background: #fff; border: 1px solid var(--fcn-line); border-radius: 999px; font-size: 14px; white-space: nowrap; }
  .woocommerce-MyAccount-navigation a::before { width: 18px; height: 18px; }
  .woocommerce-MyAccount-navigation .is-active a { border-color: #d59168; }
  .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 0 !important; padding-top: 0; border-top: 0; }
  .fcn-account-latest dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .woocommerce-account .woocommerce .col2-set { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-account .woocommerce form.login,
  .woocommerce-account .woocommerce form.register,
  .woocommerce-account .woocommerce form.lost_reset_password { padding: 20px 18px; }
  .woocommerce-account .woocommerce-info { flex-direction: column; align-items: stretch; gap: 12px; padding: 15px 14px 15px 44px; font-size: 14px; }
  .woocommerce-account .woocommerce-info::before { top: 17px; left: 16px; }
  .woocommerce-account .woocommerce-info a.button { margin: 0; align-self: flex-start; }
  .fcn-account-latest { padding: 18px; }
  .fcn-account-latest-body { flex-direction: column; align-items: stretch; gap: 16px; }
  /* Orders: one card per order (WooCommerce hides the order number on phones and labels every cell). */
  .woocommerce-account .woocommerce table.my_account_orders { background: none; border: 0; border-radius: 0; overflow: visible; }
  .woocommerce-account .woocommerce table.my_account_orders tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; margin: 0 0 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--fcn-line); border-radius: var(--fcn-panel-radius); }
  .woocommerce-account .woocommerce table.my_account_orders tbody tr > * { display: block !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
  .woocommerce-account .woocommerce table.my_account_orders tbody tr > *::after { content: none; }
  .woocommerce-account .woocommerce table.my_account_orders tbody td::before { display: none; }
  .woocommerce-account .woocommerce table.my_account_orders .woocommerce-orders-table__cell-order-status::before { display: inline-block; content: ""; float: none; }
  .woocommerce-account table.my_account_orders .woocommerce-orders-table__cell-order-number { grid-area: 1 / 1; font-size: 16px; }
  .woocommerce-account table.my_account_orders .woocommerce-orders-table__cell-order-status { grid-area: 1 / 2; font-size: 14px; }
  .woocommerce-account table.my_account_orders .woocommerce-orders-table__cell-order-date { grid-area: 2 / 1; color: var(--fcn-muted); font-size: 14px; }
  .woocommerce-account table.my_account_orders .woocommerce-orders-table__cell-order-total { grid-area: 3 / 1; font-size: 14px; }
  .woocommerce-account table.my_account_orders .woocommerce-orders-table__cell-order-actions { grid-area: 2 / 2 / 4 / 3; align-self: end; display: flex !important; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .woocommerce-account .woocommerce-orders-table__cell-order-actions .button + .button { margin-left: 0; }
  .woocommerce-account .woocommerce table.shop_table:not(.my_account_orders) th,
  .woocommerce-account .woocommerce table.shop_table:not(.my_account_orders) td { padding: 12px 14px; }
}

/* Verlanglijst in the account column: as many cards as fit (the column is narrower than the shop). */
.woocommerce-account .woocommerce-MyAccount-content ul.products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 760px) {
  .woocommerce-account .woocommerce-MyAccount-content ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
