/* Shared game appearance for EasyStore's native login and auth widgets.
   Native forms, radio tabs, verification and provider handlers keep ownership. */
body.yb-game-theme:has(.customer:is(.login, .yb-account-auth)) {
  background: #091725;
  color: #edf7fc;
}
body.yb-game-theme:has(.customer:is(.login, .yb-account-auth)) #MainContent {
  padding-block: clamp(30px, 5vw, 64px);
  min-height: 620px;
  background: radial-gradient(ellipse at 85% 20%, #27476170, transparent 52%),
    radial-gradient(ellipse at 12% 85%, #4a35523d, transparent 48%), #091725;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) {
  --yb-login-ink: #edf7fc;
  --yb-login-muted: #b6c8d9;
  --yb-login-cyan: #9edbec;
  --yb-login-gold: #ffe16a;
  --yb-login-purple: #d1b9ff;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 640px;
  overflow-anchor: none;
  width: min(calc(100% - 32px), 1040px);
  max-width: none;
  margin: 20px auto 36px;
  padding: 32px;
  color: var(--yb-login-ink);
  text-align: left;
  font-family: "Microsoft JhengHei UI", "Microsoft JhengHei", system-ui, sans-serif;
}
.yb-game-theme .customer:is(.login, .yb-account-auth),
.yb-game-theme .customer:is(.login, .yb-account-auth) * { box-sizing: border-box; }
.yb-game-theme .customer:is(.login, .yb-account-auth):not(.yb-account-challenge) > .card::before {
  content: "登入";
}
.yb-game-theme .customer:is(.login, .yb-account-auth) > .card::before,
.yb-game-theme .customer.yb-account-challenge > .yb-challenge-caption {
  position: absolute;
  top: -14px;
  left: 18px;
  z-index: 2;
  width: auto;
  min-width: 102px;
  height: auto;
  text-align: center;
  padding: 8px 25px 8px 14px;
  background: linear-gradient(115deg, #f1fcff, #b7dbea);
  border-bottom: 3px solid var(--yb-login-gold);
  clip-path: polygon(8px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 0 8px);
  color: #173f58;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: .6px;
  pointer-events: none;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) > .card::after,
.yb-game-theme .customer.yb-account-auth.yb-account-challenge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 16px solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M15 .5H85L99.5 15V85L85 99.5H15L.5 85V15Z' fill='none' stroke='%239edbec'/%3E%3Cpath d='M17 6.5H83L93.5 17V83L83 93.5H17L6.5 83V17Z' fill='none' stroke='%239edbec' stroke-opacity='.4'/%3E%3C/svg%3E") 16 / 16px / 0 stretch;
  clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
  pointer-events: none;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) > .card::after {
  background: linear-gradient(145deg, #1a2e45f5, #111e35f5 60%, #141b32f5);
}
.yb-game-theme .customer:is(.login, .yb-account-auth) > .card {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 38px 28px 25px;
  margin: 0;
  width: 100%;
  max-width: 430px;
  justify-self: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) h1 {
  margin: 0;
  color: var(--yb-login-ink);
  font-size: 30px;
  line-height: 1.4;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) h1[tabindex="-1"]:focus { outline: none; }
.yb-game-theme .customer:is(.login, .yb-account-auth) h1 + p {
  margin: 8px 0 22px;
  color: var(--yb-login-muted);
  font-size: 14px;
  line-height: 1.7;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) :is(h2, h3, strong) { color: var(--yb-login-ink); }
.yb-game-theme .customer:is(.login, .yb-account-auth) form {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .tab-wrapper {
  display: flex;
  gap: 8px;
  margin: 0 0 21px;
  padding: 0 0 20px;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px dashed #9edbec60;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .tab-wrapper > div { flex: 1 1 0; min-width: 0; }
.yb-game-theme .customer:is(.login, .yb-account-auth) .tab-wrapper .tab-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #60869d;
  border-radius: 0;
  background: #0c2031;
  color: var(--yb-login-muted);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .tab-wrapper input[type="radio"]:checked + .tab-label {
  color: #173f58;
  background: #b7dbea;
  border-color: #b7dbea;
  box-shadow: inset 0 -3px 0 var(--yb-login-gold);
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .field {
  display: flex;
  flex-direction: column-reverse;
  gap: 7px;
  margin: 0 0 16px;
  padding: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .field::before,
.yb-game-theme .customer:is(.login, .yb-account-auth) .field::after { content: none; }
.yb-game-theme .customer:is(.login, .yb-account-auth) .field label {
  position: static;
  display: block;
  margin: 0;
  padding: 0;
  transform: none;
  color: var(--yb-login-ink);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .field input:not([type="hidden"], [type="checkbox"], [type="radio"]),
.yb-game-theme .customer:is(.login, .yb-account-auth) .field select,
.yb-game-theme .customer:is(.login, .yb-account-auth) input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="submit"], [type="button"]) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid #60869d;
  border-radius: 2px;
  background: #091725;
  color: var(--yb-login-ink);
  caret-color: var(--yb-login-ink);
  font: 400 16px/1.4 "Microsoft JhengHei UI", system-ui, sans-serif;
  box-shadow: inset 0 2px 6px #00000020;
}
/* Native six-digit verification inputs are outside .field on the OTP step. */
.yb-game-theme .customer:is(.login, .yb-account-auth) input[maxlength="1"] {
  flex: 1 1 0;
  width: calc((100% - 50px) / 6);
  max-width: 64px;
  min-height: 56px;
  padding: 10px 0;
  border: 2px solid #9edbec;
  border-radius: 6px;
  background: #edf7fc;
  color: #123449;
  caret-color: #123449;
  font-size: 25px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 2px 0 #244d65;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) form input::placeholder { color: var(--yb-login-muted); opacity: 1; }
.yb-game-theme .customer:is(.login, .yb-account-auth) :is(input, select, button, a):focus-visible,
.yb-game-theme .customer:is(.login, .yb-account-auth) .tab-wrapper input:focus-visible + label {
  outline: 3px solid var(--yb-login-gold);
  outline-offset: 3px;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) form > button,
.yb-game-theme .customer:is(.login, .yb-account-auth) form > .btn,
.yb-game-theme .customer.yb-account-auth:not(.yb-account-challenge) form :is(button, input[type="submit"]),
.yb-game-theme .customer.yb-account-challenge :is(button[type="submit"], input[type="submit"]) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin: 5px 0 16px;
  padding: 12px 15px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(110deg, #f3d960, #ffe99c);
  color: #183449;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 #a48534;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.yb-game-theme .customer:is(.login, .yb-account-auth) form > :is(button, .btn)::before,
.yb-game-theme .customer:is(.login, .yb-account-auth) form > :is(button, .btn)::after { box-shadow: none; }
.yb-game-theme .customer:is(.login, .yb-account-auth) .button-snippet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; background: transparent; }
.yb-game-theme .customer:is(.login, .yb-account-auth) .button-snippet :is(button, a) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  border-radius: 2px;
  box-shadow: none;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .button-snippet :is(#line-login-btn, #apple-login-btn) :is(.line-login-text, .apple-login-text) {
  width: auto;
  flex: 1 1 auto;
  padding: 10px 5px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .button-snippet :is(#line-login-btn, #apple-login-btn) svg { width: 28px; height: 28px; padding: 3px; flex: 0 0 28px; }
.yb-game-theme .customer:is(.login, .yb-account-auth) a { color: #e2f5ff; font-weight: 700; text-underline-offset: 3px; }
.yb-game-theme .customer:is(.login, .yb-account-auth) :is(#register-tos, #login-tos, .auth-consent) {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #9edbec33;
  color: var(--yb-login-muted);
  font-size: 12px;
  line-height: 1.85;
  text-align: left;
  overflow-wrap: anywhere;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) :is(#register-tos, #login-tos, .auth-consent) a {
  display: inline;
  width: auto;
  margin: 0;
  color: var(--yb-login-purple);
}
.yb-game-theme .customer:is(.login, .yb-account-auth) :is(.errors, .form__message) {
  color: #ffd6da;
  background: #572e3c;
  border: 1px solid #e8a4b3;
  padding: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .form-success { color: #daf6e6; background: #214b40; border-color: #89c4aa; }
.yb-game-theme .customer:is(.login, .yb-account-auth) .profile-img {
  width: 96px;
  height: 96px;
  max-width: 96px;
  max-height: 96px;
  min-width: 96px;
  min-height: 96px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 96px;
  margin-inline: auto;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .profile-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: inherit;
}
@media (max-width: 560px) {
  .yb-game-theme .customer:is(.login, .yb-account-auth) { width: calc(100% - 28px); margin-block: 18px 30px; padding: 26px 12px; }
  .yb-game-theme .customer:is(.login, .yb-account-auth) > .card { padding: 35px 18px 20px; }
  .yb-game-theme .customer:is(.login, .yb-account-auth) > .card::before,
  .yb-game-theme .customer.yb-account-challenge > .yb-challenge-caption { left: 14px; padding-right: 20px; font-size: 12px; }
  .yb-game-theme .customer:is(.login, .yb-account-auth) h1 { font-size: 27px; }
  .yb-game-theme .customer:is(.login, .yb-account-auth) h1 + p { font-size: 13px; }
  .yb-game-theme .customer:is(.login, .yb-account-auth) .tab-wrapper .tab-label { font-size: 14px; }
  .yb-game-theme .customer:is(.login, .yb-account-auth) .button-snippet :is(#line-login-btn, #apple-login-btn) :is(.line-login-text, .apple-login-text) { padding-inline: 2px 5px; font-size: 11px; }
}

/* START is a real button; the original account panel stays intact underneath. */
.yb-game-theme .customer:is(.login, .yb-account-auth) > .card[hidden],
.yb-game-theme .customer:is(.login, .yb-account-auth) .yb-login-intro[hidden] { display: none; }
.yb-game-theme .customer:is(.login, .yb-account-auth) .yb-login-intro {
  display: grid;
  justify-items: center;
  gap: 34px;
  padding: 24px 12px;
  text-align: center;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .yb-login-character {
  display: block;
  width: min(100%, 340px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transform-origin: 50% 55%;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .yb-login-start {
  display: block;
  width: min(100%, 220px);
  min-height: 56px;
  margin: 0;
  padding: 13px 25px;
  border: 1px solid #ffeaa0;
  border-radius: 0;
  background: linear-gradient(110deg, #f3d960, #ffe99c);
  color: #183449;
  font: 900 22px/1.35 "Microsoft JhengHei UI", system-ui, sans-serif;
  letter-spacing: 4px;
  box-shadow: inset 0 -3px 0 #a48534;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) .yb-login-start::before,
.yb-game-theme .customer:is(.login, .yb-account-auth) .yb-login-start::after { content: none; }
.yb-game-theme .customer:is(.login, .yb-account-auth) .yb-login-start:hover { background: #fff0ad; }
@media (prefers-reduced-motion: no-preference) {
  .yb-game-theme .customer:is(.login, .yb-account-auth) .yb-login-character { animation: yb-login-breathe 4.8s ease-in-out infinite; }
  .yb-game-theme .customer:is(.login, .yb-account-auth)[data-yb-login-state="open"] > .card {
    --yb-enter-from: 60px 0;
    animation: yb-game-enter .3s ease backwards;
  }

}
@keyframes yb-login-breathe {
  0%, 100% { scale: 1; }
  50% { scale: 1.025; }
}
@media (prefers-reduced-motion: reduce) {
  .yb-game-theme .customer:is(.login, .yb-account-auth) :is(.yb-login-character, .yb-login-start, .card) { animation: none; }
}
@media (max-height: 540px) {
  .yb-game-theme .customer:is(.login, .yb-account-auth) .yb-login-intro { gap: 20px; padding-block: 12px; }
  .yb-game-theme .customer:is(.login, .yb-account-auth) .yb-login-character { width: min(100%, 54svh, 260px); }
}

.yb-game-theme .customer:is(.login, .yb-account-auth)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(105deg, #081528bd, #0d193d80 50%, #10182ce8),
    url("https://assets.yuyibuygame.com/yuyibuygame-theme/2026-10-13-pages/background/scene-1280-861b7aedcfa7c2f6.webp") center / cover;
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
  pointer-events: none;
}
.yb-game-theme .customer:is(.login, .yb-account-auth)::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border-block: 1px solid #a6daeb75;
  background: linear-gradient(#ffe16a, #ffe16a) left top / 40px 3px no-repeat,
    linear-gradient(#ffe16a, #ffe16a) right bottom / 40px 3px no-repeat;
  pointer-events: none;
}
.yb-game-theme .customer:is(.login, .yb-account-auth)[data-yb-login-state="open"] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: 24px;
}
.yb-game-theme .customer:is(.login, .yb-account-auth)[data-yb-login-image="failed"][data-yb-login-state="open"] { grid-template-columns: minmax(0, 1fr); }
.yb-game-theme .customer:is(.login, .yb-account-auth)[data-yb-login-state="open"] .yb-login-intro { padding: 24px 0; }
.yb-game-theme .customer:is(.login, .yb-account-auth)[data-yb-login-state="open"] .yb-login-character { width: min(100%, 350px); }
.yb-game-theme .customer:is(.login, .yb-account-auth)[data-yb-login-state="open"] .yb-login-start[hidden] { display: none; }
.yb-game-theme .customer:is(.login, .yb-account-auth):has(#tab-register:checked) > .card::before { content: "註冊"; }
.yb-game-theme .customer:is(.login, .yb-account-auth) .button-snippet :is(#line-login-btn, #apple-login-btn) { margin-block: 0 8px; }
@media (prefers-reduced-motion: no-preference) {
  .yb-game-theme .customer:is(.login, .yb-account-auth)[data-yb-login-state="open"] .yb-login-intro {
    --yb-enter-from: -60px 0;
    animation: yb-game-enter .3s ease backwards;
  }
}
@media (max-width: 760px) {
  .yb-game-theme .customer:is(.login, .yb-account-auth)[data-yb-login-state="open"] { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .yb-game-theme .customer:is(.login, .yb-account-auth)[data-yb-login-state="open"] .yb-login-intro { padding: 0; }
  .yb-game-theme .customer:is(.login, .yb-account-auth)[data-yb-login-state="open"] .yb-login-character { width: 108px; }
  .yb-game-theme .customer:is(.login, .yb-account-auth)[data-yb-login-state="open"] > .card { --yb-enter-from: 0 60px; }
}

/* Native password and recovery steps open directly, with no extra START. */
.yb-game-theme .customer.yb-account-auth[data-yb-login-mode="recover"] > .card::before { content: "重設密碼"; }
.yb-game-theme .customer.yb-account-auth[data-yb-login-mode="setup"] > .card::before { content: "完成註冊"; }
.yb-game-theme .customer.yb-account-auth[data-yb-login-mode="verify"] > .card::before { content: "輸入驗證碼"; }
.yb-game-theme .customer.yb-account-auth > .card { text-align: center; }
.yb-game-theme .customer.yb-account-auth h1 { margin-bottom: 12px; }
.yb-game-theme .customer.yb-account-auth #recover { font-size: 30px; }
.yb-game-theme .customer.yb-account-auth :is(#recover, #login) { scroll-margin-top: 100px; }
.yb-game-theme .customer.yb-account-auth #recover:target { display: block; }
.yb-game-theme .customer.yb-account-auth p { color: var(--yb-login-muted); font-size: 14px; line-height: 1.7; }
.yb-game-theme .customer.yb-account-auth form { margin-top: 18px; }
.yb-game-theme .customer.yb-account-auth form input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="submit"], [type="button"]) { margin-bottom: 12px; }
.yb-game-theme .customer.yb-account-auth .field input { margin-bottom: 0; }
.yb-game-theme .customer.yb-account-auth .field { text-align: left; }
.yb-game-theme .customer.yb-account-auth .profile-img { margin-bottom: 16px; }
.yb-game-theme .customer.yb-account-auth:not(.yb-account-challenge) form:not(:has(input:not([type="hidden"], [type="submit"], [type="button"]))) :is(button, input[type="submit"]),
.yb-game-theme .customer.yb-account-auth > .card :is(a.button, a.btn) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #80b9ce;
  border-radius: 2px;
  background: #0c2031;
  color: var(--yb-login-ink);
  box-shadow: none;
  clip-path: none;
  font-size: 14px;
}
.yb-game-theme .customer:is(.login, .yb-account-auth) :is(a[href="#recover"], a[href="#login"], a[href="/account/login"], a[href^="/account/login?"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-block: 6px;
  padding: 8px 14px;
  border: 1px solid #8dc8df;
  border-radius: 2px;
  background: #102f43;
  color: #f2fbff;
  font-size: 15px;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .yb-game-theme .customer.yb-account-auth #recover { font-size: 27px; }
}

/* Challenge decorates its existing container; never wrap or scale a captcha iframe. */
.yb-game-theme .customer.yb-account-challenge {
  display: block;
  width: min(calc(100% - 24px), 720px);
  min-height: 0;
  padding: 40px 28px;
  text-align: center;
}
.yb-game-theme .customer.yb-account-challenge > .card {
  max-width: none;
  padding: 30px 0 0;
}
.yb-game-theme .customer.yb-account-challenge > .card::after { content: none; }
.yb-game-theme .customer.yb-account-challenge .g-recaptcha {
  display: grid;
  justify-content: center;
  margin: 24px auto;
}
.yb-game-theme .customer.yb-account-challenge :is(button[type="submit"], input[type="submit"]) {
  max-width: 360px;
  margin: 24px auto 0;
}
@media (max-width: 560px) {
  .yb-game-theme .customer.yb-account-challenge { padding: 30px 12px; }
}
@media (max-width: 380px) {
  .yb-game-theme .customer.yb-account-challenge { width: 100%; padding-inline: 0; }
  .yb-game-theme .customer.yb-account-challenge :is(h1, p) { padding-inline: 12px; }
  .yb-game-theme .customer.yb-account-challenge :is(button[type="submit"], input[type="submit"]) { width: calc(100% - 24px); }
}

.grecaptcha-badge {
  opacity: 0.01 !important;
  transform: scale(0.01) !important;
  transform-origin: bottom right !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.customer:not(.account, .order) {
  margin: 6rem auto 9rem;
  max-width: 33.4rem;
  padding: 0 1.5rem;
  text-align: center;
}

@media screen and (min-width: 750px) {
  .customer:not(.account, .order) {
    max-width: 47.8rem;
  }
}

.customer form {
  margin-top: 4rem;
}

.customer button {
  margin: 1.5rem 0;
}

.customer ul {
  line-height: 1.6;
  padding-left: 3rem;
  text-align: left;
}

.customer ul a {
  display: inline;
}

.customer strong {
  font-weight: normal;
  color: rgb(var(--color-foreground));
}

.customer h2.form__message {
  font-size: 1.8rem;
}

@media only screen and (min-width: 750px) {
  .customer h2.form__message {
    font-size: 2.2rem;
  }
}

.customer .field {
  margin: 1rem 0 0 0;
}

.customer .field:first-of-type {
  margin-top: 0;
}

.customer form .grid.grid--2-col {
  margin-left: -1rem;
}

.customer form .grid--2-col .grid__item {
  padding-left: 1rem;
  width: calc(50% - 1rem / 2);
}

/* Customer Table */
.customer table {
  table-layout: auto;
  border-collapse: collapse;
  border-bottom: 0.01rem solid rgba(var(--color-foreground), 0.08);
  box-shadow: none;
  width: 100%;
  font-size: 1.6rem;
  position: relative;
}

@media screen and (min-width: 750px) {
  .customer table {
    border: none;
    box-shadow: 0 0 0 0.1rem rgba(var(--color-foreground), 0.08);
  }
}

.customer tbody {
  color: rgb(var(--color-foreground));
}

.customer th,
.customer td {
  font-weight: 400;
  line-height: 1;
  border: none;
  padding: 0;
}

@media screen and (min-width: 750px) {
  .customer td {
    padding-right: 2.2rem;
  }
}

.customer tbody td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.customer td:empty {
  display: initial;
}

.customer thead th {
  font-size: 1.2rem;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
}

.customer tbody td:first-of-type {
  padding-top: 4rem;
}

@media screen and (min-width: 750px) {
  .customer th,
  .customer td:first-of-type {
    text-align: left;
    padding-left: 0;
    padding-right: 2.2rem;
  }

  .customer thead th,
  .customer tbody td {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
  }

  .customer th:first-of-type,
  .customer td:first-of-type {
    padding-left: 2.2rem;
  }

  .customer tbody td {
    vertical-align: top;
  }

  .customer tbody td:first-of-type {
    padding-top: 2.4rem;
  }
}

.customer tbody td:last-of-type {
  padding-bottom: 4rem;
}

@media screen and (min-width: 750px) {
  .customer tbody td:last-of-type {
    padding-bottom: 0;
  }
}

.customer tbody tr {
  border-top: 0.01rem solid rgba(var(--color-foreground), 0.08);
}

@media screen and (min-width: 750px) {
  .customer tbody tr:first-of-type {
    border-top: none;
  }
}

.customer tfoot td:first-of-type,
.customer tfoot td {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.customer tfoot td:first-of-type {
  text-align: left;
}

.customer tfoot tr:first-of-type td {
  padding-top: 4rem;
}

@media screen and (min-width: 750px) {
  .customer tfoot tr:first-of-type td,
  .customer tfoot tr:first-of-type th {
    padding-top: 2.4rem;
  }
}

.customer tfoot tr:last-of-type td {
  padding-bottom: 4rem;
}

@media screen and (min-width: 750px) {
  .customer tfoot tr:last-of-type td,
  .customer tfoot tr:last-of-type th {
    padding-bottom: 2.4rem;
  }
}

/* works around colspan phantom border issues */
.customer thead::after,
.customer tfoot::before {
  content: ' ';
  height: 0.1rem;
  width: 100%;
  display: block;
  position: absolute;
  left: 0;
  background: rgba(var(--color-foreground), 0.08);
}

/* mobile table overrides */
@media screen and (max-width: 749px) {
  .customer thead,
  .customer th,
  .customer tfoot td:first-of-type {
    display: none;
  }

  .customer td {
    display: flex;
    text-align: right;
  }

  .customer td::before {
    color: rgba(var(--color-foreground), 0.75);
    content: attr(data-label);
    font-size: 1.4rem;
    padding-right: 2rem;
    text-transform: uppercase;
    flex-grow: 1;
    text-align: left;
  }

  .customer td:first-of-type {
    display: flex;
    align-items: center;
  }

  .customer tr {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
  }
}

/* Pagination */
.customer .pagination {
  margin-top: 5rem;
  margin-bottom: 7rem;
}

@media screen and (min-width: 990px) {
  .customer .pagination {
    margin-top: 7rem;
    margin-bottom: 10rem;
  }
}

.customer .pagination ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.customer .pagination li {
  flex: 1 1;
  max-width: 4rem;
}

.customer .pagination li:not(:last-child) {
  margin-right: 1rem;
}

.customer .pagination li :first-child {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 4rem;
  width: 100%;
  padding: 0;
  text-decoration: none;
}

.customer .pagination li :first-child svg {
  height: 0.6rem;
}

.customer .pagination li:first-of-type svg {
  margin-left: -0.2rem;
  transform: rotate(90deg);
}

.customer .pagination li:last-of-type svg {
  margin-right: -0.2rem;
  transform: rotate(-90deg);
}

.customer .pagination li [aria-current]::after {
  content: '';
  display: block;
  width: 2rem;
  height: 0.01rem;
  position: absolute;
  bottom: 0.08rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: currentColor;
}

/* Login */
.login a {
  display: block;
  margin: 0 auto;
  width: fit-content;
}

.login .field + a {
  margin-top: 1rem;
}

.login p {
  margin: 1.5rem 0;
}

.login h3 {
  margin-top: 1.5rem;
  text-align: left;
  font-size: 1.6rem;
}

#customer_login_guest button {
  margin-top: 0;
}

#recover,
#recover + div {
  display: none;
}

#recover:target {
  display: inline;
}

#recover:target + div {
  display: block;
}

#recover:target ~ #login,
#recover:target ~ #login + div {
  display: none;
}

.activate button[name='decline'],
.addresses li > button,
.addresses form button[type] {
  background-color: transparent;
  box-shadow: 0 0 0 0.1rem rgb(var(--color-link));
  color: rgb(var(--color-link));
}

.activate button[name='decline']:hover,
.addresses li > button:hover,
.addresses form button[type]:hover {
  box-shadow: 0 0 0 0.2rem rgb(var(--color-link));
}

@media only screen and (min-width: 750px) {
  .activate button[name='decline'] {
    margin-top: inherit;
    margin-left: 1rem;
  }
}

/* Account/Order */
:is(.account, .order) {
  margin: 6rem auto 9rem;
  max-width: var(--page-width);
  padding: 0 2rem;
}

@media screen and (min-width: 750px) {
  :is(.account, .order) {
    padding: 0 5rem;
  }
}

@media screen and (min-width: 990px) {
  :is(.account, .order) > div:nth-of-type(2) {
    display: flex;
    margin-top: 5rem;
  }
}

@media screen and (min-width: 990px) {
  :is(.account, .order) > div:nth-of-type(2) > div:first-of-type {
    flex-grow: 1;
    padding-right: 3.2rem;
  }
  :is(.account, .order) > div:nth-of-type(2) > div:first-of-type + div {
    min-width: 300px;
  }
}

@media screen and (min-width: 750px) and (max-width: 989px) {
  .order > div:nth-of-type(2) > div:last-of-type {
    display: flex;
  }

  .order > div:nth-of-type(2) > div:last-of-type div {
    padding-right: 3.2rem;
  }
}

:is(.account, .order) p {
  margin: 0 0 2rem;
  font-size: 1.6rem;
}

:is(.account, .order) h1 {
  margin-bottom: 1rem;
}

:is(.account, .order) h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

@media screen and (min-width: 990px) {
  :is(.account, .order) h2:first-child{
    margin-top: 0;
  }
}

.account h1 + a {
  display: inline-flex;
  align-items: center;
}

.account a svg {
  width: 1.5rem;
  margin-bottom: -0.03rem;
  margin-right: 1rem;
  fill: currentColor;
  color: currentColor;
}

.account a svg.icon-tabler-qrcode {
  fill: none;
}

@media screen and (min-width: 750px) {
  .account thead th:last-child,
  .account td:last-child {
    text-align: right;
  }

  .account table td:first-of-type {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }
}

.account table td:first-of-type a {
  padding: 1.1rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 0 0 0.1rem rgba(var(--color-link), 0.2);
  font-size: 1.2rem;
}

.account table td:first-of-type a:hover {
  box-shadow: 0 0 0 0.2rem rgba(var(--color-link), 0.2);
}

.order td:first-of-type {
  align-items: initial;
}

@media screen and (min-width: 750px) {
  .order thead th:nth-last-child(-n + 3),
  .order td:nth-last-child(-n + 3) {
    text-align: right;
  }
}

.order tfoot tr:last-of-type td,
.order tfoot tr:last-of-type th {
  font-size: 2.2rem;
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

@media screen and (min-width: 750px) {
  .order tfoot tr:last-of-type td,
  .order tfoot tr:last-of-type th {
    padding-bottom: 2.4rem;
  }
}

.order tfoot tr:last-of-type td:before {
  font-size: 2.2rem;
}

.order table p,
.order > div:nth-of-type(2) > div:first-of-type h2,
.order > div:nth-of-type(2) > div:last-of-type h2 + p {
  margin-bottom: 0;
}

.order > div:nth-of-type(2) > div:first-of-type h2 ~ p {
  margin-bottom: 0;
  font-size: 1.4rem;
}

.order > div:nth-of-type(2) > div:first-of-type h2 ~ p:last-of-type {
  margin-bottom: 3rem;
}

.order .item-props {
  font-size: 1.4rem;
  margin-top: 0.05px;
  display: flex;
  flex-direction: column;
}

.order .item-props > span {
  word-break: break-all;
  line-height: 1.2;
}

.order .fulfillment {
  width: fit-content;
  border: 0.01rem solid rgba(var(--color-foreground), 0.2);
  padding: 1rem;
  margin-top: 1rem;
  font-size: 1.4rem;
  text-align: left;
}

.order .fulfillment a {
  margin: 0.7rem 0;
}

.order .fulfillment span {
  display: block;
}

.order .cart-discount {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

@media screen and (min-width: 750px) {
  .order td .cart-discount {
    display: none;
  }
}

.order tbody ul {
  list-style: none;
  font-size: 1.2rem;
  text-align: right;
  padding-left: 0;
  margin-top: 1rem;
  margin-bottom: 0;
}

@media screen and (min-width: 750px) {
  .order tbody ul {
    text-align: left;
  }
}

.order table a {
  line-height: 1.3;
}

.order tbody tr:first-of-type td:first-of-type > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@media screen and (min-width: 750px) {
  .order tbody tr:first-of-type td:first-of-type > div {
    align-items: flex-start;
  }
}

.order .properties {
  font-size: 1.4rem;
  margin-top: 1rem;
}

.order .properties span {
  display: block;
  line-height: 1.2;
}

.order svg {
  width: 1.1rem;
  color: rgb(var(--color-base-accent-2));
  margin-right: 0.5rem;
}

.order dl {
  margin: 0;
}

.order dd {
  margin-left: 0;
  line-height: 1.3;
}

.order dd s {
  color: rgba(var(--color-foreground), 0.7);
}

.order .unit-price {
  font-size: 1.1rem;
  letter-spacing: 0.07rem;
  line-height: 1.2;
  margin-top: 0.2rem;
  text-transform: uppercase;
  color: rgba(var(--color-foreground), 0.7);
}

.order .regular-price {
  font-size: 1.3rem;
}

.order .order-remark-wrapper{
  display: block;
  width: 100%;
  max-width: 500px;
}

.order textarea{
  display: block;

  min-height: 100px;
  -webkit-appearance: none;
  appearance: none;
  resize: none;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  color: rgb(var(--color-foreground));
  font-size: 1.6rem;
  width: 100%;
  box-shadow: 0 0 0 0.1rem rgba(var(--color-foreground), 0.55);
  height: 4.5rem;
  box-sizing: border-box;
  transition: box-shadow var(--duration-short) ease;
  padding: 1.5rem;
}

.order textarea + button{
  margin-top: 2rem;
}

/* Addresses */
.addresses li > button {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.addresses li > button + button,
.addresses form button + button {
  margin-top: 0rem;
}

@media screen and (min-width: 750px) {
  .addresses li > button:first-of-type {
    margin-top: 3rem;
  }
}

.addresses form button:first-of-type {
  margin-right: 1rem;
}

label[for='AddressCountryNew'],
label[for='AddressProvinceNew'] {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.addresses form {
  display: flex;
  flex-flow: row wrap;
}

.addresses form > div {
  width: 100%;
  text-align: left;
}

.addresses ul {
  list-style: none;
  padding-left: 0;
  text-align: center;
}

li[data-address] {
  margin-top: 5rem;
}

.addresses [aria-expanded='false'] ~ div[id] {
  display: none;
}

.addresses [aria-expanded='true'] ~ div[id] {
  display: block;
}

.addresses h2 {
  text-align: left;
}

li[data-address] > h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0;
}

@media only screen and (min-width: 750px) {
  li[data-address] > h2 {
    font-size: 2.2rem;
  }
}

.addresses ul p {
  margin-bottom: 0;
}

.addresses input[type='checkbox'] {
  margin-top: 2rem;
  margin-left: 0;
}

@media only screen and (min-width: 750px) {
  .addresses form > div:nth-of-type(1) {
    padding-right: 2rem;
  }

  .addresses form > div:nth-of-type(2) {
    margin-top: 0;
  }

  .addresses form > div:nth-of-type(1),
  .addresses form > div:nth-of-type(2) {
    flex-basis: 50%;
    box-sizing: border-box;
  }
}

.addresses form > div:nth-of-type(7),
.addresses form > div:nth-of-type(7) + div[id] {
  margin-top: 1.5rem;
}

.order .attachment-container{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.order .attachment-wrapper{
  width: 100%;
}

.order .attachment-list-item{
  display: flex;
  align-items: center;
  padding: 2px 0;
}

.order .attachment-list-item .icon-file{
  width: 15px;
  height: 15px;
}

.order .attachment-list-item .remove-attachment{
  margin-left: 6px;
}

.order .attachment-list-item .attachment-link{
  display: inline-flex;
  align-items: center;
}

.button--icon svg{
  width: 2rem;
  height: 2rem;
  color: currentColor;
  fill: currentColor;
  margin-top: -0.2rem;
  vertical-align: middle;
}

.customer a.button {
  display: inline-flex;
  background-color: rgba(var(--color-button), var(--alpha-button-background));
  box-shadow: 0 0 0 0.1rem rgba(var(--color-button), var(--alpha-button-border));
  color: rgb(var(--color-button-text));
  transition: box-shadow var(--duration-short) ease;
  text-decoration: none;
}

.card-box{
  box-shadow: 0 0 0 0.1rem rgba(var(--color-foreground), 0.08);
  padding: 2.2rem;
}

.label-tag{
  border-radius: 50px;
  padding: 2px 18px;
  background-color: rgba(0,0,0,0.1);
}

.label-tag.label-tag-warning{
  background-color: #fffcb4;
  color: #868223;
}

.label-tag.label-tag-pending{
  background-color: #ffe5b5;
  color: #9b6b22;
}

.label-tag.label-tag-alert{
  background-color: #ffe5ee;
  color: #dc3f3f;
}

.label-tag.label-tag-success{
  background-color: #d2ede0;
  color: #279972;
}

.label-tag.label-tag-info{
  background-color: #d4e7ff;
  color: #3f82dc;
}

.label-tag.label-default-light{
  background-color: #f8f8f8;
  color: #898c8d;
}

.label-tag.label-default-dark{
  background-color: #898c8d;
  color: #f8f8f8;
}

.order-date{
  font-weight: normal;
  font-size: 1.5rem;
  color: rgba(var(--color-base-text),0.55);
}

.button-snippet .btn{
  min-width: 260px;
}

.title-edit-container{
	margin-top:2rem;
	display:flex;
	justify-content:space-between;
}

#edit-details.details{
	display:flex;
	flex-flow:wrap;
	line-break:anywhere;
	max-width: 450px;
}

.small-text {
  font-size: 85%;
  line-height: 1.5;
}


/* Account page */
.avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 2px 2px 30px -15px #999;
}

.customer .account-navigation__list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px;
}

.customer .account-navigation__list .navigation-item.heading-nav_link {
  gap: 5px;
  position: relative;
  padding: 10px 0 20px;
  text-decoration: none;
  margin: 0;
  border-bottom: 1px solid rgba(var(--color-foreground), 0.08);
}

.customer .account-navigation__list .navigation-item:last-child {
  border-bottom: none;
  padding-bottom: 10px;
} 

.customer .account-navigation__list .navigation-item .navigation-icon svg {
  width: 24px;
  margin: 0;
  transition: transform 0.5s ease-in-out;
  color: rgba(var(--color-base-text));
  fill: rgba(var(--color-base-text));
}

.customer .account-navigation__list .navigation-item .navigation-title {
  color: rgba(var(--color-base-text));
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.customer .account-navigation__list .navigation-item:hover .navigation-icon svg {
  transform: scale(1.1);
}

.customer .account-navigation__list .navigation-item:hover .navigation-title {
  text-decoration: underline;
}

.customer .account-navigation__list .navigation-item .chevron {
  position: absolute;
  margin: 0;
  right: 0;
  display: block;
}

.customer .account-navigation__list .navigation-item .chevron svg {
  color: rgba(var(--color-foreground), 0.5);
  fill: currentColor;
}

@media screen and (min-width: 750px) {
  .customer .account-navigation__list:not(.mobile-navigation) {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    margin: 0 -2.2rem;
  }
  
  .customer .account-navigation__list:not(.mobile-navigation) .navigation-item.heading-nav_link {
    padding: 10px 15px;
    flex-direction: column;
    text-align: center;
    border: 0;
    gap: 5px;
    border-right: 1px solid rgba(var(--color-foreground), 0.08);
  }
  
  .customer .account-navigation__list:not(.mobile-navigation) .navigation-item.heading-nav_link:last-child {
  	border-right: none;
  }
  
  .customer .account-navigation__list:not(.mobile-navigation) .navigation-item .navigation-icon svg {
    width: 30px;
  }
  
  .customer .account-navigation__list:not(.mobile-navigation) .navigation-item .chevron {
    display: none;
  }
}

.customer .order-grid {
  padding-left: 1rem;
  padding-right: 2rem;
  margin: 0 -2rem;
}

@media screen and (min-width: 750px) {
  .customer .order-grid .grid__item {
    padding-left: 1rem;
    padding-bottom: 1rem;
  }
}

.order-grid .order-card__wrapper {
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.order-grid .order-card__wrapper:hover .h3 {
  text-decoration: underline;
}

.order-grid .order-images__wrapper {
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.order-grid .order-images__wrapper .order-image {
  margin: 10px 10px 10px 0;
  max-width: 80px;
  flex-basis: 25%;
}

/* Order received confirmation modal */
details[open] > .confirmation-modal.modal__content {
  position: static;
}

details[open] > .confirmation-modal .confirmation-modal__content {
  transform: translate(-50%, 0);
  transition: transform var(--duration-default) ease, visibility 0s;
  z-index: 10000;
  background-color: #F8F9FA;
  border-color: rgba(18, 18, 18, 0.2);
  border-style: solid;
  border-width: 1px;
  padding: 25px 35px;
  position: fixed;
  top: 10vh;
  left: 50%;
  width: 100%;
  max-width: 400px;
  color: #000;
  text-align: left;
}

details[open] > .confirmation-modal .confirmation-modal__content .h3 {
  color: #000;
}

details[open] > .confirmation-modal .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2001;
  display: block;
  opacity: 1;
  transition: opacity var(--duration-default) ease, visibility 0s;
}

/* Tab slider */
.customer button.slider-button {
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  box-shadow: none;
  background: none;
  color: rgb(var(--color-foreground));
}

.customer button.slider-button:not([disabled]):hover {
  color: rgb(var(--color-foreground));
}

.customer button.slider-button {
  height: 0.6rem;
}
.customer button.slider-button[disabled] .icon {
  color: rgba(var(--color-foreground), 0.3);
}

/* Order listing */
.customer .media .image-overlay-qty {
  display: none; 
}

.customer .media .image-overlay-qty.desktop-show,
.customer .media .image-overlay-qty.mobile-show {
  width: 100%;
  height: 100%;
  justify-content: center; 
  align-items: center; 
  background-color: rgba(0, 0, 0, 0.7); 
  color: #fff; 
  position: absolute; 
  top: 0;
}

.customer .media .image-overlay-qty.desktop-show {
  display: flex;
}

@media screen and (max-width: 990px) {
  .customer .media:nth-child(n+3) {
    display: none;
  }
  
  .customer .media .image-overlay-qty.mobile-show {
    display: flex;
  }
}

.customer .media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.order-right {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.5rem 0;
  margin-left: auto;
}

/* Order details */
.customer .product-qty-badge {
  z-index: 2;
  position: absolute;
  top: -7px;
  right: -7px;
  background-color: rgb(var(--color-button));
  color: rgb(var(--color-button-text));
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  padding: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 25px;
}

.customer .price-label {
  text-align: right;
  min-width: 150px;
}

@media screen and (max-width: 768px) {
  .sm-flex-wrap {
    flex-wrap: wrap;
  }
  .order-status {
    flex-basis: 100%;
  }
}

