/* Relay Radio Store Build 0028 — My Account visual refinement.
 * Account area only. All navigation, forms, orders, payments, downloads and
 * WooCommerce data remain owned by WooCommerce and installed extensions.
 */
body.relay-store-theme.woocommerce-account {
  --relay-account-border: rgba(59, 129, 172, .31);
  --relay-account-frost: linear-gradient(150deg, #142439 0%, #101b2c 54%, #0c1626 100%);
  --relay-account-cyan: #45cdeb;
  --relay-account-purple: #ba82f6;
}

/* Main two-column shell. Never touch the parent theme's grid on other pages. */
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation,
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation ul {
  position: relative;
  padding: 12px !important;
  gap: 5px !important;
  border: 1px solid var(--relay-account-border) !important;
  border-radius: 17px !important;
  background: var(--relay-account-frost) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.19), inset 0 1px rgba(255,255,255,.035) !important;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation li a {
  min-height: 43px;
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding: 10px 12px !important;
  font-size: .86rem;
  letter-spacing: .004em;
  font-weight: 700 !important;
  line-height: 1.3;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  color: #b5c7d9 !important;
  box-shadow: none !important;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation li a::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  opacity: .84;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard > a::before {
  -webkit-mask-image: url('../icons/account/dashboard.svg');
  mask-image: url('../icons/account/dashboard.svg');
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation-link--orders > a::before {
  -webkit-mask-image: url('../icons/account/orders.svg');
  mask-image: url('../icons/account/orders.svg');
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads > a::before {
  -webkit-mask-image: url('../icons/account/downloads.svg');
  mask-image: url('../icons/account/downloads.svg');
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address > a::before {
  -webkit-mask-image: url('../icons/account/edit-address.svg');
  mask-image: url('../icons/account/edit-address.svg');
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods > a::before {
  -webkit-mask-image: url('../icons/account/payment-methods.svg');
  mask-image: url('../icons/account/payment-methods.svg');
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account > a::before {
  -webkit-mask-image: url('../icons/account/edit-account.svg');
  mask-image: url('../icons/account/edit-account.svg');
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation-link--wishlist > a::before {
  -webkit-mask-image: url('../icons/account/wishlist.svg');
  mask-image: url('../icons/account/wishlist.svg');
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout > a::before {
  -webkit-mask-image: url('../icons/account/customer-logout.svg');
  mask-image: url('../icons/account/customer-logout.svg');
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation li a:focus-visible {
  transform: none !important;
  color: #fff !important;
  background: rgba(23, 109, 155, .18) !important;
  border-color: rgba(40,196,230,.22) !important;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation li.is-active > a {
  color: #fff !important;
  border: 1px solid rgba(62, 194, 232, .43) !important;
  background: linear-gradient(100deg, rgba(11, 150, 202, .24), rgba(100,76,197,.19)) !important;
  box-shadow: inset 3px 0 #28c9ec, 0 5px 15px rgba(0,0,0,.12) !important;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation li.is-active > a::before { color: #62e0fc; opacity: 1; }
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(81,132,171,.18); }
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a { color: #9facc3 !important; }

/* Content container and a station-style section heading. */
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content {
  position: relative;
  padding: clamp(18px,2.2vw,28px) !important;
  border: 1px solid var(--relay-account-border) !important;
  border-radius: 17px !important;
  background: linear-gradient(156deg, rgba(20,32,51,.98), rgba(11,21,36,.98)) !important;
  box-shadow: 0 18px 38px rgba(0,0,0,.20), inset 0 1px rgba(255,255,255,.035) !important;
  overflow-wrap: anywhere;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content > :last-child { margin-bottom: 0; }
body.relay-store-theme.woocommerce-account .relay-account-welcome,
body.relay-store-theme.woocommerce-account .relay-account-section-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -4px 0 22px;
  padding: 20px 22px;
  border-radius: 15px;
  border: 1px solid rgba(45, 142, 198, .31);
  background: radial-gradient(ellipse at 95% 0, rgba(112,65,194,.17), transparent 57%), linear-gradient(125deg, rgba(12,55,78,.70), rgba(18,26,51,.86));
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
body.relay-store-theme.woocommerce-account .relay-account-welcome::before,
body.relay-store-theme.woocommerce-account .relay-account-section-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(#1bc4ed, #8463f4);
}
body.relay-store-theme.woocommerce-account .relay-account-kicker {
  display: block;
  margin: 0 0 6px;
  color: #76d7f0;
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.relay-store-theme.woocommerce-account :is(.relay-account-welcome,.relay-account-section-head) h2 {
  margin: 0 0 6px;
  color: #f4f8ff;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: -.025em;
}
body.relay-store-theme.woocommerce-account :is(.relay-account-welcome,.relay-account-section-head) p {
  margin: 0;
  color: #a9c3d9 !important;
  font-size: .86rem;
  line-height: 1.55;
}
body.relay-store-theme.woocommerce-account .relay-account-emblem {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45,188,230,.31);
  border-radius: 16px;
  background: linear-gradient(140deg,rgba(14,116,161,.22),rgba(103,71,185,.21));
  color: #76def9;
}
body.relay-store-theme.woocommerce-account .relay-account-emblem svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.relay-store-theme.woocommerce-account .relay-account-original-greeting,
body.relay-store-theme.woocommerce-account .relay-account-original-description { display: none !important; }

/* Existing Porto dashboard tiles: never recreate or change their links. */
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content .box-with-icon { margin-top: 10px !important; }
body.relay-store-theme.woocommerce-account .relay-account-tile-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-items: stretch;
  gap: 13px !important;
  margin: 0 !important;
}
body.relay-store-theme.woocommerce-account .relay-account-tile-grid > * {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: initial !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.relay-store-theme.woocommerce-account .relay-account-tile--logout { display: none !important; }
/* Wishlist closes the 5-card dashboard as a compact full-width final row. */
body.relay-store-theme.woocommerce-account .relay-account-tile--wishlist { grid-column: 1 / -1; }
body.relay-store-theme.woocommerce-account .relay-account-tile--wishlist .featured-box .box-content {
  min-height: 96px !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 15px;
  padding: 16px 22px !important;
}
body.relay-store-theme.woocommerce-account .relay-account-tile--wishlist .featured-box .icon-featured { margin: 0 !important; flex-shrink: 0; }
body.relay-store-theme.woocommerce-account .relay-account-tile--wishlist .relay-account-tile__hint { margin-left: auto; text-align: right; }

body.relay-store-theme.woocommerce-account .box-with-icon .featured-box,
body.relay-store-theme.woocommerce-account .relay-account-tile-grid .featured-box {
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(57,129,174,.29) !important;
  border-radius: 14px !important;
  background: linear-gradient(153deg, #152740, #101c31 70%, #0e182a) !important;
  box-shadow: 0 9px 23px rgba(0,0,0,.13), inset 0 1px rgba(255,255,255,.025) !important;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body.relay-store-theme.woocommerce-account .box-with-icon .featured-box::after,
body.relay-store-theme.woocommerce-account .relay-account-tile-grid .featured-box::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg,rgba(18,187,230,.75),rgba(151,89,225,.6));
  opacity: .65;
}
body.relay-store-theme.woocommerce-account .box-with-icon .featured-box:hover,
body.relay-store-theme.woocommerce-account .box-with-icon .featured-box:focus-within {
  transform: translateY(-2px) !important;
  border-color: rgba(38,195,232,.52) !important;
  background: linear-gradient(153deg,#1a2e4b,#122037) !important;
  box-shadow: 0 15px 28px rgba(0,0,0,.2) !important;
}
body.relay-store-theme.woocommerce-account .box-with-icon .featured-box a,
body.relay-store-theme.woocommerce-account .relay-account-tile-grid .featured-box a {
  display: block;
  height: 100%;
  color: inherit !important;
  text-decoration: none !important;
}
body.relay-store-theme.woocommerce-account .box-with-icon .featured-box .box-content,
body.relay-store-theme.woocommerce-account .relay-account-tile-grid .featured-box .box-content {
  min-height: 144px !important;
  height: 100%;
  padding: 20px 16px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 7px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.relay-store-theme.woocommerce-account .box-with-icon .featured-box .icon-featured,
body.relay-store-theme.woocommerce-account .relay-account-tile-grid .featured-box .icon-featured {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 46px;
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  margin: 0 0 3px !important;
  border: 1px solid rgba(44,180,232,.28);
  border-radius: 13px;
  background: linear-gradient(135deg,rgba(8,115,175,.20),rgba(111,71,195,.20));
  color: #7ee1f9 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: none !important;
}
body.relay-store-theme.woocommerce-account .box-with-icon .featured-box :is(h4,h3),
body.relay-store-theme.woocommerce-account .relay-account-tile-grid .featured-box :is(h4,h3) {
  margin: 0 !important;
  color: #f4f7ff !important;
  font-size: .83rem !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
  letter-spacing: .025em !important;
  text-align: center;
  text-transform: uppercase;
}
body.relay-store-theme.woocommerce-account .relay-account-tile__hint {
  display: block;
  margin: 1px 0 0;
  color: #99aec6;
  font-size: .74rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

/* Endpoint pages: headings, forms, actual Woo tables/addresses/payment rows. */
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(h2,h3,legend) {
  color: #f4f8ff;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-Addresses, .woocommerce-address-fields, .woocommerce-account-fields) { min-width: 0; }
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-Address, .woocommerce-customer-details address, .woocommerce-order-details) {
  border: 1px solid rgba(54,128,170,.32) !important;
  border-radius: 13px !important;
  background: linear-gradient(155deg,rgba(17,31,49,.95),rgba(12,23,38,.95)) !important;
  padding: 18px !important;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(72,130,170,.24);
  margin: 0 0 14px;
  padding-bottom: 12px;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title h3 { margin: 0; }
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address-title .edit {
  display: inline-block;
  padding: 6px 11px;
  border: 1px solid rgba(40,183,229,.35);
  border-radius: 9px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(27,102,146,.16);
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-details, .woocommerce-PaymentMethods, .shop_table) {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(58,127,169,.31) !important;
  border-radius: 12px !important;
  background: rgba(11,22,38,.55) !important;
  overflow: hidden;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-details, .woocommerce-PaymentMethods, .shop_table) th {
  background: rgba(18,56,82,.55) !important;
  color: #d8effa !important;
  font-size: .77rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: .035em;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-details, .woocommerce-PaymentMethods, .shop_table) th,
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-details, .woocommerce-PaymentMethods, .shop_table) td {
  border-color: rgba(60,115,154,.21) !important;
  padding: 13px !important;
  vertical-align: middle;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table, .woocommerce-table--order-details, .woocommerce-PaymentMethods, .shop_table) tbody tr:hover {
  background: rgba(28,85,123,.12);
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status { font-weight: 750; }
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(input.input-text, input[type="text"],input[type="email"],input[type="password"],input[type="tel"],select,textarea) {
  max-width: 100%;
  min-height: 42px;
  color: #edf6ff;
  background: rgba(6,16,30,.76) !important;
  border: 1px solid rgba(75,130,173,.35) !important;
  border-radius: 10px !important;
  box-shadow: none;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(input,textarea,select):focus-visible {
  outline: 2px solid rgba(28,192,238,.67);
  outline-offset: 2px;
  border-color: #42bfe9 !important;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content label { color: #c8d6e9; font-weight: 700; }
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(.button,button.button,input.button,.woocommerce-button) {
  border-radius: 10px !important;
  border: 1px solid rgba(41,180,225,.38) !important;
  background: linear-gradient(125deg,rgba(24,128,192,.85),rgba(98,72,194,.85)) !important;
  color: #fff !important;
  font-weight: 800;
  text-transform: none;
  box-shadow: 0 7px 16px rgba(0,0,0,.14);
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(.button,button.button,input.button,.woocommerce-button):hover {
  filter: brightness(1.1);
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content fieldset {
  margin: 18px 0;
  border: 1px solid rgba(55,126,170,.30) !important;
  border-radius: 12px;
  padding: 16px 18px;
}
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm > .form-row:last-child { margin-bottom: 0; }
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper .woocommerce-message,
body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info { border-radius: 10px; }

/* Mobile / tablet: readable cards and accessible, stacked account controls. */
@media (max-width: 991px) {
  body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation,
  body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: 100% !important; max-width: 100% !important; }
  body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation { margin-bottom: 17px; }
  body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation li { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
  body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation li a { white-space: nowrap; }
  body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 0; padding-top: 0; border-top: 0; padding-left: 7px !important; border-left: 1px solid rgba(81,132,171,.25); }
  body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-navigation li a { min-height: 42px; padding: 8px 11px !important; }
}
@media (max-width: 600px) {
  body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content { padding: 16px !important; }
  body.relay-store-theme.woocommerce-account :is(.relay-account-welcome,.relay-account-section-head) { padding: 17px 18px; }
  body.relay-store-theme.woocommerce-account .relay-account-emblem { width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; }
  body.relay-store-theme.woocommerce-account .relay-account-tile-grid { gap: 10px !important; }
  body.relay-store-theme.woocommerce-account .box-with-icon .featured-box .box-content,
  body.relay-store-theme.woocommerce-account .relay-account-tile-grid .featured-box .box-content { min-height: 136px !important; padding: 15px 10px !important; }
  body.relay-store-theme.woocommerce-account .box-with-icon .featured-box .icon-featured { width: 42px !important; height: 42px !important; flex-basis: 42px; font-size: 25px !important; }
  body.relay-store-theme.woocommerce-account .relay-account-tile__hint { font-size: .68rem; }
  body.relay-store-theme.woocommerce-account .woocommerce-MyAccount-content :is(.woocommerce-orders-table,.shop_table) { font-size: .85rem; }
}
@media (max-width: 370px) {
  body.relay-store-theme.woocommerce-account .relay-account-tile-grid { grid-template-columns: minmax(0,1fr); }
  body.relay-store-theme.woocommerce-account .relay-account-tile--wishlist { grid-column: auto; }
  body.relay-store-theme.woocommerce-account .relay-account-tile--wishlist .featured-box .box-content { flex-direction: column !important; min-height: 136px !important; }
  body.relay-store-theme.woocommerce-account .relay-account-tile--wishlist .relay-account-tile__hint { margin: 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  body.relay-store-theme.woocommerce-account .box-with-icon .featured-box { transition: none; }
}

/* Keep the final Wishlist shortcut intentionally compact rather than
   leaving a half-empty sixth dashboard tile. Put after Porto overrides. */
@media (min-width: 371px) {
  body.relay-store-theme.woocommerce-account .relay-account-tile-grid .relay-account-tile--wishlist .featured-box .box-content {
    min-height: 88px !important;
    height: auto !important;
    padding: 15px 20px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 17px !important;
  }
  body.relay-store-theme.woocommerce-account .relay-account-tile-grid .relay-account-tile--wishlist .featured-box .icon-featured {
    margin: 0 !important;
  }
  body.relay-store-theme.woocommerce-account .relay-account-tile-grid .relay-account-tile--wishlist .relay-account-tile__hint {
    margin: 0 !important;
    text-align: left;
  }
}
@media (min-width: 371px) {
  body.relay-store-theme.woocommerce-account .relay-account-tile-grid > .relay-account-tile--wishlist { align-self: start; }
  body.relay-store-theme.woocommerce-account .relay-account-tile-grid .relay-account-tile--wishlist .porto-content-box,
  body.relay-store-theme.woocommerce-account .relay-account-tile-grid .relay-account-tile--wishlist .featured-box {
    height: auto !important;
    min-height: 0 !important;
  }
}
