.hcb-my-credits {
  max-width: 960px;
}

.hcb-my-credits h2 {
  margin-top: 0;
}

.hcb-subtitle {
  margin-bottom: 20px;
  color: #666;
}

.hcb-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.hcb-card {
  background: #f7f7f7;
  padding: 12px;
  border-radius: 16px;
  font-size: 14px;
}

.hcb-card strong {
  display: block;
  font-size: 12px;
  color: #000;
  margin-bottom: 4px;
}

.hcb-card span {
  display: block;
  font-size: 14px;
  color: #000;
  margin-bottom: 4px;
  font-weight: 500;
}

.hcb-actions {
  margin-bottom: 25px;
}

.hcb-list {
  border-top: 1px solid #eee;
  margin-bottom: 25px;
}

.hcb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.hcb-row strong {
  display: block;
}

.meta {
  font-size: 13px;
  color: #777;
}

.hcb-my-credits .hcb-button {
  display: inline-block;
  background: #eaeaea;
  padding: 8px 16px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
}

.hcb-my-credits .hcb-button.primary {
  background: #694873;
  color: #fff;
}

.hcb-my-credits .hcb-button:hover {
  text-decoration: none;
}

.hcb-contact-preferences .hcb-contact-preferences__list {
  margin-bottom: 20px;
}

.hcb-contact-preferences-section h3 {
  margin: 0;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 600;
}

.hcb-contact-preferences-section + .hcb-contact-preferences-section {
  margin-top: 8px;
  border-top: 1px solid #eee;
}

.hcb-contact-preferences__row {
  cursor: pointer;
}

.hcb-contact-preferences__row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

.hcb-contact-preferences__status {
  margin-bottom: 20px;
}

.hcb-contact-preferences .hcb-button.primary {
  border: 0 !important;
  cursor: pointer;
  font-family: inherit;
  font-weight: 300;
}

@media (max-width: 768px) {
  .hcb-summary {
    grid-template-columns: 1fr 1fr;
  }

  .hcb-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hcb-credit-confirm-modal[hidden] {
  display: none;
}

.hcb-credit-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.hcb-credit-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hcb-credit-confirm-dialog {
  position: relative;
  width: 100%;
  max-width: 446px;
  margin: 64px auto 0;
  background: #fff;
  border-radius: 4px;
  padding: 24px;
  box-shadow:
    0 11px 15px -7px rgba(0, 0, 0, 0.2),
    0 24px 38px 3px rgba(0, 0, 0, 0.14),
    0 9px 46px 8px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.hcb-credit-confirm-title {
  margin: 0 0 24px;
  font-size: 2rem;
  line-height: 1.167;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.87);
}

.hcb-credit-confirm-message p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.87);
}

.hcb-credit-confirm-message p:last-child {
  margin-bottom: 0;
}

.hcb-credit-confirm-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
}

.hcb-credit-confirm-cancel,
.hcb-credit-confirm-continue {
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02857em;
  text-transform: uppercase;
  cursor: pointer;
  min-width: 64px;
  height: 36px;
  padding: 6px 16px;
}

.hcb-credit-confirm-cancel {
  background: transparent;
  color: #694873;
  box-shadow: none;
}

.hcb-credit-confirm-cancel:hover {
  background: rgba(0, 118, 99, 0.08);
}

.hcb-credit-confirm-continue {
  background: #694873;
  color: #fff;
  box-shadow:
    0 3px 1px -2px rgba(0, 0, 0, 0.2),
    0 2px 2px 0 rgba(0, 0, 0, 0.14),
    0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

/* WooCommerce My Account Menu Styling */

/* Section headers - make non-clickable and styled as dividers */
.woocommerce-MyAccount-navigation-link[class*="__section"] {
  pointer-events: none;
  margin-top: 12px;
  margin-bottom: 6px;
  padding: 8px 0;
}

.woocommerce-MyAccount-navigation-link[class*="__section"] a {
  pointer-events: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: #666;
  text-transform: none;
  text-decoration: none;
  cursor: default;
}

.woocommerce-MyAccount-navigation-link[class*="__section"] a:hover {
  color: #666;
}

/* Regular menu items */
.woocommerce-MyAccount-navigation-link:not([class*="__section"]) a {
  font-weight: 500;
}

.woocommerce-MyAccount-navigation-link--my-handpans a,
.woocommerce-MyAccount-navigation-link--my-credits a {
  font-weight: 600;
  color: #694873;
}

.hcb-dashboard-cards__header {
  margin-bottom: 20px;
}

.hcb-dashboard-cards__header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.2;
}

.hcb-dashboard-cards__header p {
  margin: 0;
  color: #5f5f5f;
}

.hcb-dashboard-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.hcb-dashboard-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  padding: 22px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.hcb-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: #d9d9d9;
}

.hcb-dashboard-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.hcb-dashboard-card p {
  margin: 0;
  color: #5f5f5f;
  line-height: 1.5;
}

.hcb-dashboard-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.hcb-dashboard-card__meta {
  font-size: 0.95rem;
  color: #694873;
  font-weight: 600;
}

.hcb-dashboard-card__arrow {
  font-size: 1.2rem;
  color: #694873;
}

/* .hcb-dashboard-cards {
  margin-top: 32px;
} */

.hcb-dashboard-cards__header {
  margin-bottom: 20px;
}

.hcb-dashboard-cards__header h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.2;
}

.hcb-dashboard-cards__header p {
  margin: 0;
  color: #5f5f5f;
}

.hcb-dashboard-cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.hcb-dashboard-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  padding: 22px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.hcb-dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: #d9d9d9;
}

.hcb-dashboard-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.hcb-dashboard-card p {
  margin: 0;
  color: #5f5f5f;
  line-height: 1.5;
}

.hcb-dashboard-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.hcb-dashboard-card__meta {
  font-size: 0.95rem;
  color: #694873;
  font-weight: 600;
}

.hcb-dashboard-card__arrow {
  font-size: 1.2rem;
  color: #694873;
  .woocommerce-MyAccount-navigation-link--my-handpans a,
  .woocommerce-MyAccount-navigation-link--member-downloads a {
    font-weight: 600;
    color: #694873;
  }
}

/* Container spacing */
.woocommerce-MyAccount-navigation {
  padding-right: 24px;
}

/* Base list reset */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Menu items */
.woocommerce-MyAccount-navigation li {
  padding: 0 !important;
}

/* Links */
.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 8px 16px;
  border-radius: 16px;
  text-decoration: none !important;
  color: #2c2c2c;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

/* Hover */
.woocommerce-MyAccount-navigation a:hover {
  background: #6948730c;
}

/* Active item */
.woocommerce-MyAccount-navigation .is-active a {
  background: #6948730c;
  color: #694873;
  font-weight: 600;
}

/* Section headings (your fake keys) */
.woocommerce-MyAccount-navigation li[class*="__"] {
  margin-top: 18px;
  margin-bottom: 6px;
  pointer-events: none;
}

.woocommerce-MyAccount-navigation li[class*="__"] a {
  padding: 6px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a8a;
  font-weight: 600;
  background: none !important;
}

.woocommerce-MyAccount-navigation li[class*="__"] + li {
  margin-top: 4px;
}
