/* Logged-in customer menu: keep links readable on the light dropdown. */
.header-top .ps-customersignin .dropdown-menu {
  background-color: #fffdfa !important;
  color: #25312b !important;
}

.header-top .ps-customersignin .dropdown-menu a.dropdown-item,
.header-top .ps-customersignin .dropdown-menu a.dropdown-item *,
.header-top .ps-customersignin .dropdown-menu a.dropdown-item .material-icons {
  color: #25312b !important;
  -webkit-text-fill-color: #25312b !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.header-top .ps-customersignin .dropdown-menu a.dropdown-item:hover,
.header-top .ps-customersignin .dropdown-menu a.dropdown-item:focus,
.header-top .ps-customersignin .dropdown-menu a.dropdown-item[aria-current="page"] {
  background-color: #f3e8d5 !important;
  color: #873038 !important;
  -webkit-text-fill-color: #873038 !important;
}

.header-top .ps-customersignin .dropdown-menu a.dropdown-item:hover *,
.header-top .ps-customersignin .dropdown-menu a.dropdown-item:focus *,
.header-top .ps-customersignin .dropdown-menu a.dropdown-item[aria-current="page"] * {
  color: #873038 !important;
  -webkit-text-fill-color: #873038 !important;
}

/* Credit slips are not part of the BriGift customer workflow. */
#order_slips_main_link,
#order-slips_link,
.header-top .ps-customersignin .dropdown-menu a[href*="order-slip"],
.header-top .ps-customersignin .dropdown-menu a[href*="szamlajovairas"] {
  display: none !important;
}

/* Product description: a padded, rounded card instead of a clipped white slab. */
.page-product .product__bottom-left #product_accordion {
  overflow: hidden;
  border: 1px solid var(--brigift-line, #dfd2bd);
  border-radius: 16px;
  background: #fffdfa;
  box-shadow: 0 18px 50px rgba(39, 54, 44, .07);
}

.page-product .product__bottom-left #product_accordion > .accordion-item {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--brigift-line, #dfd2bd);
  border-radius: 0;
  background: transparent;
}

.page-product .product__bottom-left #product_accordion > .accordion-item:last-child {
  border-bottom: 0;
}

.page-product .product__bottom-left #product_accordion .accordion-button {
  padding: 1rem 1.25rem;
  background: #fffdfa;
  color: var(--brigift-forest, #173b2b);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: none;
}

.page-product .product__bottom-left #product_accordion .accordion-body {
  padding: 1.25rem;
  background: #fff;
}

.page-product .product__bottom-left #product_accordion .rich-text {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.page-product .product__bottom-left #product_accordion .rich-text img,
.page-product .product__bottom-left #product_accordion .rich-text iframe,
.page-product .product__bottom-left #product_accordion .rich-text table {
  max-width: 100% !important;
}

/* Both withdrawal actions are first-class cards on the account dashboard. */
.account-menu--main .rbf-account-card {
  display: flex !important;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  min-height: 108px;
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--bs-tertiary-bg, #f5f6f7);
  color: var(--brigift-forest, #173b2b);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.account-menu--main .rbf-account-card:hover,
.account-menu--main .rbf-account-card:focus-visible {
  border-color: var(--brigift-kraft, #b59968);
  box-shadow: 0 10px 24px rgba(39, 54, 44, .09);
  transform: translateY(-1px);
}

.account-menu--main .rbf-account-card .material-icons {
  flex: 0 0 auto;
  font-size: 1.7rem;
}

/* Withdrawal tracking follows the same visual language as customer pages. */
body:has(.rbf-track) #wrapper,
body:has(.rbf-status) #wrapper,
body:has(.rbf-withdrawal-form) #wrapper {
  background: linear-gradient(180deg, #fbf8f2 0, #f7f0e5 100%);
}

.rbf-track,
.rbf-status {
  width: min(100%, 920px);
  margin: 0 auto 2rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--brigift-line, #dfd2bd);
  border-radius: 16px;
  background: #fffdfa;
  box-shadow: 0 18px 50px rgba(39, 54, 44, .07);
}

.rbf-track > .text-muted {
  margin-bottom: 1.25rem;
  color: #596b61 !important;
}

.rbf-track form.card {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid #e3d8c7;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.rbf-track form.card label {
  display: block;
  margin-bottom: .4rem;
  color: var(--brigift-forest, #173b2b);
  font-weight: 700;
}

.rbf-track .form-control {
  min-height: 48px;
  border: 1px solid #d9cebd;
  border-radius: 9px;
  background: #fff;
  padding: .7rem .85rem;
}

.rbf-track .btn-primary {
  min-height: 48px;
  border-radius: 9px;
  font-weight: 700;
}

.rbf-track > .mt-3 {
  margin: 1.1rem 0 0 !important;
}

@media (max-width: 767px) {
  .page-product .product__bottom-left #product_accordion {
    border-radius: 12px;
  }

  .page-product .product__bottom-left #product_accordion .accordion-button,
  .page-product .product__bottom-left #product_accordion .accordion-body {
    padding: 1rem;
  }

  .rbf-track,
  .rbf-status {
    border-radius: 12px;
  }
}
