:root {
  --brand-primary: #ff5f3c;
  --brand-primary-dark: #c2341a;
  --brand-primary-light: #e84f2e;
  --brand-primary-soft: #ffe8e2;
  --brand-accent: #25d98f;
  --brand-sale: #20cf7a;
  --brand-coming: #d73a1f;
  --status-success: #13764e;
  --status-danger: #b91c1c;
  --surface-warning: #fff8e8;
  --event-hero: #191b48;
  --event-hero-soft: #292b5a;
  --surface-page: #f4f4f4;
  --surface-card: #ffffff;
  --surface-muted: #eeeeee;
  --surface-footer: #414141;
  --text-primary: #191919;
  --text-secondary: #707070;
  --border-color: #e4e4e4;
  --shadow-card: 0 2px 9px rgba(0, 0, 0, 0.09);
  --radius-card: 12px;
  --content-width: 1056px;
  --event-content-width: 1160px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}
body {
  color: var(--text-primary);
  font-family: "Noto Sans TC", "Noto Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  touch-action: manipulation;
}
:where(a, button, summary, [role="button"], [role="tab"]) {
  transition-property: color, background-color, border-color, opacity, box-shadow, transform;
  transition-duration: 180ms;
  transition-timing-function: ease;
}
input {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
:where(button, [role="button"]):active { transform: scale(.97); }
:where(a, button, input, summary, [role="button"], [role="tab"]):focus-visible {
  outline: 2px solid var(--brand-primary-light);
  outline-offset: 3px;
}
.material-symbols-outlined {
  display: inline-block;
  flex: 0 0 auto;
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
.material-symbols-outlined.icon-filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  --site-header-height: 80px;
  position: relative;
  z-index: 30;
  min-height: var(--site-header-height);
  background: rgba(255, 255, 255, .98);
  color: var(--text-primary);
}
.site-header-inner {
  display: flex;
  width: min(var(--event-content-width), 100%);
  height: var(--site-header-height);
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  padding-inline: clamp(22px, 3.5vw, 46px);
}
.site-header-logo {
  display: block;
  width: 148px;
  line-height: 0;
}
.site-header-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header-tool {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #fff;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.site-header-tool .material-symbols-outlined {
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}
.site-header-tool:hover { background: var(--brand-primary-light); }
.site-header-account-wrap { position: relative; }
.site-header-account {
  display: inline-flex;
  height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 2px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.site-header-account-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 auto;
  overflow: visible;
  border: 1.5px solid #fff;
  border-radius: 50%;
  color: #fff;
}
.site-header-account-icon .site-header-person {
  display: block;
  width: 16px;
  height: 16px;
}
.site-header-account:hover { background: var(--brand-primary-light); }
.site-header-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 168px;
  border: 1px solid #ececec;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
  padding: 10px 0;
}
.site-header-account-name,
.site-header-account-menu a,
.site-header-account-menu button {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #191919;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
.site-header-account-name {
  color: #8a8a8a;
  font-weight: 400;
}
.site-header-account-menu a:hover,
.site-header-account-menu button:hover {
  background: #fff7f3;
  color: var(--brand-primary);
}
.site-header-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #191919;
  border-radius: 50%;
  background: #fff;
  color: #191919;
  transition-duration: 220ms;
}
.site-header-icon:hover { background: #191919; color: #fff; }
.site-header-icon .material-symbols-outlined { font-size: 19px; }
.site-search-panel {
  max-height: 0;
  overflow: hidden;
  width: min(var(--event-content-width), 100%);
  margin-inline: auto;
  border-top: 1px solid transparent;
  background: #fff;
  padding: 0 clamp(22px, 3.5vw, 46px);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: max-height 280ms ease, padding 280ms ease, opacity 180ms ease, transform 280ms ease, border-color 180ms ease, visibility 0s linear 280ms;
}
.site-search-panel.is-open {
  max-height: 76px;
  border-top-color: #ececec;
  padding-block: 10px 14px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}
.site-search-form {
  display: flex;
  width: min(100%, 680px);
  height: 44px;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  border-bottom: 1px solid var(--brand-primary);
  color: var(--brand-primary);
}
.site-search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  outline: 0;
}
.site-search-form input::placeholder { color: var(--brand-primary); opacity: .7; }
.site-search-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.site-search-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 0;
  cursor: pointer;
}
.site-search-close img {
  display: block;
  width: 22px;
  height: 22px;
}
.site-search-close:hover { opacity: .8; }
.site-nav-bar {
  padding: 0 0 16px;
  background: rgba(255, 255, 255, .98);
}
.site-nav-bar-inner {
  display: flex;
  width: min(var(--event-content-width), 100%);
  align-items: center;
  gap: 10px;
  margin-inline: auto;
  padding-inline: clamp(22px, 3.5vw, 46px);
}
.site-nav-deco {
  display: block;
  width: 34px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}
.site-nav-pill {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: stretch;
  overflow: hidden;
  border-radius: 999px;
  background: var(--brand-primary);
}
.site-nav-link {
  display: inline-flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav-link:hover { background: rgba(255, 255, 255, .12); }
.site-nav-link.is-active { font-weight: 700; }
.site-checkout-bar {
  border-top: 1px solid #f3e4d8;
  background: #fff7f2;
  color: #9e3620;
}
.site-checkout-bar.is-urgent {
  background: #fff1f0;
  color: var(--status-danger);
}
.site-checkout-bar-inner {
  display: flex;
  width: min(var(--event-content-width), 100%);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-inline: auto;
  padding: 10px clamp(22px, 3.5vw, 46px);
  font-size: 13px;
  line-height: 1.4;
}
.site-checkout-bar-inner p {
  min-width: 0;
  margin: 0;
}
.site-checkout-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.site-checkout-note { margin-left: 8px; color: #b07a64; }
.site-checkout-bar.is-urgent .site-checkout-note { color: inherit; }
.site-checkout-resume {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: #ea580c;
  padding: 7px 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.site-checkout-resume:hover { background: #dc4a05; }
.site-nav-glyph {
  display: block;
  width: 8px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-header { background: var(--brand-primary); }
.brand-container { width: min(var(--content-width), calc(100% - 32px)); margin-inline: auto; }
.search-field:focus-within { box-shadow: 0 0 0 3px rgba(158, 54, 32, .16); }
.mobile-search-panel { display: none; }
.mobile-search-panel.is-open { display: block; }
.site-footer {
  width: 100%;
  margin-top: auto;
  background: var(--brand-primary);
  color: #fff;
}
.site-footer-inner {
  width: min(1000px, 100%);
  margin-inline: auto;
  padding: 48px clamp(22px, 3.5vw, 46px) 28px;
}
.site-footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 40px;
}
.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}
.site-footer-links a,
.site-footer-links p {
  display: block;
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
}
.site-footer-links a:hover { opacity: .78; }
.site-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer-social a {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
  line-height: 0;
}
.site-footer-social img {
  display: block;
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}
.site-footer-base {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, .55);
  padding-top: 22px;
}
.site-footer-brand {
  display: block;
  width: 132px;
  flex: 0 0 auto;
  line-height: 0;
}
.site-footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}
.site-footer-base p {
  margin: 0;
  min-width: 0;
  flex: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
.site-footer-info {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.site-footer-info:hover { opacity: .9; }
.image-placeholder {
  background: linear-gradient(135deg, rgba(158, 54, 32, .07), rgba(158, 54, 32, .01)), var(--surface-muted);
}
@media (max-width: 767px) {
  .site-footer-inner { padding: 36px 22px 24px; }
  .site-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .site-footer-base { flex-wrap: wrap; gap: 12px 16px; }
}
@media (max-width: 479px) {
  .site-footer-links { grid-template-columns: 1fr; }
  .site-footer-base {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer-info { margin-left: 0; }
}
@media (max-width: 639px) {
  .site-header { --site-header-height: 64px; }
  .site-header-inner { padding-inline: 18px; }
  .site-header-logo { width: 112px; }
  .site-header-actions { gap: 6px; }
  .site-header-tool { width: 40px; height: 40px; }
  .site-header-tool .material-symbols-outlined { font-size: 20px; }
  .site-header-account {
    height: 40px;
    gap: 8px;
    padding: 0 12px 0 6px;
    font-size: 12px;
  }
  .site-header-account-icon { width: 26px; height: 26px; }
  .site-header-account-icon .site-header-person { width: 14px; height: 14px; }
  .site-header-icon { width: 32px; height: 32px; }
  .site-search-panel { padding: 8px 18px 12px; }
  .site-nav-bar { padding-bottom: 8px; }
  .site-nav-bar-inner { padding-inline: 12px; gap: 0; }
  .site-nav-deco { display: none; }
  .site-nav-pill { overflow: hidden; }
  .site-nav-glyph { display: none; }
  .site-nav-link {
    flex: 1 1 0;
    min-width: 0;
    min-height: 34px;
    padding: 0 2px;
    gap: 0;
    font-size: 12px;
    letter-spacing: 0;
  }
  .site-nav-link.is-active {
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 -2px 0 #fff;
  }
  .site-checkout-bar-inner {
    padding: 8px 12px;
    font-size: 12px;
  }
  .site-checkout-note { display: none; }
  .site-checkout-resume {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .brand-container { width: min(100% - 28px, var(--content-width)); }
}

.legal-page {
  min-width: 320px;
  background: #fff;
}
.legal-main {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 88px;
}
.legal-kicker {
  margin: 0 0 8px;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 500;
}
.legal-main h1 {
  margin: 0;
  color: #191919;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.legal-updated {
  margin: 10px 0 28px;
  color: #8a8a8a;
  font-size: 13px;
}
.legal-lead {
  margin: 0 0 32px;
  color: #555;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}
.legal-main h2 {
  margin: 36px 0 12px;
  color: #191919;
  font-size: 18px;
  font-weight: 500;
}
.legal-main p,
.legal-main li {
  color: #555;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
}
.legal-main p { margin: 0 0 14px; }
.legal-main ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal-main li + li { margin-top: 8px; }
.legal-main a { color: var(--brand-primary); }
.legal-note {
  margin-top: 40px;
  border-top: 1px solid #ececec;
  padding-top: 20px;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 639px) {
  .legal-main { width: calc(100% - 36px); padding: 36px 0 72px; }
  .legal-main h1 { font-size: 26px; }
}

.auth-page {
  min-width: 320px;
  background: #fff;
}
.auth-main {
  width: min(400px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.auth-panel { width: 100%; }
.auth-title {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 auto;
  border: 3px solid var(--brand-primary);
  border-radius: 1000px 0 0 1000px;
  background: #fff;
  padding: 7px 20px 7px 35px;
}
.auth-title-text {
  margin-right: 10px;
  color: var(--brand-primary);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
}
.auth-title-bars {
  display: flex;
  align-items: center;
}
.auth-title-bar {
  height: 25px;
  margin-right: 2px;
  border-radius: 1000px;
  background: var(--brand-primary);
}
.auth-title-bar.is-lg { width: 10px; }
.auth-title-bar.is-md { width: 7px; }
.auth-title-bar.is-sm { width: 4px; margin-right: 0; }
.auth-subtitle {
  margin: 6px 0 28px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
[data-auth-form] { display: grid; gap: 16px; }
[data-register-only].hidden,
[data-login-only].hidden { display: none !important; }
.auth-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}
.auth-optional { color: var(--text-secondary); font-weight: 400; }
.auth-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  padding: 0 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  outline: none;
}
.auth-input::placeholder { color: #b0b0b0; letter-spacing: 0; }
.auth-input[type="password"] {
  font-family: "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
}
.auth-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(158, 54, 32, .14);
}
.auth-input.is-invalid,
.auth-input:user-invalid { border-color: #c2410c; }
.auth-input.is-invalid:focus {
  border-color: #c2410c;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, .12);
}
.auth-field-error {
  margin: 6px 0 0;
  color: #c2410c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}
.auth-password-wrap { position: relative; }
.auth-password-wrap .auth-input { padding-right: 46px; }
.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  background: transparent;
  color: #8a8a8a;
}
.auth-password-toggle:hover { color: var(--text-primary); }
.auth-password-toggle .material-symbols-outlined { font-size: 20px; }
.auth-login-options,
.auth-agree {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.auth-remember {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #707070;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}
.auth-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: 0 0 auto;
  border: 1px solid #c5c5c5;
  border-radius: 3px;
  accent-color: var(--brand-primary);
}
.auth-forgot,
.auth-inline-link,
.auth-legal a,
.auth-resend,
[data-switch-action] {
  color: var(--brand-primary);
  font-weight: 500;
}
.auth-forgot,
.auth-resend,
[data-auth-switch] {
  border: 0;
  background: transparent;
  padding: 0;
}
.auth-forgot { font-size: 13px; }
.auth-forgot:hover,
.auth-inline-link:hover,
.auth-legal a:hover,
.auth-resend:hover,
[data-switch-action]:hover {
  color: var(--brand-primary-dark);
  text-decoration: underline;
}
.auth-submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.auth-submit:hover { background: var(--brand-primary-dark); }
.auth-submit:disabled {
  cursor: not-allowed;
  background: #d8d8d8;
  color: #fff;
}
.auth-verify-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  border-radius: 10px;
  background: var(--brand-primary);
  padding: 0 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.auth-verify-link:hover { background: var(--brand-primary-dark); }
.auth-legal {
  margin: 14px 0 0;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}
.auth-switch { margin-top: 22px; text-align: center; }
[data-auth-switch] {
  color: #707070;
  font-size: 13px;
  font-weight: 400;
}
[data-switch-action] { margin-left: 4px; }
.auth-resend {
  width: 100%;
  margin-top: 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: #707070;
}
.auth-resend-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 500;
}
.auth-resend-link:hover { color: var(--brand-primary-dark); text-decoration: underline; }
.auth-resend-link:disabled {
  cursor: not-allowed;
  color: #9a9a9a;
  text-decoration: none;
}
.auth-message {
  display: block;
  margin-top: 2px;
  color: #c2410c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.auth-message-error { color: #c2410c; }
.auth-message-success { color: #15803d; }
@media (max-width: 639px) {
  .auth-main { padding: 32px 0 64px; }
  .auth-title { padding: 6px 16px 6px 24px; }
  .auth-title-text { font-size: 20px; letter-spacing: 2px; }
}

/* ─── Unified Modal ───────────────────────────────────────── */
.wm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(65, 65, 65, .82);
  opacity: 0;
  animation: wm-modal-fade-in .14s ease-out forwards;
}
.wm-modal-backdrop.is-open { opacity: 1; }
.wm-modal-backdrop.is-closing { animation: wm-modal-fade-out .1s ease-in forwards; }
.wm-modal-card {
  position: relative;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border-radius: 16px;
  padding: 28px 24px 24px;
  background: #fff;
  box-shadow: none;
  animation: wm-modal-slide-in .16s ease-out forwards;
}
.wm-modal-backdrop.is-closing .wm-modal-card { animation: wm-modal-slide-out .1s ease-in forwards; }

.wm-modal-icon { display: none; }

.wm-modal-title {
  margin: 0;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #191919;
}
.wm-modal-body {
  margin: 10px 0 0;
  text-align: left;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.6;
  color: #707070;
}
.wm-modal-actions {
  display: grid;
  justify-content: stretch;
  gap: 10px;
  margin-top: 24px;
}
.wm-modal-actions:not(.has-cancel) {
  width: 100%;
}
.wm-modal-actions.has-cancel {
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wm-modal-btn {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--brand-primary);
  padding: 0 26px;
  background: #fff;
  color: var(--brand-primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease, background-color .12s ease, border-color .12s ease;
}
.wm-modal-btn:active { transform: translateY(1px) scale(.99); }
.wm-modal-btn.is-primary,
.wm-modal-btn.is-danger {
  background: var(--brand-primary);
  color: #fff;
}
.wm-modal-btn.is-primary:hover,
.wm-modal-btn.is-danger:hover { background: var(--brand-primary-light); border-color: var(--brand-primary-light); }
.wm-modal-btn.is-cancel {
  background: #fff;
  color: var(--brand-primary);
}
.wm-modal-btn.is-cancel:hover { background: #fff7f3; }
.wm-modal-btn.is-quiet {
  background: #fff;
  border-color: #e4e4e4;
  color: #707070;
}
.wm-modal-btn.is-quiet:hover { background: #f7f7f7; border-color: #d4d4d4; color: #191919; }
.wm-modal-actions.is-destructive .is-primary { order: 2; }
.wm-modal-actions.is-destructive .is-quiet { order: 1; }

.btn-spinner {
  display: block;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

@keyframes wm-modal-fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes wm-modal-fade-out  { from { opacity: 1; } to { opacity: 0; } }
@keyframes wm-modal-slide-in  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wm-modal-slide-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

@media (max-width: 640px) {
  .wm-modal-backdrop { padding: 18px; }
  .wm-modal-card {
    width: 100%;
    min-height: 0;
    border-radius: 16px;
    padding: 24px 20px 20px;
  }
  .wm-modal-title { font-size: 1.2rem; }
  .wm-modal-body { font-size: .95rem; }
  .wm-modal-actions.has-cancel { grid-template-columns: 1fr; }
  .wm-modal-btn { min-height: 48px; }
  .wm-modal-actions.has-cancel .wm-modal-btn.is-cancel { order: 1; }
  .wm-modal-actions.has-cancel .wm-modal-btn.is-primary,
  .wm-modal-actions.has-cancel .wm-modal-btn.is-danger { order: 0; }
  .wm-modal-actions.is-destructive .is-primary { order: 0; }
  .wm-modal-actions.is-destructive .is-quiet { order: 1; }
}
