/* ═══════════════════════════════════════════════════════════════════
   Hodl Storage Suite — Subscription Removal Widget
   Palette: #BA1B1C red · #333333 ink · #F5F5F5 ground · white surface
   No amber/gold anywhere — pending state uses red-tinted palette.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --hr:  #BA1B1C;
  --hrd: #8F1516;
  --hrl: #FDF2F2;
  --ht:  #333333;
  --hm:  #666666;
  --hb:  #ECECEC;
  --hbg: #F5F5F5;
}

/* ── Per-item removal controls: quantity stepper + Remove button ──
 * Replaces the old checkbox-per-unit system. The stepper stages how
 * many units of a multi-quantity item to remove (0 up to the current
 * quantity); Remove commits whatever is staged (or the whole item, if
 * nothing's been staged) — same visual language as the checkout
 * quantity controls, so it reads as the same product throughout. */
.hodl-item-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
  flex-wrap: wrap !important;
}

.hodl-qty-stepper {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.hodl-qbtn {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 6px !important;
  border: 1.5px solid var(--hb) !important;
  background: var(--hbg) !important;
  color: var(--ht) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transition: background .15s, border-color .15s !important;
}
.hodl-qbtn:hover:not(:disabled) {
  background: var(--hr) !important;
  border-color: var(--hr) !important;
  color: #fff !important;
}
.hodl-qbtn:disabled { opacity: .4 !important; cursor: not-allowed !important; }

.hodl-qty-input {
  width: 42px;
  height: 26px;
  text-align: center;
  background: var(--hbg);
  border: 1.5px solid var(--hb);
  color: var(--ht);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  margin: 0;
  box-shadow: none;
  box-sizing: border-box;
  -moz-appearance: textfield;
}
.hodl-qty-input::-webkit-inner-spin-button,
.hodl-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.hodl-qty-input.hodl-dirty {
  border-color: var(--hr);
  background: var(--hrl);
  color: var(--hr);
}

.hodl-item-remove-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: none !important;
  border: 1.5px solid #EDABAB !important;
  color: var(--hr) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  padding: 5px 12px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background .15s, color .15s !important;
}
.hodl-item-remove-btn:hover:not(:disabled) {
  background: var(--hr) !important;
  color: #fff !important;
}
.hodl-item-remove-btn:disabled { opacity: .4 !important; cursor: not-allowed !important; }

.hodl-update-btn {
  background: var(--hr) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 5px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: background .15s ease, opacity .15s ease !important;
}
.hodl-update-btn:hover:not(:disabled) { background: var(--hrd) !important; }
.hodl-update-btn:disabled { opacity: .4 !important; cursor: not-allowed !important; }

.hodl-row-busy { opacity: .4 !important; pointer-events: none !important; }

/* ── Pending badge — red-tinted (was amber/gold) ── */
.hodl-pending-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 6px !important;
  font-size: 11px !important;
  background: var(--hrl) !important;
  color: var(--hr) !important;
  border: 1px solid #EDABAB !important;
  border-radius: 4px !important;
  padding: 3px 9px !important;
  font-weight: 600 !important;
}

/* ── Modals ── */
#hodl-rm-modal,
#hodl-cancel-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#hodl-rm-modal.on,
#hodl-cancel-modal.on { display: flex; }

.hodl-mwrap {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 48px rgba(0,0,0,.22);
}

.hodl-mhead {
  background: var(--ht);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1;
  border-radius: 14px 14px 0 0;
}

.hodl-mhead h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.hodl-mx {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  box-shadow: none !important;
  transition: color .12s;
}

.hodl-mx:hover { color: #fff; }

.hodl-mbody { padding: 20px; }

.hodl-mbody p {
  font-size: 13px;
  color: #333333;
  margin: 0 0 12px;
  line-height: 1.6;
}

.hodl-selected-list {
  background: var(--hbg);
  border: 1px solid var(--hb);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.hodl-selected-list li {
  font-size: 13px;
  color: var(--ht);
  padding: 3px 0;
  list-style: disc;
  margin-left: 16px;
}

.hodl-selected-list li span {
  color: var(--hr);
  font-weight: 600;
}

/* ── Return options ── */
.hodl-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.hodl-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--hb);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.hodl-opt:hover,
.hodl-opt.on {
  border-color: var(--hr);
  background: var(--hrl);
}

.hodl-opt input[type=radio] { margin-top: 2px; accent-color: var(--hr); }

.hodl-opt-text { flex: 1; }

.hodl-opt-text strong {
  display: block;
  font-size: 13px;
  color: var(--ht);
  margin-bottom: 2px;
  font-weight: 700;
}

.hodl-opt-text span {
  font-size: 11px;
  color: var(--hm);
  line-height: 1.4;
  display: block;
}

.hodl-opt-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--hr);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Info notice (was amber — now neutral) ── */
.hodl-mnotice {
  background: var(--hbg);
  border: 1px solid var(--hb);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--hm);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ── Modal buttons ── */
.hodl-mbtns { display: flex; gap: 8px; }

.hodl-mconfirm {
  flex: 1;
  padding: 11px;
  background: var(--hr);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
  transition: background .15s;
}

.hodl-mconfirm:hover { background: var(--hrd); }
.hodl-mconfirm:disabled { opacity: .6; cursor: not-allowed; }

.hodl-mcancel {
  padding: 11px 18px;
  background: none;
  border: 1.5px solid var(--hb);
  color: var(--hm);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
  transition: background .15s;
}

.hodl-mcancel:hover { background: var(--hbg); }

.hodl-mfb {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.hodl-mfb.ok  { display: block; background: #f0fdf4; color: #166534; }
.hodl-mfb.err { display: block; background: #fee2e2; color: #991b1b; }

/* ── Full-cancel modal ── */
.hodl-cancel-wrap {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 10px 48px rgba(0,0,0,.22);
  overflow: hidden;
  text-align: center;
}

.hodl-cancel-head {
  background: var(--ht);
  padding: 16px 20px;
}

.hodl-cancel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.hodl-cancel-body { padding: 28px 20px; }

.hodl-cancel-icon { font-size: 42px; margin-bottom: 12px; display: block; }

.hodl-cancel-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ht);
  margin: 0 0 10px;
}

.hodl-cancel-body p {
  font-size: 13px;
  color: var(--hm);
  line-height: 1.6;
  margin: 0 0 22px;
}

.hodl-cancel-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.hodl-cancel-yes {
  padding: 11px 22px;
  background: var(--hr);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
  transition: background .15s;
}

.hodl-cancel-yes:hover { background: var(--hrd); }

.hodl-cancel-no {
  padding: 11px 22px;
  background: none;
  border: 1.5px solid var(--hb);
  color: var(--hm);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none !important;
  transition: background .15s;
}

.hodl-cancel-no:hover { background: var(--hbg); }

/* ── Removed badge (green — semantic status, intentional) ── */
.hodl-removed-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-top: 6px !important;
  font-size: 11px !important;
  background: #f0fdf4 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 4px !important;
  padding: 3px 9px !important;
  font-weight: 600 !important;
}

/* ── Toast notification ── */
#hodl-toast {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(80px) !important;
  min-width: 280px !important;
  max-width: 480px !important;
  padding: 14px 20px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  z-index: 999999 !important;
  text-align: center !important;
  box-shadow: 0 6px 32px rgba(0,0,0,.18) !important;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .35s ease !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#hodl-toast.hodl-toast-visible {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.hodl-toast-ok  { background: #166534 !important; color: #fff !important; }
.hodl-toast-err { background: #991b1b !important; color: #fff !important; }

/* ── Removed row ── */
.hodl-removed-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.hodl-removed-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #999999 !important;
  text-decoration: line-through !important;
  line-height: 1.4 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   [hodl_manage_storage] — self-rendered storage manager
   Own card/list layout; the item-controls, badge, and modal styles
   above are shared with the older widget since both use the same
   class names for the stepper/remove button/badges.
   ═══════════════════════════════════════════════════════════════════ */
.hodl-storage-manager {
  background: #fff;
  border: 1.5px solid var(--hb);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.hodl-storage-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hb);
}

.hodl-storage-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ht);
}

.hodl-storage-sub-meta {
  font-size: 12px;
  color: var(--hm);
  display: block;
  margin-top: 2px;
}

.hodl-storage-empty {
  font-size: 13px;
  color: var(--hm);
  padding: 20px 0;
  text-align: center;
}

.hodl-storage-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hodl-storage-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--hb);
}
.hodl-storage-item:last-child { border-bottom: none; }

.hodl-storage-item-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 160px;
}

.hodl-storage-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ht);
}

.hodl-storage-item-qty-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--hr);
  background: var(--hrl);
  border: 1px solid #EDABAB;
  border-radius: 4px;
  padding: 1px 7px;
}

.hodl-storage-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ht);
  white-space: nowrap;
}

/* Full-width flex-basis on the controls row so the stepper/remove
 * button sit on their own line beneath the name + price, matching the
 * checkout row layout, rather than squeezing into the same line. */
.hodl-storage-item .hodl-item-controls {
  flex-basis: 100%;
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 4px !important;
}

.hodl-storage-item-pending,
.hodl-storage-item-removed {
  opacity: .75;
}

.hodl-storage-totals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--ht);
  font-size: 14px;
  color: var(--ht);
}
.hodl-storage-totals strong {
  font-size: 16px;
  color: var(--hr);
}

/* ═══════════════════════════════════════════════════════════════════
   My Account tab navigation — every tab (not just the active one)
   styled white-text-on-red, including Logout. Targets WooCommerce's
   own standard class names (.woocommerce-MyAccount-navigation-link
   and its --dashboard/--orders/--subscriptions/--edit-address/
   --edit-account/--customer-logout modifiers), which stay stable
   regardless of theme or Elementor widget settings — unlike custom
   Elementor-generated classes, these are WooCommerce core markup.
   ═══════════════════════════════════════════════════════════════════ */
.woocommerce-MyAccount-navigation ul {
  display: flex !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 2px !important;
}

.woocommerce-MyAccount-navigation-link {
  flex: 1 1 auto !important;
  list-style: none !important;
}

.woocommerce-MyAccount-navigation-link a {
  display: block !important;
  text-align: center !important;
  padding: 12px 16px !important;
  background: var(--hr) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  border-radius: 4px !important;
  transition: background .15s !important;
}

.woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-MyAccount-navigation-link.is-active a {
  background: var(--hrd) !important;
}

@media (max-width: 640px) {
  .woocommerce-MyAccount-navigation-link { flex: 1 1 45% !important; }
  .woocommerce-MyAccount-navigation-link a { padding: 10px 8px !important; font-size: 12px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   [hodl_dashboard]
   ═══════════════════════════════════════════════════════════════════ */
.hodl-dash-welcome {
  font-size: 14px;
  color: var(--ht);
  margin-bottom: 8px;
}
.hodl-dash-welcome a { color: var(--hr); font-weight: 700; text-decoration: none; }
.hodl-dash-welcome a:hover { text-decoration: underline; }

.hodl-dash-sub {
  font-size: 13px;
  color: var(--hm);
  line-height: 1.6;
  margin-bottom: 20px;
}

.hodl-dash-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.hodl-dash-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: #fff;
  border: 1.5px solid var(--hb);
  border-radius: 10px;
  color: var(--ht) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,.03);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .15s ease, color .15s ease;
}
.hodl-dash-link i { font-size: 22px; color: var(--hr); transition: color .15s ease; }
.hodl-dash-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  border-color: var(--hr) !important;
  background: #fff !important;
  color: var(--ht) !important;
}
.hodl-dash-link:hover i { color: var(--hr); }

/* ═══════════════════════════════════════════════════════════════════
   [hodl_addresses] — list view
   ═══════════════════════════════════════════════════════════════════ */
.hodl-address-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.hodl-address-card {
  background: var(--hbg);
  border: 1.5px solid var(--hb);
  border-radius: 10px;
  padding: 16px 18px;
}

.hodl-address-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hb);
}
.hodl-address-card-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ht);
}

.hodl-address-edit-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--hr) !important;
  text-decoration: none !important;
}
.hodl-address-edit-link:hover { text-decoration: underline !important; }

.hodl-address-card address {
  font-style: normal;
  font-size: 13px;
  color: var(--ht);
  line-height: 1.7;
}
.hodl-address-empty { color: var(--hm); font-size: 12px; }

.hodl-back-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--hr) !important;
  text-decoration: none !important;
}
.hodl-back-link:hover { text-decoration: underline !important; }

/* ═══════════════════════════════════════════════════════════════════
   [hodl_addresses] edit form / [hodl_account_details] — styling
   WooCommerce's own native form output (unmodified fields/validation/
   save logic) to match the rest of the plugin.
   ═══════════════════════════════════════════════════════════════════ */
.hodl-account-form .woocommerce-address-fields,
.hodl-account-form .woocommerce-EditAccountForm {
  max-width: 100%;
}

.hodl-account-form .form-row {
  margin-bottom: 14px !important;
}

.hodl-account-form .form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ht);
  margin-bottom: 5px;
}

.hodl-account-form input.input-text,
.hodl-account-form select,
.hodl-account-form textarea {
  width: 100% !important;
  box-sizing: border-box;
  padding: 10px 12px !important;
  background: var(--hbg) !important;
  border: 1.5px solid var(--hb) !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  color: var(--ht) !important;
}
.hodl-account-form input.input-text:focus,
.hodl-account-form select:focus,
.hodl-account-form textarea:focus {
  outline: none !important;
  border-color: var(--hr) !important;
}

.hodl-account-form .select2-container .select2-selection--single {
  height: 42px !important;
  border: 1.5px solid var(--hb) !important;
  border-radius: 6px !important;
  background: var(--hbg) !important;
}
.hodl-account-form .select2-selection__rendered { line-height: 40px !important; color: var(--ht) !important; }
.hodl-account-form .select2-selection__arrow { height: 40px !important; }

.hodl-account-form button[type="submit"],
.hodl-account-form input[type="submit"] {
  background: var(--hr) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background .15s !important;
}
.hodl-account-form button[type="submit"]:hover,
.hodl-account-form input[type="submit"]:hover {
  background: var(--hrd) !important;
}

.hodl-account-form .woocommerce-message,
.hodl-account-form .woocommerce-error,
.hodl-account-form .woocommerce-info {
  list-style: none;
  margin: 0 0 16px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}
.hodl-account-form .woocommerce-message {
  background: #E6F2E8 !important;
  color: #166534 !important;
  border: 1px solid #B7E0BC !important;
}
.hodl-account-form .woocommerce-error {
  background: var(--hrl) !important;
  color: var(--hr) !important;
  border: 1px solid #EDABAB !important;
}
.hodl-account-form .woocommerce-error li { list-style: none; }

/* ═══════════════════════════════════════════════════════════════════
   [hodl_my_account] — combined unit shell
   ═══════════════════════════════════════════════════════════════════ */
.hodl-my-account-unit {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hodl-my-account-content {
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════
   [hodl_my_account] — CSS-only tabs (radio + label + sibling
   selectors). All five tabs render live, real data at once; switching
   is pure CSS, no page reload. Visual design matches the clean
   underline-tab style (white card, bottom-border active state, fade-in)
   rather than the filled-box nav used elsewhere in this stylesheet.
   ═══════════════════════════════════════════════════════════════════ */
.hodl-tabs-wrapper {
  width: 100%;
  background-color: #fff;
  border: 1px solid var(--hb);
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,.03);
  padding: 30px 35px;
  position: relative;
  box-sizing: border-box;
}

.hodl-tabs-wrapper .hodl-tab-radio {
  display: none;
}

.hodl-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--hb);
  margin-bottom: 25px;
}

.hodl-tabs-nav label,
.hodl-tabs-nav .hodl-tab-logout {
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--ht);
  border-bottom: 3px solid transparent;
  transition: color .2s ease, border-color .2s ease;
  margin-bottom: -1px;
  text-decoration: none !important;
}

.hodl-tabs-nav label:hover,
.hodl-tabs-nav .hodl-tab-logout:hover {
  color: var(--hr) !important;
}

.hodl-tabs-nav .hodl-tab-logout {
  margin-left: auto;
}

.hodl-tab-panel {
  display: none;
  font-size: 14px;
  color: var(--ht);
  line-height: 1.5;
  animation: hodlTabFadeIn .3s ease;
}

@keyframes hodlTabFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#hodl-tab-dashboard:checked     ~ .hodl-tabs-nav label[for="hodl-tab-dashboard"],
#hodl-tab-orders:checked        ~ .hodl-tabs-nav label[for="hodl-tab-orders"],
#hodl-tab-order-detail:checked  ~ .hodl-tabs-nav label[for="hodl-tab-orders"],
#hodl-tab-subscriptions:checked ~ .hodl-tabs-nav label[for="hodl-tab-subscriptions"],
#hodl-tab-subscription-detail:checked ~ .hodl-tabs-nav label[for="hodl-tab-subscriptions"],
#hodl-tab-edit-address:checked  ~ .hodl-tabs-nav label[for="hodl-tab-edit-address"],
#hodl-tab-edit-account:checked  ~ .hodl-tabs-nav label[for="hodl-tab-edit-account"] {
  color: var(--hr) !important;
  border-bottom-color: var(--hr) !important;
}

#hodl-tab-dashboard:checked           ~ .hodl-tabs-panels .panel-dashboard,
#hodl-tab-orders:checked              ~ .hodl-tabs-panels .panel-orders,
#hodl-tab-order-detail:checked        ~ .hodl-tabs-panels .panel-order-detail,
#hodl-tab-subscriptions:checked       ~ .hodl-tabs-panels .panel-subscriptions,
#hodl-tab-subscription-detail:checked ~ .hodl-tabs-panels .panel-subscription-detail,
#hodl-tab-edit-address:checked        ~ .hodl-tabs-panels .panel-edit-address,
#hodl-tab-edit-account:checked        ~ .hodl-tabs-panels .panel-edit-account {
  display: block;
}

/* Panels don't need their own card chrome — .hodl-storage-manager
 * inside each one already supplies that; strip the outer wrapper's
 * own border/shadow when nested here to avoid a box-in-a-box look. */
.hodl-tabs-panels .hodl-storage-manager {
  border: none;
  box-shadow: none;
  padding: 0;
}

@media (max-width: 767px) {
  .hodl-tabs-wrapper { padding: 20px; }
  .hodl-tabs-nav { flex-direction: column; align-items: stretch; }
  .hodl-tabs-nav label,
  .hodl-tabs-nav .hodl-tab-logout {
    border-bottom: 1px solid var(--hb);
    margin-left: 0;
    text-align: center;
  }
}

/* Defensive: force any native WooCommerce / WooCommerce Subscriptions
 * status badge or <mark> that might carry its own default color
 * (WooCommerce core and WC Subscriptions both default several
 * statuses to an amber/gold tone) to the brand red instead, anywhere
 * inside My Account content — this plugin's own .hodl-oh-status badges
 * are already red, this only catches anything native that might slip
 * through on a page/version this wasn't tested against. */
.hodl-tabs-wrapper mark,
.hodl-tabs-wrapper .subscription-status,
.hodl-storage-manager mark,
.hodl-storage-manager .subscription-status,
.woocommerce-MyAccount-content mark,
.woocommerce-MyAccount-content .subscription-status {
  background: var(--hrl) !important;
  color: var(--hr) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   Force all link colors within My Account content to the brand red —
   the Hello Elementor theme / Elementor Kit's own global "Accent"
   color (a tan/gold tone, #E0CDA9) otherwise applies to any link here
   that doesn't have its own explicit color rule.
   ═══════════════════════════════════════════════════════════════════ */
.hodl-tabs-wrapper a,
.hodl-storage-manager a,
.hodl-my-account-unit a,
.woocommerce-MyAccount-content a {
  color: var(--hr) !important;
}
.hodl-tabs-wrapper a:hover,
.hodl-storage-manager a:hover,
.hodl-my-account-unit a:hover,
.woocommerce-MyAccount-content a:hover {
  color: var(--hrd) !important;
}
/* ...except links this stylesheet already deliberately makes white
 * (buttons/actions with their own solid background) — don't let the
 * broad rule above override those. */
.hodl-tabs-wrapper .hodl-update-btn,
.hodl-tabs-wrapper .hodl-oh-action-pay,
.hodl-tabs-wrapper button[type="submit"],
.hodl-tabs-wrapper input[type="submit"],
.hodl-storage-manager .hodl-update-btn,
.hodl-storage-manager .hodl-oh-action-pay,
.hodl-storage-manager button[type="submit"],
.hodl-storage-manager input[type="submit"] {
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════════
   [hodl_order_history] single-order detail (templates/order-detail.php)
   ═══════════════════════════════════════════════════════════════════ */
.hodl-oh-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hb);
}
.hodl-oh-meta-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hodl-oh-meta-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--hm);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.hodl-oh-meta-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ht);
}

.hodl-order-item-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--hm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hodl-order-shipping-method {
  margin-top: 14px;
  font-size: 13px;
  color: var(--hm);
}
.hodl-order-shipping-method i { color: var(--hr); margin-right: 6px; }

.hodl-order-edit-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--hr);
  background: var(--hrl);
  border: 1px solid #EDABAB;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
}
.hodl-order-edit-note i { font-size: 14px; }

/* The embedded subscription editor doesn't need its own separate card
 * chrome when it's already inside the order-detail card. */
.hodl-order-detail .hodl-storage-manager {
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 4px;
}







/* ═══════════════════════════════════════════════════════════════════
   [hodl_order_history]
   ═══════════════════════════════════════════════════════════════════ */
.hodl-oh-table-wrap {
  overflow-x: auto;
}

.hodl-oh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hodl-oh-table th {
  text-align: left;
  font-weight: 700;
  color: var(--ht);
  padding: 10px 12px;
  border-bottom: 2px solid var(--ht);
  white-space: nowrap;
}

.hodl-oh-table td {
  padding: 12px;
  border-bottom: 1px solid var(--hb);
  color: var(--ht);
  vertical-align: middle;
}

.hodl-oh-table tbody tr:last-child td { border-bottom: none; }

.hodl-oh-table a { color: var(--hr); font-weight: 700; text-decoration: none; }
.hodl-oh-table a:hover { text-decoration: underline; }

.hodl-oh-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--hbg);
  color: var(--hm);
  white-space: nowrap;
}
.hodl-oh-status-processing,
.hodl-oh-status-completed { background: #E6F2E8; color: #166534; }
.hodl-oh-status-pending,
.hodl-oh-status-on-hold   { background: var(--hrl); color: var(--hr); }
.hodl-oh-status-cancelled,
.hodl-oh-status-failed,
.hodl-oh-status-refunded  { background: #F1F1F1; color: #999999; }

.hodl-oh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  white-space: nowrap;
}

.hodl-oh-action {
  display: inline-flex !important;
  align-items: center;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  background: var(--hbg) !important;
  color: var(--ht) !important;
  border: 1.5px solid var(--hb) !important;
  transition: background .15s, border-color .15s, color .15s !important;
}
.hodl-oh-action:hover { text-decoration: none !important; }

.hodl-oh-action-pay {
  background: var(--hr) !important;
  color: #fff !important;
  border-color: var(--hr) !important;
}
.hodl-oh-action-pay:hover { background: var(--hrd) !important; }

.hodl-oh-action-cancel:hover {
  background: var(--hrl) !important;
  color: var(--hr) !important;
  border-color: #EDABAB !important;
}

.hodl-oh-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--hb);
  font-size: 12px;
  color: var(--hm);
}

.hodl-oh-page-btn {
  color: var(--hr) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.hodl-oh-page-btn:hover { text-decoration: underline !important; }

@media (max-width: 600px) {
  .hodl-oh-table thead { display: none; }
  .hodl-oh-table, .hodl-oh-table tbody, .hodl-oh-table tr, .hodl-oh-table td {
    display: block;
    width: 100%;
  }
  .hodl-oh-table tr {
    border: 1px solid var(--hb);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 8px 4px;
  }
  .hodl-oh-table td {
    border-bottom: none;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .hodl-oh-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--hm);
    font-size: 11px;
  }
  .hodl-oh-actions { justify-content: flex-end; }
}


