/* Customer account styles are isolated from the rest of the storefront. */
.hex-customer,
.hex-account-modal {
  --hex-accent: var(--cl-accent, #1e4fff);
  --hex-accent-rgb: var(--cl-accent-rgb, 30, 79, 255);
  --hex-panel: #0c101a;
  --hex-border: rgba(255, 255, 255, .09);
  --hex-muted: #98a1b4;
  color: #f3f5fa;
  font-family: var(--bs-font-sans-serif, 'Gabarito', sans-serif);
}
.hex-customer { max-width: 1320px; }
.hex-customer .py-5-nav { padding-top: 40px; padding-bottom: 56px; }
.hex-customer .row { --bs-gutter-x: 24px; }
.hex-customer .col-lg-9 { min-width: 0; }
.hex-account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.hex-account-eyebrow {
  display: block;
  color: var(--hex-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  margin-bottom: 8px;
}
.hex-account-heading h1 {
  margin: 0 0 7px;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.hex-account-heading p { color: var(--hex-muted); font-size: 14px; margin: 0; }
.hex-account-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid var(--hex-border);
  border-radius: 999px;
  color: #c3ccdf;
  text-decoration: none;
  font-size: 12px;
  transition: border-color .18s, color .18s;
}
.hex-account-store-link:hover { color: #fff; border-color: rgba(var(--hex-accent-rgb), .55); }
.hex-customer .card {
  background: linear-gradient(135deg, rgba(var(--hex-accent-rgb), .045), transparent 65%), var(--hex-panel);
  border: 1px solid var(--hex-border);
  border-radius: 18px;
  color: #f3f5fa;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  overflow: hidden;
}
.hex-customer .card.p-4 { padding: 24px !important; }
.hex-customer .card h4,
.hex-customer .card h5 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.hex-customer .card p { color: #aeb8cb; line-height: 1.7; }
.hex-customer .text-muted { color: var(--hex-muted) !important; }
.hex-customer .text-primary,
.hex-customer .text-accent-500 { color: var(--hex-accent) !important; }
.hex-customer hr { border-color: var(--hex-border); opacity: 1; margin: 20px 0; }
.hex-account-sidebar { position: sticky; top: 112px; }
.hex-account-sidebar .hex-sidebar-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.hex-sidebar-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: #86a2ff;
  background: rgba(var(--hex-accent-rgb), .12);
  border: 1px solid rgba(var(--hex-accent-rgb), .2);
  border-radius: 12px;
}
.hex-sidebar-title h5 { margin: 0; font-size: 15px !important; }
.hex-sidebar-title .hex-account-eyebrow { margin-bottom: 4px; font-size: 9px; }
.hex-sidebar-email { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--hex-muted); }
.hex-account-sidebar .nav { gap: 5px !important; }
.hex-account-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 13px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #aeb8cb;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background .18s, color .18s, border-color .18s;
}
.hex-account-sidebar .nav-link i { width: 16px; text-align: center; font-size: 14px; }
.hex-account-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.hex-account-sidebar .nav-link.active {
  color: #fff;
  background: rgba(var(--hex-accent-rgb), .14);
  border-color: rgba(var(--hex-accent-rgb), .32);
}
.hex-account-sidebar .nav-link.active i { color: #86a2ff; }
.hex-account-sidebar .nav-item:last-child { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--hex-border); }
.hex-account-sidebar button.nav-link { color: #f09b9b; }
.hex-account-stats .card { height: 100%; }
.hex-account-stats h4 { display: flex; flex-direction: column; gap: 14px; color: var(--hex-muted); font-size: 12px !important; font-weight: 500 !important; }
.hex-stat-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #86a2ff; background: rgba(var(--hex-accent-rgb), .1); }
.hex-account-stats .card p { color: #fff; font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; margin-top: 8px; }
.hex-account-modal .btn,
.hex-customer .btn { font-family: inherit; font-size: 13px; font-weight: 500; border-radius: 999px; padding: 10px 17px; line-height: 1.4; transition: background .18s, border-color .18s, box-shadow .18s; }
.hex-account-modal .btn-primary,
.hex-customer .btn-primary {
  background: var(--hex-accent);
  border: 1px solid var(--hex-accent);
  color: #fff;
  box-shadow: 0 3px 12px rgba(var(--hex-accent-rgb), .16);
}
.hex-account-modal .btn-primary:hover,
.hex-customer .btn-primary:hover { background: var(--hex-accent); border-color: #90a6ff; box-shadow: 0 4px 18px rgba(var(--hex-accent-rgb), .25); }
.hex-account-modal .btn-outline-primary,
.hex-customer .btn-outline-primary { color: #bbcaff; border-color: rgba(var(--hex-accent-rgb), .35); background: rgba(var(--hex-accent-rgb), .07); }
.hex-account-modal .btn-outline-primary:hover,
.hex-customer .btn-outline-primary:hover { color: #fff; background: rgba(var(--hex-accent-rgb), .18); }
.hex-account-modal .btn-link,
.hex-customer .btn-link { color: #b4c5ff; background: transparent; box-shadow: none; }
.hex-account-modal .btn:disabled,
.hex-customer .btn:disabled { opacity: .55; cursor: wait; }
.hex-account-modal .form-control,
.hex-account-modal .form-select,
.hex-customer .form-control,
.hex-customer .form-select {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 11px;
  background-color: #080c14;
  color: #f3f5fa;
  font: inherit;
  font-size: 14px;
  min-height: 46px;
  padding: 11px 13px;
}
.hex-account-modal .form-control:focus,
.hex-account-modal .form-select:focus,
.hex-customer .form-control:focus,
.hex-customer .form-select:focus { border-color: var(--hex-accent); background-color: #080c14; box-shadow: 0 0 0 3px rgba(var(--hex-accent-rgb), .13); }
.hex-account-modal .form-control::placeholder,
.hex-customer .form-control::placeholder { color: #677286; opacity: 1; }
.hex-account-modal .form-label,
.hex-customer .form-label { font-size: 12px; font-weight: 500; color: #dce2ef; }
.hex-customer .hex-account-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hex-customer .table { --bs-table-bg: transparent; --bs-table-color: #c6cddd; --bs-table-border-color: var(--hex-border); margin-bottom: 0; font-size: 13px; }
.hex-customer .table th { padding: 12px; font-size: 10px; font-weight: 500; letter-spacing: .075em; text-transform: uppercase; color: var(--hex-muted); white-space: nowrap; }
.hex-customer .table td { padding: 17px 12px; vertical-align: middle; min-width: 100px; }
.hex-customer .table tbody tr:last-child td { border-bottom: 0; }
.hex-customer .badge { padding: 6px 9px; border-radius: 7px; font-weight: 500; }
.hex-customer .ticket-messages-container { padding: 20px; }
.hex-customer .input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.hex-customer .input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
/* Override the old product-popup sizing rules for account modals only. */
.hex-account-modal,
.hex-account-modal.show { max-height: none !important; height: 100% !important; height: 100dvh !important; overflow-y: auto !important; padding: 16px !important; }
.hex-account-modal .modal-dialog,
.hex-account-modal.show .modal-dialog { width: min(440px, 100%) !important; max-width: 440px !important; margin: auto !important; max-height: none !important; overflow: visible !important; min-height: 0 !important; }
.hex-account-modal .modal-content,
.hex-account-modal.show .modal-content {
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 0 0, rgba(var(--hex-accent-rgb), .085), transparent 65%), var(--hex-panel);
  border: 1px solid rgba(var(--hex-accent-rgb), .25);
  border-radius: 20px;
  max-height: calc(100dvh - 32px) !important;
  overflow: hidden !important;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .6);
  color: #f3f5fa;
}
.hex-account-modal .modal-header { flex-shrink: 0; gap: 16px; align-items: flex-start; padding: 25px 25px 20px; border-bottom: 1px solid var(--hex-border); }
.hex-account-modal .modal-title { font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.hex-account-modal .btn-close { flex-shrink: 0; margin: 0 -3px 0 0; padding: 6px; opacity: .65; width: 13px; height: 13px; background-size: 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; }
.hex-account-modal .btn-close:hover { opacity: 1; }
.hex-account-modal .modal-body,
.hex-account-modal.show .modal-body { padding: 22px 25px 25px !important; max-height: none !important; min-height: 0 !important; overflow-y: auto !important; flex: 1 1 auto !important; overscroll-behavior: contain; }
.hex-login-brand { display: inline-flex; align-items: center; gap: 7px; color: #97adff; font-size: 10px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 13px; }
.hex-login-heading .modal-title { font-size: 26px; margin-bottom: 7px; }
.hex-login-heading p { font-size: 13px; color: var(--hex-muted); margin: 0; line-height: 1.55; }
.hex-account-modal .form-text { color: var(--hex-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.hex-account-modal .form-text.text-danger { color: #f69ba8 !important; }
.hex-account-modal .btn-primary { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; }
.hex-account-modal .btn-primary svg { width: 18px; height: 18px; }
.hex-account-modal .btn-link { padding: 9px; font-size: 12px; text-decoration: none !important; }
.hex-account-modal .hex-discord-login { background: #171c37; border-color: #363d6a; color: #dce0ff; min-height: 44px; }
.hex-account-modal .hex-discord-login:hover { background: #232b4e; border-color: #5865f2; }
.hex-account-modal hr { border-color: var(--hex-border); opacity: 1; }
.hex-account-modal .hex-otp-inputs { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px !important; }
.hex-account-modal .hex-otp-inputs input { width: 100%; min-width: 0; height: 50px; padding: 8px 0; font-size: 21px; font-weight: 500; }
.hex-change-email { padding: 0; margin: 13px 0 2px; border: 0; background: transparent; color: #b4c5ff; font: inherit; font-size: 12px; }
.hex-change-email:hover { color: #fff; }
.hex-account-modal .text-muted { color: var(--hex-muted) !important; }
.hex-account-modal .modal-body .row { row-gap: 12px; }
.hex-account-modal :is(a, button, input, select, textarea):focus-visible,
.hex-customer :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #90a6ff; outline-offset: 3px; }
@media (max-width: 991.98px) {
  .hex-customer .py-5-nav { padding-top: 24px; padding-bottom: 36px; }
  .hex-account-sidebar { position: static; }
  .hex-account-sidebar .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hex-account-sidebar .nav-link { height: 100%; }
  .hex-account-sidebar .nav-item:last-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .hex-account-sidebar hr { margin: 16px 0; }
}
@media (max-width: 575.98px) {
  .hex-customer { padding-left: 16px; padding-right: 16px; }
  .hex-customer .row { --bs-gutter-x: 16px; }
  .hex-customer .card.p-4 { padding: 20px !important; }
  .hex-account-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 22px; }
  .hex-account-heading p { font-size: 13px; }
  .hex-account-heading h1 { font-size: 27px; }
  .hex-account-stats { row-gap: 0; }
  .hex-account-stats .card.p-4 { padding: 18px 20px !important; }
  .hex-account-stats h4 { flex-direction: row; align-items: center; gap: 12px; }
  .hex-account-stats .card p { padding-left: 46px; font-size: 23px; margin-top: 0; }
  .hex-account-stats .mb-4 { margin-bottom: 14px !important; }
  .hex-account-modal .modal-header { padding: 22px 20px 18px; }
  .hex-account-modal .modal-body { padding: 20px !important; }
  .hex-account-modal .modal-title { font-size: 21px; }
  .hex-login-heading .modal-title { font-size: 25px; }
  .hex-account-modal .hex-otp-inputs { gap: 6px !important; }
  .hex-account-modal .hex-otp-inputs input { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .hex-account-modal.fade .modal-dialog,
  .hex-account-modal .btn,
  .hex-customer .btn,
  .hex-account-sidebar .nav-link { transition: none; }
}
