@charset "UTF-8";
/* ==========================================================================
   Medinmleko – WooCommerce My Account ("Moj račun")
   --------------------------------------------------------------------------
   File:    assets/css/my-account/medinmleko-my-account.css
   Loaded:  functions.php (bootscore_scripts) – only on My Account pages,
            after medinmleko-custom-style.css so it can override it.

   Brand tokens (from src/sass/theme/_theme_variables.scss):
     primary   #3c2415   secondary #c49a6c   font Poppins   radius 2px
   ========================================================================== */

.woocommerce-account {
  --mim-primary: #3c2415;
  --mim-primary-hover: #2a1a0f;
  --mim-secondary: #c49a6c;
  --mim-secondary-soft: #f6efe8;
  --mim-surface: #ffffff;
  --mim-surface-muted: #faf7f4;
  --mim-border: #e9e4df;
  --mim-border-soft: #f0ebe6;
  --mim-text: #262626;
  --mim-text-muted: #7a6a5e;
  --mim-radius: 8px;
  --mim-radius-sm: 4px;
  --mim-shadow: 0 1px 2px rgba(60, 36, 21, 0.04), 0 4px 16px rgba(60, 36, 21, 0.05);
}

/* --------------------------------------------------------------------------
   1. Layout – give the account area the full container width
      (the page block wraps it in .col-lg-8.offset-lg-2, which squeezes the
      5-column orders table into ~500px and makes it look broken)
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  .woocommerce-account .entry-content .col-lg-8.offset-lg-2 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .woocommerce-account .woocommerce > .row > .col-md-4 {
    flex: 0 0 auto;
    width: 27%;
    max-width: 320px;
  }

  .woocommerce-account .woocommerce > .row > .col-md-8 {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
  }
}

.woocommerce-account .woocommerce > .row {
  margin-top: 1rem;
  margin-bottom: 3rem;
}

/* --------------------------------------------------------------------------
   2. Side navigation
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-navigation .list-group {
  background: var(--mim-surface);
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  box-shadow: var(--mim-shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border: 0;
  border-bottom: 1px solid var(--mim-border-soft);
  border-radius: 0;
  background: transparent;
  color: var(--mim-primary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: inset 3px 0 0 transparent;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:last-child {
  border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:focus-visible {
  background: var(--mim-surface-muted);
  color: var(--mim-primary);
  outline: none;
}

/* Icons (Font Awesome 6 Free is loaded by the theme) */
.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  width: 1.25rem;
  text-align: center;
  color: var(--mim-secondary);
  flex: 0 0 auto;
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:first-child::before { content: "\f015"; } /* dashboard – house */
.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item[href*="/orders"]::before { content: "\f466"; } /* box */
.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item[href*="/downloads"]::before { content: "\f019"; } /* download */
.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item[href*="/edit-address"]::before { content: "\f3c5"; } /* location */
.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item[href*="/edit-account"]::before { content: "\f007"; } /* user */
.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item[href*="spgw_save_card"]::before { content: "\f09d"; } /* credit card */
.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item[href*="my-wish-list"]::before { content: "\f004"; } /* heart */
.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item[href*="customer-logout"]::before { content: "\f2f5"; } /* logout */

/* Logout – muted */
.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item[href*="customer-logout"] {
  color: var(--mim-text-muted);
  font-weight: 400;
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item[href*="customer-logout"]::before {
  color: #b9aea5;
}

/* Active item – derived from the WooCommerce body class for the endpoint */
.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-navigation .list-group-item[href*="/orders"],
.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-navigation .list-group-item[href*="/orders"],
.woocommerce-account.woocommerce-downloads .woocommerce-MyAccount-navigation .list-group-item[href*="/downloads"],
.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-navigation .list-group-item[href*="/edit-address"],
.woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-navigation .list-group-item[href*="/edit-account"],
.woocommerce-account.woocommerce-spgw_save_card .woocommerce-MyAccount-navigation .list-group-item[href*="spgw_save_card"],
.woocommerce-account.woocommerce-my-wish-list .woocommerce-MyAccount-navigation .list-group-item[href*="my-wish-list"],
.woocommerce-account:not(.woocommerce-orders):not(.woocommerce-view-order):not(.woocommerce-downloads):not(.woocommerce-edit-address):not(.woocommerce-edit-account):not(.woocommerce-spgw_save_card):not(.woocommerce-my-wish-list) .woocommerce-MyAccount-navigation .list-group-item:first-child {
  background: var(--mim-secondary-soft);
  box-shadow: inset 3px 0 0 var(--mim-secondary);
  color: var(--mim-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. Content area
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0;
}

/* Section title for the orders list (the template has no heading) */
.woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content::before {
  content: "Moja naročila";
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mim-primary);
  margin: 0 0 1rem;
  line-height: 1.2;
}

/* Notices ("You have X orders", "No orders yet") */
/* Layout: [icon] [text, fills the row] [button, pinned right] – the text is a
   bare text node after the button in WooCommerce markup, so the button is
   moved to the end with `order`. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  background: var(--mim-surface-muted);
  border: 1px solid var(--mim-border);
  border-left: 4px solid var(--mim-secondary);
  border-radius: var(--mim-radius-sm);
  color: var(--mim-primary);
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.75rem 0.9rem 0.75rem 1rem;
  margin: 0 0 1.25rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before {
  position: static;
  flex: 0 0 auto;
  color: var(--mim-secondary);
  font-size: 1rem;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .button {
  float: none;
  flex: 0 0 auto;
  order: 2;
  margin: 0 0 0 auto;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   4. Buttons inside the account area
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-content .button,
.woocommerce-account .woocommerce-MyAccount-content button.button,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--mim-primary);
  border-radius: var(--mim-radius-sm);
  background: var(--mim-primary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover,
.woocommerce-account .woocommerce-MyAccount-content button.button:hover,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button:hover {
  background: var(--mim-primary-hover);
  border-color: var(--mim-primary-hover);
  color: #fff;
}

/* Secondary (outline) variants
   !important is needed: theme.css forces `.woocommerce a.button` to the
   primary colour with !important. */
.woocommerce-account .woocommerce-MyAccount-content .button.invoice,
.woocommerce-account .woocommerce-MyAccount-content .button.pay,
.woocommerce-account .woocommerce-MyAccount-content .button.cancel,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination .button {
  background-color: var(--mim-surface) !important;
  color: var(--mim-primary) !important;
  border-color: var(--mim-border) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .button.invoice:hover,
.woocommerce-account .woocommerce-MyAccount-content .button.pay:hover,
.woocommerce-account .woocommerce-MyAccount-content .button.cancel:hover,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination .button:hover {
  background-color: var(--mim-secondary-soft) !important;
  border-color: var(--mim-secondary) !important;
  color: var(--mim-primary) !important;
}

.woocommerce-account .woocommerce-MyAccount-content .button.cancel:hover {
  border-color: #c62828 !important;
  color: #c62828 !important;
  background-color: #fdf3f3 !important;
}

/* --------------------------------------------------------------------------
   5. Orders table (desktop)
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce table.account-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  background: var(--mim-surface);
  box-shadow: var(--mim-shadow);
  overflow: hidden;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

.woocommerce-account .woocommerce table.account-orders-table thead th {
  background: var(--mim-secondary-soft);
  color: var(--mim-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--mim-border);
  white-space: nowrap;
}

.woocommerce-account .woocommerce table.account-orders-table tbody th,
.woocommerce-account .woocommerce table.account-orders-table tbody td {
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--mim-border-soft);
  vertical-align: middle;
  text-align: left;
  color: var(--mim-text);
  background: transparent;
}

.woocommerce-account .woocommerce table.account-orders-table tbody tr:last-child th,
.woocommerce-account .woocommerce table.account-orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.woocommerce-account .woocommerce table.account-orders-table tbody tr:hover th,
.woocommerce-account .woocommerce table.account-orders-table tbody tr:hover td {
  background: var(--mim-surface-muted);
}

/* Order number */
.woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-number a {
  font-weight: 600;
  color: var(--mim-primary);
  text-decoration: none;
  white-space: nowrap;
}

.woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-number a:hover {
  color: var(--mim-secondary);
  text-decoration: underline;
}

/* Date */
.woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-date {
  color: var(--mim-text-muted);
  white-space: nowrap;
}

/* Total */
.woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-total {
  white-space: nowrap;
}

.woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-total .amount {
  font-weight: 600;
  color: var(--mim-primary);
}

/* Status – coloured dot + text, colour taken from the row status class */
.woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-status {
  --mim-status: #8a7f77;
  color: var(--mim-status);
  font-weight: 500;
  white-space: nowrap;
}

.woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-status::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--mim-status);
  margin-right: 0.45rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.woocommerce-account .woocommerce table.account-orders-table tr.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status { --mim-status: #2e7d32; }
.woocommerce-account .woocommerce table.account-orders-table tr.woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status { --mim-status: #1565c0; }
.woocommerce-account .woocommerce table.account-orders-table tr.woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status { --mim-status: #b26a00; }
.woocommerce-account .woocommerce table.account-orders-table tr.woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status { --mim-status: #8a7f77; }
.woocommerce-account .woocommerce table.account-orders-table tr.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce table.account-orders-table tr.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce table.account-orders-table tr.woocommerce-orders-table__row--status-ni-bilo-prevzema .woocommerce-orders-table__cell-order-status { --mim-status: #c62828; }
.woocommerce-account .woocommerce table.account-orders-table tr.woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status { --mim-status: #6a1b9a; }

/* Actions */
.woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-actions {
  text-align: right;
  white-space: nowrap;
}

.woocommerce-account .woocommerce table.account-orders-table thead .woocommerce-orders-table__header-order-actions {
  text-align: right;
}

.woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-actions .button {
  margin: 0 0 0 0.35rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
}

.woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-actions .button:first-child {
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   6. Pagination
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination--without-numbers {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination--without-numbers .woocommerce-button--next {
  margin-left: auto;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination--without-numbers .woocommerce-button--previous::before {
  content: "\f104";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-pagination--without-numbers .woocommerce-button--next::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* --------------------------------------------------------------------------
   7. Tablet – stack navigation above content as horizontal pills
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .woocommerce-account .woocommerce > .row > .col-md-4,
  .woocommerce-account .woocommerce > .row > .col-md-8 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation .list-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0.25rem 0 0.5rem;
    margin-bottom: 1rem;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation .list-group::-webkit-scrollbar {
    display: none;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation .list-group-item,
  .woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:last-child {
    flex: 0 0 auto;
    width: auto; /* Bootstrap's .list-group-item-action sets width:100% */
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--mim-border);
    border-radius: 999px;
    background: var(--mim-surface);
    font-size: 0.85rem;
    box-shadow: none;
    white-space: nowrap;
  }

  .woocommerce-account.woocommerce-orders .woocommerce-MyAccount-navigation .list-group-item[href*="/orders"],
  .woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-navigation .list-group-item[href*="/orders"],
  .woocommerce-account.woocommerce-downloads .woocommerce-MyAccount-navigation .list-group-item[href*="/downloads"],
  .woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-navigation .list-group-item[href*="/edit-address"],
  .woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-navigation .list-group-item[href*="/edit-account"],
  .woocommerce-account.woocommerce-spgw_save_card .woocommerce-MyAccount-navigation .list-group-item[href*="spgw_save_card"],
  .woocommerce-account.woocommerce-my-wish-list .woocommerce-MyAccount-navigation .list-group-item[href*="my-wish-list"],
  .woocommerce-account:not(.woocommerce-orders):not(.woocommerce-view-order):not(.woocommerce-downloads):not(.woocommerce-edit-address):not(.woocommerce-edit-account):not(.woocommerce-spgw_save_card):not(.woocommerce-my-wish-list) .woocommerce-MyAccount-navigation .list-group-item:first-child {
    background: var(--mim-primary);
    border-color: var(--mim-primary);
    color: #fff;
    box-shadow: none;
  }

  .woocommerce-account.woocommerce-orders .woocommerce-MyAccount-navigation .list-group-item[href*="/orders"]::before,
  .woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-navigation .list-group-item[href*="/orders"]::before,
  .woocommerce-account.woocommerce-downloads .woocommerce-MyAccount-navigation .list-group-item[href*="/downloads"]::before,
  .woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-navigation .list-group-item[href*="/edit-address"]::before,
  .woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-navigation .list-group-item[href*="/edit-account"]::before,
  .woocommerce-account.woocommerce-spgw_save_card .woocommerce-MyAccount-navigation .list-group-item[href*="spgw_save_card"]::before,
  .woocommerce-account.woocommerce-my-wish-list .woocommerce-MyAccount-navigation .list-group-item[href*="my-wish-list"]::before,
  .woocommerce-account:not(.woocommerce-orders):not(.woocommerce-view-order):not(.woocommerce-downloads):not(.woocommerce-edit-address):not(.woocommerce-edit-account):not(.woocommerce-spgw_save_card):not(.woocommerce-my-wish-list) .woocommerce-MyAccount-navigation .list-group-item:first-child::before {
    color: var(--mim-secondary);
  }
}

/* --------------------------------------------------------------------------
   8. Mobile / narrow – each order becomes a card
      (replaces WooCommerce's woocommerce-smallscreen.css behaviour, and is
      also applied on tablets where the table would otherwise be too narrow)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .woocommerce-account .woocommerce table.account-orders-table {
    display: block;
    padding: 0; /* medinmleko-custom-style.css adds padding to table.shop_table on mobile */
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  /* !important: medinmleko-custom-style.css forces thead to display:block for the cart table */
  .woocommerce-account .woocommerce table.account-orders-table thead {
    display: none !important;
  }

  .woocommerce-account .woocommerce table.account-orders-table tbody {
    display: block;
  }

  .woocommerce-account .woocommerce table.account-orders-table tbody tr {
    display: block;
    background: var(--mim-surface);
    border: 1px solid var(--mim-border);
    border-radius: var(--mim-radius);
    box-shadow: var(--mim-shadow);
    padding: 0.35rem 1rem;
    margin: 0 0 0.9rem;
  }

  .woocommerce-account .woocommerce table.account-orders-table tbody tr:hover th,
  .woocommerce-account .woocommerce table.account-orders-table tbody tr:hover td,
  .woocommerce-account .woocommerce table.account-orders-table tbody tr:nth-child(2n) td {
    background: transparent;
  }

  .woocommerce-account .woocommerce table.account-orders-table tbody th,
  .woocommerce-account .woocommerce table.account-orders-table tbody td {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.6rem 0;
    border: 0;
    border-bottom: 1px solid var(--mim-border-soft);
    text-align: right !important;
  }

  .woocommerce-account .woocommerce table.account-orders-table tbody tr > :last-child {
    border-bottom: 0;
  }

  /* Label from data-title – pushed left, values gather on the right */
  .woocommerce-account .woocommerce table.account-orders-table tbody th::before,
  .woocommerce-account .woocommerce table.account-orders-table tbody td::before {
    content: attr(data-title);
    float: none;
    flex: 0 0 auto;
    margin-right: auto;
    padding-right: 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mim-text-muted);
    text-align: left;
  }

  /* Status: keep the coloured dot, put label on the left */
  .woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-status::before {
    content: attr(data-title);
    display: inline;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    margin: 0 auto 0 0;
    top: 0;
  }

  .woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-status::after {
    content: "";
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--mim-status);
    margin-left: 0.45rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
  }

  /* Actions: full-width buttons, no label */
  .woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-actions {
    gap: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    white-space: normal;
  }

  .woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-actions::before {
    display: none;
  }

  .woocommerce-account .woocommerce table.account-orders-table .woocommerce-orders-table__cell-order-actions .button {
    flex: 1 1 0;
    margin: 0;
    float: none;
  }
}

@media (max-width: 575.98px) {
  .woocommerce-account.woocommerce-orders .woocommerce-MyAccount-content::before {
    font-size: 1.3rem;
  }

  /* Notice: icon pinned top-left, button drops below the text, full width */
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-message {
    position: relative;
    flex-wrap: wrap;
    font-size: 0.88rem;
    padding-left: 2.5rem;
  }

  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before,
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before {
    position: absolute;
    left: 1rem;
    top: 0.85rem;
  }

  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-info .button,
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-message .button {
    flex: 0 0 100%;
    margin: 0.25rem 0 0;
  }
}


.woocommerce-MyAccount-content .button.wc-forward {

  display: none !important;
}

.woocommerce-MyAccount-content .woocommerce-info::before {

  display: none;
}


/*Seznam Želja*/
/* ==========================================================================
   Medinmleko – Seznam želja (Wish List for WooCommerce by WPFactory)
   --------------------------------------------------------------------------
   Paste-in block for assets/css/medinmleko-custom-style.css (append at the
   end). Not enqueued on its own.

   Covers both places the wishlist is rendered:
     - My Account tab  /moj-racun/my-wish-list/
     - Standalone page /wishlist/ (header heart icon)
   Same look as the "Moja naročila" redesign (medinmleko-my-account.css).
   ========================================================================== */

.alg-wc-wl-view-table-container,
.woocommerce-account.woocommerce-my-wish-list .woocommerce-MyAccount-content {
  --mim-primary: #3c2415;
  --mim-primary-hover: #2a1a0f;
  --mim-secondary: #c49a6c;
  --mim-secondary-soft: #f6efe8;
  --mim-surface: #ffffff;
  --mim-surface-muted: #faf7f4;
  --mim-border: #e9e4df;
  --mim-border-soft: #f0ebe6;
  --mim-text: #262626;
  --mim-text-muted: #7a6a5e;
  --mim-danger: #c62828;
  --mim-danger-soft: #fdf3f3;
  --mim-radius: 8px;
  --mim-radius-sm: 4px;
  --mim-shadow: 0 1px 2px rgba(60, 36, 21, 0.04), 0 4px 16px rgba(60, 36, 21, 0.05);
}

/* --------------------------------------------------------------------------
   1. Section title (My Account tab only – the template has no heading)
   -------------------------------------------------------------------------- */
.woocommerce-account.woocommerce-my-wish-list .woocommerce-MyAccount-content::before {
  content: "Seznam želja";
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mim-primary);
  margin: 0 0 1rem;
  line-height: 1.2;
}

/* Empty wrapper for the (disabled) multiple-wishlist "copy/delete" buttons */
.alg-wc-wl-view-table-container .alg-wc-delete-wishlist {
  margin-top: 0;
}

.alg-wc-wl-view-table-container .alg-wc-delete-wishlist:not(:has(a)) {
  display: none;
}

/* --------------------------------------------------------------------------
   2. Table (desktop)
   -------------------------------------------------------------------------- */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  background: var(--mim-surface);
  box-shadow: var(--mim-shadow);
  overflow: hidden;
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table thead th {
  background: var(--mim-secondary-soft);
  color: var(--mim-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--mim-border);
  white-space: nowrap;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table thead th.add_to_cart_btn {
  text-align: right;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table thead th.product-removal {
  text-align: center;
}

/* !important: the plugin forces centred cells with !important */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody td {
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--mim-border-soft);
  vertical-align: middle !important;
  text-align: left !important;
  color: var(--mim-text);
  background: transparent;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr:last-child td {
  border-bottom: 0;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr:hover td {
  background: var(--mim-surface-muted);
}

/* Thumbnail */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-thumbnail {
  width: 1%;
  padding-right: 0;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-thumbnail a {
  display: block;
}

/* !important: `#single-wrapper img { max-width:100%; height:auto }` in
   medinmleko-custom-style.css wins on specificity and collapses the image
   inside the 1%-wide cell */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-thumbnail img {
  display: block;
  width: 72px;
  max-width: 72px !important;
  height: 72px !important;
  margin: 0;
  object-fit: contain;
  background: var(--mim-surface);
  border: 1px solid var(--mim-border-soft);
  border-radius: var(--mim-radius-sm);
}

/* Product name (+ variation attributes) */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-name a {
  color: var(--mim-primary);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-name a:hover {
  color: var(--mim-secondary);
  text-decoration: underline;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-name > div {
  margin-top: 0.2rem;
  color: var(--mim-text-muted);
}

/* Price – sale price keeps the theme's colour, old price sits above it */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-price {
  color: var(--mim-primary);
  font-weight: 600;
  white-space: nowrap;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-price del {
  display: block;
  color: var(--mim-text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.2;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-price del .amount {
  color: inherit;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-price ins {
  text-decoration: none;
}

/* Add to cart – the [add_to_cart] shortcode wraps a <div> in a <p>, which the
   browser splits into two empty <p> elements around it */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn {
  white-space: nowrap;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn p:empty {
  display: none;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn p {
  margin: 0;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .add-to-cart-container {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

/* !important on padding/font-size: theme.css forces them on .btn */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn,
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 1rem !important;
  border: 1px solid var(--mim-primary);
  border-radius: var(--mim-radius-sm);
  background: var(--mim-primary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem !important;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn:hover,
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button:hover {
  background: var(--mim-primary-hover);
  border-color: var(--mim-primary-hover);
  color: #fff;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn::before,
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button::before {
  content: "\f07a"; /* cart */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn.loading,
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button.loading {
  opacity: 0.6;
  pointer-events: none;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn.added::before,
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button.added::before {
  content: "\f00c"; /* check */
}

/* Remove – small outline circle instead of the big red icon */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-removal {
  width: 1%;
  text-align: center !important;
}

.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  border: 1px solid var(--mim-border);
  border-radius: 50%;
  background: var(--mim-surface);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* !important: the plugin's inline CSS colours/scales/pulses these with !important */
.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl i,
.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl:hover i {
  font-size: 0.9rem !important;
  color: var(--mim-text-muted) !important;
  transform: none !important;
  animation: none !important;
}

.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl .alg-wc-wl-view-state i::before {
  content: "\f00d"; /* xmark */
}

.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl:hover {
  border-color: var(--mim-danger);
  background: var(--mim-danger-soft);
}

.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl:hover i {
  color: var(--mim-danger) !important;
}

/* Spinner while removing: show it inside the circle instead of next to it */
.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl.loading .alg-wc-wl-view-state {
  display: none;
}

.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl .loading {
  position: static;
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. Empty wishlist (shown by the plugin, only styled here)
   -------------------------------------------------------------------------- */
.alg-wc-wl-view-table-container .alg-wc-wl-empty-wishlist {
  padding: 2.5rem 1.25rem;
  margin: 0 0 1.75rem;
  background: var(--mim-surface);
  border: 1px dashed var(--mim-border);
  border-radius: var(--mim-radius);
  color: var(--mim-text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.alg-wc-wl-view-table-container .alg-wc-wl-empty-wishlist::before {
  content: "\f004"; /* heart (outline) */
  display: block;
  margin-bottom: 0.75rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  color: var(--mim-secondary);
}

/* --------------------------------------------------------------------------
   4. Stock alert ("Opozorilo o zalogi") – heading + card
   -------------------------------------------------------------------------- */
.alg-wc-wl-view-table-container > h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mim-primary);
}

.alg-wc-wl-view-table-container > h3::before {
  content: "\f0f3"; /* bell */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--mim-secondary);
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.6rem;
  padding: 1rem 1.1rem;
  margin: 0 0 1.75rem;
  background: var(--mim-surface);
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  box-shadow: var(--mim-shadow);
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form br {
  display: none;
}

/* !important: the checkbox has inline margin/top styles */
.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0 !important;
  top: 0 !important;
  accent-color: var(--mim-primary);
  cursor: pointer;
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form label {
  flex: 1 1 calc(100% - 2rem);
  margin: 0;
  color: var(--mim-text);
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_email {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 420px;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius-sm);
  background: var(--mim-surface);
  color: var(--mim-text);
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_email:focus {
  border-color: var(--mim-secondary);
  box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.2);
  outline: none;
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form input[type="submit"] {
  flex: 0 0 auto;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--mim-primary);
  border-radius: var(--mim-radius-sm);
  background: var(--mim-primary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form input[type="submit"]:hover {
  background: var(--mim-primary-hover);
  border-color: var(--mim-primary-hover);
}

/* --------------------------------------------------------------------------
   5. Mobile – each product becomes a card
      [thumb] [name    ] [x]
      [thumb] [price   ] [x]
      [   add to cart     ]
      Overrides the plugin's body.alg-wc-wl-responsive rules (labels, floats,
      zebra rows), which kick in at the same 768px breakpoint.
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table thead {
    display: none !important;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody {
    display: block;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name  remove"
      "thumb price remove"
      "cart  cart  cart";
    grid-template-rows: auto 1fr auto;
    column-gap: 0.85rem;
    row-gap: 0.2rem;
    align-items: start;
    padding: 0.85rem;
    margin: 0 0 0.75rem;
    background: var(--mim-surface);
    border: 1px solid var(--mim-border);
    border-radius: var(--mim-radius);
    box-shadow: var(--mim-shadow);
  }

  /* Any extra column enabled in the plugin settings gets its own labelled row */
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    float: none;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent !important;
    text-align: left !important;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td::before {
    content: attr(data-title);
    float: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mim-text-muted);
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-thumbnail,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-name,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-price,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-removal,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.add-to-cart-btn {
    display: block;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-thumbnail::before,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-name::before,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-price::before,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-removal::before,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.add-to-cart-btn::before {
    content: none;
    display: none;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-thumbnail {
    grid-area: thumb;
    width: auto;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-thumbnail img {
    width: 64px;
    max-width: 64px !important;
    height: 64px !important;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-name {
    grid-area: name;
    padding-top: 0.1rem;
    font-size: 0.9rem;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-price {
    grid-area: price;
    font-size: 0.9rem;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-price del {
    display: inline;
    margin-right: 0.35rem;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-removal {
    grid-area: remove;
    width: auto;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.add-to-cart-btn {
    grid-area: cart;
    margin-top: 0.75rem;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .add-to-cart-container {
    justify-content: stretch;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button {
    width: 100%;
    padding: 0.65rem 1rem !important;
  }

  .alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_email {
    flex-basis: 100%;
    max-width: none;
  }

  .alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form input[type="submit"] {
    flex: 1 1 100%;
    padding: 0.65rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .woocommerce-account.woocommerce-my-wish-list .woocommerce-MyAccount-content::before {
    font-size: 1.3rem;
  }
}




/* ==========================================================================
   Medinmleko – Seznam želja (Wish List for WooCommerce by WPFactory)
   --------------------------------------------------------------------------
   Paste-in block for assets/css/medinmleko-custom-style.css (append at the
   end). Not enqueued on its own.

   Covers both places the wishlist is rendered:
     - My Account tab  /moj-racun/my-wish-list/
     - Standalone page /wishlist/ (header heart icon)
   Same look as the "Moja naročila" redesign (medinmleko-my-account.css).
   ========================================================================== */

.alg-wc-wl-view-table-container,
.woocommerce-account.woocommerce-my-wish-list .woocommerce-MyAccount-content {
  --mim-primary: #3c2415;
  --mim-primary-hover: #2a1a0f;
  --mim-secondary: #c49a6c;
  --mim-secondary-soft: #f6efe8;
  --mim-surface: #ffffff;
  --mim-surface-muted: #faf7f4;
  --mim-border: #e9e4df;
  --mim-border-soft: #f0ebe6;
  --mim-text: #262626;
  --mim-text-muted: #7a6a5e;
  --mim-danger: #c62828;
  --mim-danger-soft: #fdf3f3;
  --mim-radius: 8px;
  --mim-radius-sm: 4px;
  --mim-shadow: 0 1px 2px rgba(60, 36, 21, 0.04), 0 4px 16px rgba(60, 36, 21, 0.05);
}

/* --------------------------------------------------------------------------
   1. Section title (My Account tab only – the template has no heading)
   -------------------------------------------------------------------------- */
.woocommerce-account.woocommerce-my-wish-list .woocommerce-MyAccount-content::before {
  content: "Seznam želja";
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mim-primary);
  margin: 0 0 1rem;
  line-height: 1.2;
}

/* Empty wrapper for the (disabled) multiple-wishlist "copy/delete" buttons */
.alg-wc-wl-view-table-container .alg-wc-delete-wishlist {
  margin-top: 0;
}

.alg-wc-wl-view-table-container .alg-wc-delete-wishlist:not(:has(a)) {
  display: none;
}

/* --------------------------------------------------------------------------
   2. Table (desktop)
   -------------------------------------------------------------------------- */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  background: var(--mim-surface);
  box-shadow: var(--mim-shadow);
  overflow: hidden;
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table thead th {
  background: var(--mim-secondary-soft);
  color: var(--mim-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--mim-border);
  white-space: nowrap;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table thead th.add_to_cart_btn {
  text-align: right;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table thead th.product-removal {
  text-align: center;
}

/* !important: the plugin forces centred cells with !important */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody td {
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--mim-border-soft);
  vertical-align: middle !important;
  text-align: left !important;
  color: var(--mim-text);
  background: transparent;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr:last-child td {
  border-bottom: 0;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr:hover td {
  background: var(--mim-surface-muted);
}

/* Thumbnail */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-thumbnail {
  width: 1%;
  padding-right: 0;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-thumbnail a {
  display: block;
}

/* !important: `#single-wrapper img { max-width:100%; height:auto }` in
   medinmleko-custom-style.css wins on specificity and collapses the image
   inside the 1%-wide cell */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-thumbnail img {
  display: block;
  width: 72px;
  max-width: 72px !important;
  height: 72px !important;
  margin: 0;
  object-fit: contain;
  background: var(--mim-surface);
  border: 1px solid var(--mim-border-soft);
  border-radius: var(--mim-radius-sm);
}

/* Product name (+ variation attributes) */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-name a {
  color: var(--mim-primary);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-name a:hover {
  color: var(--mim-secondary);
  text-decoration: underline;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-name > div {
  margin-top: 0.2rem;
  color: var(--mim-text-muted);
}

/* Price – sale price keeps the theme's colour, old price sits above it */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-price {
  color: var(--mim-primary);
  font-weight: 600;
  white-space: nowrap;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-price del {
  display: block;
  color: var(--mim-text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.2;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-price del .amount {
  color: inherit;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-price ins {
  text-decoration: none;
}

/* Add to cart – the [add_to_cart] shortcode wraps a <div> in a <p>, which the
   browser splits into two empty <p> elements around it */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn {
  white-space: nowrap;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn p:empty {
  display: none;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn p {
  margin: 0;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .add-to-cart-container {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

/* !important on padding/font-size: theme.css forces them on .btn */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn,
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 1rem !important;
  border: 1px solid var(--mim-primary);
  border-radius: var(--mim-radius-sm);
  background: var(--mim-primary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem !important;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn:hover,
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button:hover {
  background: var(--mim-primary-hover);
  border-color: var(--mim-primary-hover);
  color: #fff;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn::before,
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button::before {
  content: "\f07a"; /* cart */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn.loading,
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button.loading {
  opacity: 0.6;
  pointer-events: none;
}

.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn.added::before,
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button.added::before {
  content: "\f00c"; /* check */
}

/* Remove – small outline circle instead of the big red icon */
.alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-removal {
  width: 1%;
  text-align: center !important;
}

.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  border: 1px solid var(--mim-border);
  border-radius: 50%;
  background: var(--mim-surface);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* !important: the plugin's inline CSS colours/scales/pulses these with !important */
.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl i,
.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl:hover i {
  font-size: 0.9rem !important;
  color: var(--mim-text-muted) !important;
  transform: none !important;
  animation: none !important;
}

.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl .alg-wc-wl-view-state i::before {
  content: "\f00d"; /* xmark */
}

.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl:hover {
  border-color: var(--mim-danger);
  background: var(--mim-danger-soft);
}

.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl:hover i {
  color: var(--mim-danger) !important;
}

/* Spinner while removing: show it inside the circle instead of next to it */
.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl.loading .alg-wc-wl-view-state {
  display: none;
}

.alg-wc-wl-view-table-container .alg-wc-wl-remove-item-from-wl .loading {
  position: static;
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. Empty wishlist (shown by the plugin, only styled here)
   -------------------------------------------------------------------------- */
.alg-wc-wl-view-table-container .alg-wc-wl-empty-wishlist {
  padding: 2.5rem 1.25rem;
  margin: 0 0 1.75rem;
  background: var(--mim-surface);
  border: 1px dashed var(--mim-border);
  border-radius: var(--mim-radius);
  color: var(--mim-text-muted);
  font-size: 0.95rem;
  text-align: center;
}

.alg-wc-wl-view-table-container .alg-wc-wl-empty-wishlist::before {
  content: "\f004"; /* heart (outline) */
  display: block;
  margin-bottom: 0.75rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  color: var(--mim-secondary);
}

/* --------------------------------------------------------------------------
   4. Stock alert ("Opozorilo o zalogi") – heading + card
   -------------------------------------------------------------------------- */
.alg-wc-wl-view-table-container > h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mim-primary);
}

.alg-wc-wl-view-table-container > h3::before {
  content: "\f0f3"; /* bell */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--mim-secondary);
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.6rem;
  padding: 1rem 1.1rem;
  margin: 0 0 1.75rem;
  background: var(--mim-surface);
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  box-shadow: var(--mim-shadow);
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form br {
  display: none;
}

/* !important: the checkbox has inline margin/top styles */
.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0 !important;
  top: 0 !important;
  accent-color: var(--mim-primary);
  cursor: pointer;
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form label {
  flex: 1 1 calc(100% - 2rem);
  margin: 0;
  color: var(--mim-text);
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_email {
  flex: 1 1 240px;
  min-width: 0;
  max-width: 420px;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius-sm);
  background: var(--mim-surface);
  color: var(--mim-text);
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_email:focus {
  border-color: var(--mim-secondary);
  box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.2);
  outline: none;
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form input[type="submit"] {
  flex: 0 0 auto;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--mim-primary);
  border-radius: var(--mim-radius-sm);
  background: var(--mim-primary);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form input[type="submit"]:hover {
  background: var(--mim-primary-hover);
  border-color: var(--mim-primary-hover);
}

/* --------------------------------------------------------------------------
   5. Mobile – each product becomes a card
      [thumb] [name    ] [x]
      [thumb] [price   ] [x]
      [   add to cart     ]
      Overrides the plugin's body.alg-wc-wl-responsive rules (labels, floats,
      zebra rows), which kick in at the same 768px breakpoint.
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table thead {
    display: none !important;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody {
    display: block;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name  remove"
      "thumb price remove"
      "cart  cart  cart";
    grid-template-rows: auto 1fr auto;
    column-gap: 0.85rem;
    row-gap: 0.2rem;
    align-items: start;
    padding: 0.85rem;
    margin: 0 0 0.75rem;
    background: var(--mim-surface);
    border: 1px solid var(--mim-border);
    border-radius: var(--mim-radius);
    box-shadow: var(--mim-shadow);
  }

  /* Any extra column enabled in the plugin settings gets its own labelled row */
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    float: none;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent !important;
    text-align: left !important;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td::before {
    content: attr(data-title);
    float: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mim-text-muted);
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-thumbnail,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-name,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-price,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-removal,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.add-to-cart-btn {
    display: block;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-thumbnail::before,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-name::before,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-price::before,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-removal::before,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.add-to-cart-btn::before {
    content: none;
    display: none;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-thumbnail {
    grid-area: thumb;
    width: auto;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-thumbnail img {
    width: 64px;
    max-width: 64px !important;
    height: 64px !important;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-name {
    grid-area: name;
    padding-top: 0.1rem;
    font-size: 0.9rem;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-price {
    grid-area: price;
    font-size: 0.9rem;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.product-price del {
    display: inline;
    margin-right: 0.35rem;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.product-removal {
    grid-area: remove;
    width: auto;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table tbody tr td.add-to-cart-btn {
    grid-area: cart;
    margin-top: 0.75rem;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .add-to-cart-container {
    justify-content: stretch;
  }

  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .btn,
  .alg-wc-wl-view-table-container table.alg-wc-wl-view-table td.add-to-cart-btn .button {
    width: 100%;
    padding: 0.65rem 1rem !important;
  }

  .alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_email {
    flex-basis: 100%;
    max-width: none;
  }

  .alg-wc-wl-view-table-container #alg_wcwl_user_stock_alert_form input[type="submit"] {
    flex: 1 1 100%;
    padding: 0.65rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .woocommerce-account.woocommerce-my-wish-list .woocommerce-MyAccount-content::before {
    font-size: 1.3rem;
  }
}


/* ==========================================================================
   FunnelKit checkout – loading overlay
   - isolation: keeps every loader inside the form (blockUI overlay z-index
     1000, shimmer z-index 10000) under the sticky header (z-index 1000)
   - recolour the white "processing" overlay to the page background, keeping
     FunnelKit's spinner.gif (!important: blockUI sets background/opacity
     inline, and FunnelKit forces a white background with
     `body .wfacp_main_form #wfacp_checkout_form.processing .blockUI.blockOverlay`)
   ========================================================================== */
#wfacp_checkout_form {
  isolation: isolate;
}

#wfacp_checkout_form .blockUI.blockOverlay,
html body .wfacp_main_form #wfacp_checkout_form.processing .blockUI.blockOverlay {
  background-color: rgba(251, 247, 241, 0.85) !important;
  opacity: 1 !important;
}



/* ==========================================================================
   Medinmleko – Moj račun: Naslov, Podrobnosti naročila, Shranjene kartice
   --------------------------------------------------------------------------
   Paste-in block for assets/css/medinmleko-custom-style.css (append at the
   end). Not enqueued on its own.

   Covers:
     - /moj-racun/edit-address/            (address cards)
     - /moj-racun/edit-address/placilo|dostava/  (edit address form)
     - /moj-racun/view-order/{id}/         (order details)
     - /moj-racun/spgw_save_card/          (Saferpay saved cards)
   Same look as the "Moja naročila" redesign (medinmleko-my-account.css).
   That file loads after this one, so rules that touch the same elements
   (buttons, notices) use longer selectors to win.
   ========================================================================== */

.woocommerce-account .woocommerce-MyAccount-content {
  --mim-primary: #3c2415;
  --mim-primary-hover: #2a1a0f;
  --mim-secondary: #c49a6c;
  --mim-secondary-soft: #f6efe8;
  --mim-surface: #ffffff;
  --mim-surface-muted: #faf7f4;
  --mim-border: #e9e4df;
  --mim-border-soft: #f0ebe6;
  --mim-text: #262626;
  --mim-text-muted: #7a6a5e;
  --mim-danger: #c62828;
  --mim-danger-soft: #fdf3f3;
  --mim-radius: 8px;
  --mim-radius-sm: 4px;
  --mim-shadow: 0 1px 2px rgba(60, 36, 21, 0.04), 0 4px 16px rgba(60, 36, 21, 0.05);
}

/* --------------------------------------------------------------------------
   1. Section titles (the templates have no page heading)
   -------------------------------------------------------------------------- */
.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content:has(> .woocommerce-Addresses)::before,
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted, .divScroll)::before {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mim-primary);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content:has(> .woocommerce-Addresses)::before {
  content: "Moji naslovi";
}

.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted, .divScroll)::before {
  content: "Shranjene kartice";
}

/* Intro text under the title ("Spodnji naslovi bodo uporabljeni …") */
.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content > p {
  color: var(--mim-text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

/* Sub-section headings */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details__title,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-OrderUpdates-title,
.woocommerce-account .woocommerce-MyAccount-content > h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--mim-primary);
  line-height: 1.3;
  margin: 0 0 0.85rem;
}

/* --------------------------------------------------------------------------
   2. Address cards – shared by "Naslov" and the order details page
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses.u-columns,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  width: auto;
}

/* WooCommerce's .col2-set clearfix pseudo-elements would take grid cells */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses.u-columns::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses.u-columns::after,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns--addresses::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns--addresses::after {
  content: none;
}

/* WooCommerce floats the columns (48%), Bootstrap's .col-1/.col-2 and the
   theme's .u-columns rules size them – reset all of that for the grid */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses.u-columns > .woocommerce-Address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns--addresses > .woocommerce-column {
  display: flex;
  flex-direction: column;
  float: none;
  flex: none;
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  background: var(--mim-surface);
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  box-shadow: var(--mim-shadow);
  overflow: hidden;
}

/* Card header: icon + title (+ edit link on the "Naslov" page) */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--mim-secondary-soft);
  border-bottom: 1px solid var(--mim-border);
}

/* WooCommerce clearfix pseudo-elements would become flex items */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title::after {
  content: none;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column__title {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mim-primary);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  float: none;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column__title {
  justify-content: flex-start;
  gap: 0.55rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h2::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column__title::before {
  content: "\f543"; /* receipt – billing */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.85rem;
  width: 1.1rem;
  text-align: center;
  color: var(--mim-secondary);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address.u-column2 .woocommerce-Address-title h2::before,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column--shipping-address .woocommerce-column__title::before {
  content: "\f0d1"; /* truck – shipping */
}

/* "Uredi Naslov plačnika" → compact "Uredi" button with a pen icon
   (the full text stays in the markup for screen readers) */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title a.edit {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  float: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius-sm);
  background: var(--mim-surface);
  color: var(--mim-primary);
  font-size: 0;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title a.edit::before {
  content: "\f304";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.68rem;
  color: var(--mim-secondary);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title a.edit::after {
  content: "Uredi";
  margin-left: 0.4rem;
  font-size: 0.78rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title a.edit:hover,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title a.edit:focus-visible {
  background: var(--mim-surface-muted);
  border-color: var(--mim-secondary);
  outline: none;
}

/* Address body (theme.css/woocommerce.css give it its own border + padding) */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column address {
  flex: 1 1 auto;
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--mim-text);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address address strong {
  font-weight: 500;
  color: var(--mim-text-muted);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details address p {
  margin: 0.35rem 0 0;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details address p::before {
  color: var(--mim-secondary);
}

/* "Račun na podjetje: Ne / Sem davčni zavezanec: Ne" */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .wc-block-components-additional-fields-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--mim-border-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .wc-block-components-additional-fields-list dt {
  margin: 0;
  font-weight: 400;
  color: var(--mim-text-muted);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .wc-block-components-additional-fields-list dd {
  margin: 0;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. Edit address form (/edit-address/placilo/ and /dostava/)
   -------------------------------------------------------------------------- */
.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content > form {
  background: var(--mim-surface);
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  box-shadow: var(--mim-shadow);
  padding: 0 1.5rem 1.5rem;
  margin: 0 0 1.5rem;
  overflow: hidden;
}

/* Form title as the card header */
.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content > form > h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 -1.5rem 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--mim-secondary-soft);
  border-bottom: 1px solid var(--mim-border);
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mim-primary);
}

.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content > form > h2::before {
  content: "\f543";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--mim-secondary);
}

.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content > form:has(#shipping_first_name) > h2::before {
  content: "\f0d1";
}

/* Two-column field grid */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > .form-row {
  grid-column: 1 / -1;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

/* IDs + !important: medinmleko-custom-style.css sizes these fields for the
   checkout with `#billing_*_field { width: 50% / 100% !important }` */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > :is(#billing_first_name_field, #billing_last_name_field, #billing_country_field, #billing_address_1_field, #billing_postcode_field, #billing_city_field, #billing_phone_field) {
  width: auto !important;
  flex: none !important;
}

/* Half-width pairs (phone + e-mail only on the billing form – the shipping
   form has no e-mail field, so its phone stays full width) */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > :is(.form-row-first, .form-row-last, [id$="_postcode_field"], [id$="_city_field"], #billing_phone_field, #billing_email_field, [id$="show-vat-wt_field"], [id$="vat-comitment-wt_field"], [id$="company-name-wt_field"], [id$="vat-id-wt_field"]) {
  grid-column: auto;
}

/* Company checkboxes and company fields always start a new row */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > :is([id$="show-vat-wt_field"], [id$="company-name-wt_field"]) {
  grid-column: 1;
}

/* Address line 2 has a hidden label – pull it up to line 1 */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper > [id$="_address_2_field"] {
  margin-top: -0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row label:not(.checkbox):not(.screen-reader-text) {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--mim-primary);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row .required {
  color: var(--mim-danger);
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row .optional {
  color: var(--mim-text-muted);
  font-weight: 400;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row input.input-text,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row select,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row .select2-container .select2-selection--single {
  height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius-sm);
  background-color: var(--mim-surface) !important; /* theme forces #fff on #billing_country with !important */
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: var(--mim-text);
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row select {
  padding-right: 2.25rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row .select2-container .select2-selection__rendered {
  padding: 0;
  line-height: 1.4;
  color: var(--mim-text);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row .select2-container .select2-selection__arrow {
  height: 42px;
  right: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row input.input-text::placeholder {
  color: #a89b91;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row input.input-text:focus,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row select:focus,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row .select2-container--focus .select2-selection--single,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row .select2-container--open .select2-selection--single {
  border-color: var(--mim-secondary);
  box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.18);
  outline: none;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row.woocommerce-invalid input.input-text,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row.woocommerce-invalid select {
  border-color: var(--mim-danger);
}

/* Checkboxes – the input also carries .form-control, which turns it into
   a full-width text box; !important beats theme.css `margin-left: -1.5em !important` */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row label.checkbox {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 0.3rem 0 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--mim-text);
  cursor: pointer;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields .form-row input.input-checkbox {
  -webkit-appearance: checkbox;
  appearance: auto;
  flex: 0 0 auto;
  width: 1.1rem !important;
  height: 1.1rem;
  min-height: 0;
  margin: 0 0.6rem 0 0 !important;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--mim-primary);
  cursor: pointer;
}

/* Save button row */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields > p {
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--mim-border-soft);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields > p button.button {
  padding: 0.7rem 1.5rem;
  font-size: 0.88rem;
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields > p button.button::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   4. Order details (/view-order/{id}/)
   -------------------------------------------------------------------------- */

/* Summary line: "Naročilo št. 12556 je bilo izvedeno … in je trenutno …" */
.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type {
  position: relative;
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem 1rem 4rem;
  background: var(--mim-surface);
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  box-shadow: var(--mim-shadow);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--mim-text);
}

.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type::before {
  content: "\f466"; /* box */
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--mim-secondary-soft);
  color: var(--mim-secondary);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
}

.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type mark {
  padding: 0;
  background: none;
  color: var(--mim-primary);
  font-weight: 600;
}

.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type mark.order-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  background: var(--mim-secondary-soft);
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: nowrap;
}

.woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type mark.order-status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mim-secondary);
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-order-details {
  margin: 0 0 1.75rem;
}

/* Items + totals table */
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details {
  width: 100%;
  margin: 0;
  padding: 0; /* medinmleko-custom-style.css pads table.shop_table on mobile */
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  background: var(--mim-surface);
  box-shadow: var(--mim-shadow);
  overflow: hidden;
  font-size: 0.92rem;
}

/* !important: medinmleko-custom-style.css turns table.shop_table thead into a block on mobile */
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details thead {
  display: table-header-group !important;
  padding: 0;
  border: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details thead th {
  padding: 0.85rem 1rem !important;
  border: 0;
  border-bottom: 1px solid var(--mim-border);
  background: var(--mim-secondary-soft);
  color: var(--mim-text-muted);
  font-size: 0.72rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details thead th.product-total,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tbody td.product-total,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot td {
  text-align: right;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tbody td {
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--mim-border-soft);
  background: transparent;
  color: var(--mim-text);
  vertical-align: middle;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tbody tr:last-child td {
  border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tbody td.product-name a {
  color: var(--mim-primary);
  font-weight: 500;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tbody td.product-name a:hover {
  color: var(--mim-secondary);
  text-decoration: underline;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details .product-quantity {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--mim-border);
  border-radius: 999px;
  background: var(--mim-surface-muted);
  color: var(--mim-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: 1px;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tbody td.product-total {
  font-weight: 500;
  white-space: nowrap;
}

/* Variation / item meta */
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details .wc-item-meta {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--mim-text-muted);
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details .wc-item-meta li,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details .wc-item-meta p {
  display: inline;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details .wc-item-meta .wc-item-meta-label {
  font-weight: 500;
}

/* Totals */
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot th,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot td {
  padding: 0.55rem 1rem;
  border: 0;
  background: var(--mim-surface-muted);
  color: var(--mim-text);
  font-weight: 400;
  vertical-align: middle;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot th {
  color: var(--mim-text-muted);
  text-align: left;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot tr:first-child > * {
  padding-top: 0.95rem;
  border-top: 1px solid var(--mim-border);
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot tr:last-child > * {
  padding-bottom: 0.95rem;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot small {
  color: var(--mim-text-muted);
  font-size: 0.75rem;
}

/* Grand total – the only totals row with the "vključuje … DDV" note */
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot tr:has(.includes_tax) > * {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-top: 1px solid var(--mim-border);
  background: var(--mim-secondary-soft);
  color: var(--mim-primary);
  font-size: 1rem;
  font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot tr:has(.includes_tax) td > .amount {
  font-size: 1.1rem;
  font-weight: 700;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot small.includes_tax {
  display: block;
  font-weight: 400;
}

/* Rows after the grand total: customer note, actions (invoice) */
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot tr:has(.includes_tax) ~ tr > * {
  background: var(--mim-surface);
  border-top: 1px solid var(--mim-border-soft);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot .order-actions-button {
  margin: 0 0 0 0.35rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot .order-actions-button.invoice::before {
  content: "\f1c1"; /* file-pdf */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.78rem;
}

/* "Naroči ponovno" */
.woocommerce-account .woocommerce-MyAccount-content .order-again {
  margin: 1rem 0 0;
  text-align: right;
}

/* Order updates (customer notes from the shop) */
.woocommerce-account .woocommerce-MyAccount-content ol.woocommerce-OrderUpdates {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-content ol.woocommerce-OrderUpdates li.woocommerce-OrderUpdate {
  margin: 0 0 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--mim-border);
  border-left: 4px solid var(--mim-secondary);
  border-radius: var(--mim-radius-sm);
  background: var(--mim-surface);
}

.woocommerce-account .woocommerce-MyAccount-content ol.woocommerce-OrderUpdates .woocommerce-OrderUpdate-meta {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: var(--mim-text-muted);
}

.woocommerce-account .woocommerce-MyAccount-content ol.woocommerce-OrderUpdates .woocommerce-OrderUpdate-description p {
  margin: 0;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   5. Shranjene kartice (Saferpay, /spgw_save_card/)
      The Saferpay endpoint adds no body class (WooCommerce only adds
      woocommerce-{endpoint} for its own endpoints), so the page is detected
      by its content with :has().
   -------------------------------------------------------------------------- */

/* Side nav: highlight "Shranjene kartice" instead of "Moj račun" */
.woocommerce-account:has(.woocommerce-MyAccount-content #save-card-hosted) .woocommerce-MyAccount-navigation .list-group-item[href*="spgw_save_card"] {
  background: var(--mim-secondary-soft, #f6efe8);
  box-shadow: inset 3px 0 0 var(--mim-secondary, #c49a6c);
  color: var(--mim-primary, #3c2415);
  font-weight: 600;
}

.woocommerce-account:has(.woocommerce-MyAccount-content #save-card-hosted) .woocommerce-MyAccount-navigation .list-group-item:first-child:not(:hover):not(:focus-visible) {
  background: transparent;
  box-shadow: inset 3px 0 0 transparent;
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .woocommerce-account:has(.woocommerce-MyAccount-content #save-card-hosted) .woocommerce-MyAccount-navigation .list-group-item[href*="spgw_save_card"] {
    background: var(--mim-primary, #3c2415);
    border-color: var(--mim-primary, #3c2415);
    color: #fff;
    box-shadow: none;
  }

  .woocommerce-account:has(.woocommerce-MyAccount-content #save-card-hosted) .woocommerce-MyAccount-navigation .list-group-item:first-child:not(:hover):not(:focus-visible) {
    background: var(--mim-surface, #fff);
    border-color: var(--mim-border, #e9e4df);
    color: var(--mim-primary, #3c2415);
    box-shadow: none;
  }
}

/* Layout: the plugin prints the "add card" form first and the saved cards
   (or "Nimate shranjenih kartic.", a bare text node) after it. A grid puts
   the saved cards under the title and draws the white card behind the form
   with ::after (rows 4–7). The text node is auto-placed into the free row 3. */
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  overflow: visible; /* Saferpay notify.css sets overflow-x:auto, which clips the card shadow */
  color: var(--mim-text-muted);
  font-size: 0.92rem;
}

/* Everything in column 1 – otherwise items placed next to the ::after card get an extra column */
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > *,
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted)::before {
  grid-column: 1;
}

.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted)::before { grid-row: 1; }
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > .woocommerce-notices-wrapper { grid-row: 2; }
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > .divScroll { grid-row: 3; }
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > h3 { grid-row: 4; }
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > #sfwp-cardtype { grid-row: 5; }
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > #saferpay-div { grid-row: 6; }
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > #save-card-hosted { grid-row: 7; }

.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted)::after {
  content: "";
  grid-row: 4 / 8;
  grid-column: 1;
  order: -1; /* paint first, so the form sits on top of it */
  margin-top: 1.5rem;
  background: var(--mim-surface);
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  box-shadow: var(--mim-shadow);
}

/* "Nimate shranjenih kartic." / saved cards table spacing */
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > .divScroll {
  margin: 0.75rem 0 0;
}

/* Add card – header */
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: calc(1.5rem + 1px) 1px 0;
  padding: 1rem 1.5rem;
  background: var(--mim-secondary-soft);
  border-bottom: 1px solid var(--mim-border);
  border-radius: calc(var(--mim-radius) - 1px) calc(var(--mim-radius) - 1px) 0 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mim-primary);
}

.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > h3::before {
  content: "\f09d"; /* credit card */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--mim-secondary);
}

/* Payment type select (Cards / Twint / PostFinancePay) */
.woocommerce-account .woocommerce-MyAccount-content select#sfwp-cardtype {
  justify-self: start;
  width: 16rem;
  max-width: calc(100% - 3rem);
  height: 44px;
  margin: 1.5rem 1.5rem 0;
  padding: 0 2.25rem 0 0.85rem;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius-sm);
  background-color: var(--mim-surface);
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--mim-text);
}

.woocommerce-account .woocommerce-MyAccount-content select#sfwp-cardtype:focus {
  border-color: var(--mim-secondary);
  box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.18);
  outline: none;
}

/* Card fields. On live these inputs become Saferpay iframes that draw their
   own grey underline (style "sample1"), so the fields keep the underline
   look instead of a full box. */
.woocommerce-account .woocommerce-MyAccount-content #saferpay-div {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 1.5rem 0;
  padding: 0 !important; /* notify.css: padding 20px 0 !important */
}

.woocommerce-account .woocommerce-MyAccount-content #saferpay-div .row {
  margin: 0;
  --bs-gutter-x: 0;
}

.woocommerce-account .woocommerce-MyAccount-content #saferpay-div .row > * {
  padding: 0;
  margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content #saferpay-div .row:last-child {
  flex-wrap: nowrap;
  gap: 1rem;
}

.woocommerce-account .woocommerce-MyAccount-content #saferpay-div .row:last-child > div {
  flex: 1 1 0;
  min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-content #saferpay-div.sample-one .row input,
.woocommerce-account .woocommerce-MyAccount-content #saferpay-div.sample-one .row iframe {
  height: 46px !important;
  padding: 0 0.15rem;
  border: 0;
  border-bottom: 1px solid #cfcfcf;
  border-radius: 0;
  background-color: transparent;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  color: var(--mim-text);
}

.woocommerce-account .woocommerce-MyAccount-content #saferpay-div.sample-one .row input::placeholder {
  color: #a89b91;
}

.woocommerce-account .woocommerce-MyAccount-content #saferpay-div .text-danger {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.3;
}

.woocommerce-account .woocommerce-MyAccount-content #saferpay-div .text-danger:empty {
  display: none;
}

/* Add card button */
.woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > #save-card-hosted {
  margin: 1.5rem 1.5rem 1.5rem;
}

.woocommerce-account .woocommerce-MyAccount-content #save-card-hosted button.addCard {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.7rem 1.5rem !important; /* medinmleko-custom-style.css: button.addCard padding !important */
  border: 1px solid var(--mim-primary);
  border-radius: var(--mim-radius-sm);
  background-color: var(--mim-primary);
  font-family: "Poppins", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-content #save-card-hosted button.addCard::before {
  content: "\f067"; /* plus */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.78rem;
}

.woocommerce-account .woocommerce-MyAccount-content #save-card-hosted button.addCard:hover {
  background-color: var(--mim-primary-hover);
  border-color: var(--mim-primary-hover);
}

/* Saved cards table (plugin markup: plain <table>, first row = headers) */
.woocommerce-account .woocommerce-MyAccount-content .divScroll {
  overflow-x: auto !important; /* inline style="overflow-x:scroll" shows an empty scrollbar */
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius);
  background: var(--mim-surface);
  box-shadow: var(--mim-shadow);
  overflow: hidden;
  font-size: 0.92rem;
  color: var(--mim-text);
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table tr:empty {
  display: none; /* the plugin closes the table with a stray <tr/> */
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table th {
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--mim-border);
  background: var(--mim-secondary-soft);
  color: var(--mim-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table th[colspan] {
  text-align: left !important; /* Bootstrap .text-center is !important */
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table td {
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--mim-border-soft);
  vertical-align: middle;
  background: transparent;
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table tr:nth-last-child(2) td,
.woocommerce-account .woocommerce-MyAccount-content .divScroll > table tr:last-child td {
  border-bottom: 0;
}

/* Card number */
.woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:first-child {
  font-weight: 600;
  color: var(--mim-primary);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:first-child::before {
  content: "\f09d";
  margin-right: 0.6rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--mim-secondary);
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:nth-child(2),
.woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:nth-child(3) {
  color: var(--mim-text-muted);
  white-space: nowrap;
}

/* Action columns: delete + edit */
.woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:nth-child(4),
.woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:nth-child(5) {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

/* Delete | Edit sit next to each other; the expiry editor opens to the right */
.woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:nth-child(4) {
  padding-right: 0;
  text-align: left;
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:nth-child(5) {
  padding-left: 0.5rem;
  text-align: left;
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table form {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table input[type="button"],
.woocommerce-account .woocommerce-MyAccount-content .divScroll > table input[type="submit"] {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius-sm);
  background: var(--mim-surface);
  color: var(--mim-primary);
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table input[type="button"]:hover,
.woocommerce-account .woocommerce-MyAccount-content .divScroll > table input[type="submit"]:hover {
  background: var(--mim-secondary-soft);
  border-color: var(--mim-secondary);
}

/* Delete */
.woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:nth-child(4) input[type="button"]:hover {
  background: var(--mim-danger-soft);
  border-color: var(--mim-danger);
  color: var(--mim-danger);
}

/* Update (shown after "Edit") */
.woocommerce-account .woocommerce-MyAccount-content .divScroll > table input.aliasUpdate {
  background: var(--mim-primary);
  border-color: var(--mim-primary);
  color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table input.aliasUpdate:hover {
  background: var(--mim-primary-hover);
  border-color: var(--mim-primary-hover);
  color: #fff;
}

/* Expiry editor (slides open on "Edit") */
.woocommerce-account .woocommerce-MyAccount-content .divScroll > table .auWrap {
  margin: 0 0 0.5rem;
  text-align: left;
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table .auWrap p {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mim-text-muted);
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table .auWrap select {
  display: inline-block;
  width: 4.75rem;
  min-width: 0;
  height: 34px;
  margin: 0 0.35rem 0 0;
  padding: 0 1.75rem 0 0.6rem;
  border: 1px solid var(--mim-border);
  border-radius: var(--mim-radius-sm);
  background-color: var(--mim-surface);
  font-size: 0.82rem;
  color: var(--mim-text);
}

.woocommerce-account .woocommerce-MyAccount-content .divScroll > table .auWrap select.ExpYear {
  width: 6rem;
}

/* --------------------------------------------------------------------------
   6. Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  /* Saved cards: one card per row – number + type on top, buttons below */
  .woocommerce-account .woocommerce-MyAccount-content .divScroll > table,
  .woocommerce-account .woocommerce-MyAccount-content .divScroll > table tbody {
    display: block;
  }

  .woocommerce-account .woocommerce-MyAccount-content .divScroll > table tr:first-child {
    display: none;
  }

  .woocommerce-account .woocommerce-MyAccount-content .divScroll > table tr:not(:first-child):not(:empty) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "number type"
      "edit   delete";
    align-items: center;
    gap: 0.75rem 0.5rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--mim-border-soft);
  }

  .woocommerce-account .woocommerce-MyAccount-content .divScroll > table tr:nth-last-child(2) {
    border-bottom: 0;
  }

  .woocommerce-account .woocommerce-MyAccount-content .divScroll > table tr > td {
    width: auto;
    padding: 0;
    border: 0;
  }

  .woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:first-child { grid-area: number; }
  .woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:nth-child(2) { grid-area: type; font-size: 0.8rem; text-align: right; }
  .woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:nth-child(3) { display: none; } /* "Authenticated" – meaningless without its header */
  .woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:nth-child(4) { grid-area: delete; width: auto; align-self: start; }
  .woocommerce-account .woocommerce-MyAccount-content .divScroll > table td:nth-child(5) { grid-area: edit; width: auto; padding: 0; white-space: normal; }
}

@media (max-width: 575.98px) {
  .woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content:has(> .woocommerce-Addresses)::before,
  .woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted, .divScroll)::before {
    font-size: 1.3rem;
  }

  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses.u-columns,
  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns--addresses {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  /* Edit address form: one column, full-width save button */
  .woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content > form {
    padding: 0 1rem 1.25rem;
  }

  .woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content > form > h2 {
    margin: 0 -1rem 1.25rem;
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .woocommerce-account .woocommerce-MyAccount-content .woocommerce-address-fields > p button.button {
    width: 100%;
  }

  /* Order details */
  .woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type {
    padding: 0.9rem 1rem 0.9rem 3.5rem;
    font-size: 0.88rem;
  }

  .woocommerce-account.woocommerce-view-order .woocommerce-MyAccount-content > p:first-of-type::before {
    left: 0.85rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
  }

  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details {
    font-size: 0.88rem;
  }

  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details thead th,
  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tbody td,
  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot th,
  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-table--order-details tfoot td {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  /* Saved cards form */
  .woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > h3 {
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  .woocommerce-account .woocommerce-MyAccount-content select#sfwp-cardtype {
    width: auto;
    max-width: none;
    justify-self: stretch;
    margin: 1.25rem 1rem 0;
  }

  .woocommerce-account .woocommerce-MyAccount-content #saferpay-div {
    margin: 0.5rem 1rem 0;
  }

  .woocommerce-account .woocommerce-MyAccount-content:has(#save-card-hosted) > #save-card-hosted {
    margin: 1.25rem 1rem;
  }

  .woocommerce-account .woocommerce-MyAccount-content #save-card-hosted button.addCard {
    width: 100%;
    justify-content: center;
  }
}
