/* Shared mobile-first chrome and result components for every GOAL payment,
   renewal, quote, invoice and authorized management page. */
@font-face {
  font-family: "Montserrat Black";
  src: url("/smartcoin/v1/rent/fonts/Montserrat/Montserrat-Black.woff2") format("woff2"),
       url("/smartcoin/v1/rent/fonts/Montserrat/Montserrat-Black.woff") format("woff");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --goal-blue: #0878ef;
  --goal-blue-dark: #075ecf;
  --goal-text: #172033;
  --goal-muted: #667085;
  --goal-border: #dce5ef;
  --goal-background: #f4f7fb;
  --goal-surface: #fff;
  --goal-success: #087443;
  --goal-success-bg: #effcf5;
  --goal-danger: #b42318;
  --goal-danger-bg: #fff4f2;
  --goal-warning: #8a3b12;
  --goal-warning-bg: #fff8ed;
}

.goal-payment-page {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--goal-background);
  color: var(--goal-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.goal-payment-page *,
.goal-payment-page *::before,
.goal-payment-page *::after {
  box-sizing: border-box;
}

.goal-payment-shell {
  width: min(100%, 620px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
}

.goal-payment-header {
  width: min(100%, 520px);
  margin-inline: auto;
  padding: max(24px, env(safe-area-inset-top)) 0 28px;
  text-align: center;
}

.goal-payment-header__logo {
  display: block;
  width: 142px;
  height: auto;
  margin-inline: auto;
}

.goal-payment-header__wordmark {
  margin: 22px 0 4px;
  color: #dfe4e9;
  font-family: "Montserrat Black", sans-serif;
  font-size: clamp(72px, 22vw, 112px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: .018em;
  text-indent: .018em;
}

.goal-payment-header__title {
  margin: 22px 0 0;
  color: var(--goal-blue, #0878ef);
  font-size: clamp(38px, 11vw, 54px);
  line-height: 1.12;
  letter-spacing: -.04em;
}

.goal-payment-header__message {
  margin: 16px auto 0;
  color: var(--goal-muted, #667085);
  font-size: 15px;
  line-height: 1.65;
}

.goal-result-card {
  width: min(100%, 520px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--goal-border);
  border-radius: 22px;
  background: var(--goal-surface);
  box-shadow: 0 18px 48px rgba(17, 34, 64, .11);
}

.goal-result-card__hero {
  padding: 24px 22px;
  border-bottom: 1px solid #e7edf4;
  background: linear-gradient(135deg, #075ecf, #1594ff);
  color: #fff;
}

.goal-result-card--success .goal-result-card__hero {
  background: linear-gradient(135deg, #087443, #12a36a);
}

.goal-result-card--error .goal-result-card__hero {
  background: linear-gradient(135deg, #9f241b, #d94b3d);
}

.goal-result-card--warning .goal-result-card__hero {
  background: linear-gradient(135deg, #8a3b12, #d47716);
}

.goal-result-card__eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
}

.goal-result-card__title {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.goal-result-card__message {
  margin: 12px 0 0;
  color: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
  opacity: .92;
}

.goal-result-card__body {
  padding: 20px 22px 24px;
}

.goal-result-card__note {
  margin: 0;
  color: var(--goal-muted);
  font-size: 14px;
  line-height: 1.7;
}

.goal-detail-list {
  margin: 0;
  overflow: hidden;
  border: 1px solid #e3e9f0;
  border-radius: 15px;
  background: #fff;
}

.goal-detail-list__row {
  display: grid;
  grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
  gap: 12px;
  padding: 14px 15px;
  align-items: start;
  border-bottom: 1px solid #e8edf3;
}

.goal-detail-list__row:last-child {
  border-bottom: 0;
}

.goal-detail-list dt,
.goal-detail-list dd {
  margin: 0;
}

.goal-detail-list dt {
  color: var(--goal-muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.goal-detail-list dd {
  color: var(--goal-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.goal-result-actions {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.goal-result-action {
  display: flex;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  background: var(--goal-blue);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.goal-result-action--secondary {
  border: 1px solid #d8e1eb;
  background: #f7f9fc;
  color: #243650;
}

.goal-result-action:focus-visible {
  outline: 4px solid rgba(8, 120, 239, .2);
  outline-offset: 2px;
}

.goal-result-status {
  margin: 0 0 18px;
  padding: 14px 15px;
  border: 1px solid #b9dcff;
  border-radius: 13px;
  background: #edf6ff;
  color: #174a7e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.goal-result-status--success {
  border-color: #8bc9a8;
  background: var(--goal-success-bg);
  color: #16472a;
}

.goal-result-status--error {
  border-color: #f0a59a;
  background: var(--goal-danger-bg);
  color: var(--goal-danger);
}

.goal-payment-footer {
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 34px 18px max(34px, env(safe-area-inset-bottom));
  color: var(--goal-muted, #667085);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

/* 2026-08-18 拆頭後遺：設備付款/選台頁的殼不再撐滿視窗——內容短時
   footer（公司 logo 新家）直接跟在卡片後面，不留一整屏真空
   （業主：「LOGO 整個跑到很下面去，超難看」）。 */
.goal-device-payment-shell {
  min-height: 0;
}

.goal-device-payment-shell + .goal-payment-footer,
.goal-device-choice-shell + .goal-payment-footer {
  padding-top: 10px;
}

.goal-payment-footer a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Shared presentation layer for the three capability-gated quote editors.
   Their fields and scripts remain template-owned; this only standardizes the
   mobile shell, touch targets, and overflow behavior. */
.goal-admin-quote-shell {
  width: min(100%, 760px);
}

.goal-admin-quote-card {
  width: min(100%, 700px);
  margin: 0 auto;
  padding: 24px 20px 28px;
  overflow: hidden;
  border: 1px solid var(--goal-border);
  border-radius: 22px;
  background: var(--goal-surface);
  box-shadow: 0 18px 48px rgba(17, 34, 64, .11);
}

.goal-admin-quote-card.container {
  max-width: 700px;
}

.goal-admin-quote-card h3 {
  margin: 8px 0 18px;
  color: var(--goal-text);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.35;
}

.goal-admin-quote-card hr {
  margin: 16px 0 20px;
  border: 0;
  border-top: 1px solid #e8edf3;
}

.goal-admin-quote-card label {
  margin-bottom: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.goal-admin-quote-card .form-control,
.goal-admin-quote-card input:not([type="hidden"]),
.goal-admin-quote-card select,
.goal-admin-quote-card textarea {
  max-width: 100%;
  min-height: 48px;
  border: 1.5px solid #c9d3df;
  border-radius: 11px;
  background: #fff;
  color: var(--goal-text);
  box-shadow: none;
  font-size: 16px;
}

.goal-admin-quote-card textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

.goal-admin-quote-card input:focus,
.goal-admin-quote-card select:focus,
.goal-admin-quote-card textarea:focus {
  outline: 3px solid rgba(8, 120, 239, .18);
  border-color: var(--goal-blue);
  box-shadow: none;
}

.goal-admin-quote-table-wrap {
  width: 100%;
  margin-bottom: 16px;
  clear: both;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.goal-admin-quote-card #product-table {
  min-width: 620px;
  margin: 0;
  background: #fff;
}

.goal-admin-quote-card #product-table th {
  border-bottom: 1px solid #dce5ef;
  background: #f4f7fb;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.goal-admin-quote-card #product-table td {
  vertical-align: middle;
}

/* 手機上一列一張卡，不要橫滑。
 *
 * 五欄擠在 390px 寬的螢幕裡，min-width 會逼出水平捲軸：單價與小計整個看不到，
 * 要左右撥才找得到——而那兩欄正好是報價單上最需要確認的東西。
 *
 * 欄位標題用 nth-child 從 CSS 補回來，不改 HTML：新增產品的列是 JS 動態插的
 * （見三份表單的 addProduct()），任何要在標記上掛 data-label 的做法都得同步
 * 改那段 JS，漏一處就是一列沒有標題的卡。 */
/* 手機直式：一列一張卡，不要橫滑。
 *
 * 五欄擠在 390px 寬的螢幕裡，min-width 會逼出水平捲軸：單價與小計整個看不到，
 * 要左右撥才找得到——而那兩欄正好是報價單上最需要確認的東西。橫著拿的時候
 * 四欄排得下，所以斷點只管直式（手機橫向約 844px、iPad 直向 768px 都不觸發）。
 *
 * 欄位標題用 nth-child 從 CSS 補回來，不改 HTML：新增產品的列是 JS 動態插的
 * （見三份表單的 addProduct()），任何要在標記上掛 data-label 的做法都得同步
 * 改那段 JS，漏一處就是一列沒有標題的卡。 */
@media (max-width: 640px) {
  .goal-admin-quote-table-wrap {
    overflow-x: visible;
    border: 0;
    border-radius: 0;
  }

  .goal-admin-quote-card #product-table {
    min-width: 0;
    background: transparent;
  }

  .goal-admin-quote-card #product-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .goal-admin-quote-card #product-table,
  .goal-admin-quote-card #product-table tbody,
  .goal-admin-quote-card #product-table tr,
  .goal-admin-quote-card #product-table td {
    display: block;
    width: 100%;
  }

  /* 卡片編號：三張空白卡長得一模一樣，沒有編號就不知道自己在填第幾項。 */
  .goal-admin-quote-card #product-table tbody {
    counter-reset: goal-quote-row;
  }

  /* 兩行：品項自己一行，數量／單價／小計並排第二行。三個都是短欄位，
   * 併起來剛好，也維持了橫向表格那四欄的閱讀順序。 */
  .goal-admin-quote-card #product-table tr {
    position: relative;
    display: grid;
    /* 小計那格多給一點：它沒有輸入框的內距，卻要裝最長的數字。 */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
    column-gap: 9px;
    counter-increment: goal-quote-row;
    margin-bottom: 12px;
    padding: 12px 13px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
  }

  .goal-admin-quote-card #product-table td {
    padding: 5px 0 0 !important;
    width: auto !important;
    border: 0;
  }

  .goal-admin-quote-card #product-table td::before {
    display: block;
    margin-bottom: 3px;
    color: #475467;
    font-size: 12.5px;
    font-weight: 800;
  }

  /* 品項橫跨整行；數量、單價、小計各佔三分之一。 */
  .goal-admin-quote-card #product-table td:nth-child(1) {
    grid-column: 1 / -1;
  }

  .goal-admin-quote-card #product-table td:nth-child(1)::before {
    content: "品項 " counter(goal-quote-row);
    /* 給右上角的刪除鈕讓出位置，標題才不會被壓到。 */
    padding-right: 40px;
  }

  .goal-admin-quote-card #product-table td:nth-child(2)::before {
    content: "數量";
  }

  .goal-admin-quote-card #product-table td:nth-child(3)::before {
    content: "單價";
  }

  /* 金額欄在寬螢幕靠右對齊是為了對齊小數位；一列一張卡之後靠右反而
   * 離標題很遠，改回靠左。 */
  .goal-admin-quote-card #product-table td input {
    width: 100% !important;
    text-align: left !important;
  }

  .goal-admin-quote-card #product-table td:nth-child(4)::before {
    content: "小計";
  }

  /* 小計是唯讀的：拿掉框線，讓它看起來是「算出來的」而不是「可以打的」，
   * 但高度跟左邊兩格對齊，第二行才不會參差。 */
  .goal-admin-quote-card #product-table td:nth-child(4) input {
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    text-align: right !important;
  }

  /* 刪除鈕收到卡片右上角：它是每張卡最少用到的東西，不該佔掉一整列。 */
  .goal-admin-quote-card #product-table td:nth-child(5) {
    position: absolute;
    top: 8px;
    right: 9px;
    padding: 0 !important;
    width: auto !important;
  }

  .goal-admin-quote-card #product-table td:nth-child(5) .btn {
    min-height: 30px;
    min-width: 30px;
    padding: 3px 9px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.6;
  }
}

.goal-admin-quote-card .btn {
  min-height: 44px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 750;
}

.goal-admin-quote-card .btn-primary {
  border-color: var(--goal-blue-dark);
  background: var(--goal-blue);
}

.goal-admin-quote-card .btn-success {
  min-width: 160px;
  min-height: 52px;
  border: 0;
  background: linear-gradient(135deg, var(--goal-blue-dark), var(--goal-blue));
  box-shadow: 0 10px 24px rgba(8, 120, 239, .22);
}

.goal-admin-quote__partner-wordmark {
  color: #24364d;
  font-family: inherit;
  font-size: clamp(46px, 14vw, 72px);
  letter-spacing: .02em;
  text-indent: 0;
}

/* Legacy device-payment entry pages keep their provider forms and scripts,
   while sharing the same GOAL chrome and mobile layout as the newer flows. */
.goal-device-payment-page {
  display: block !important;
  min-height: 100%;
  padding: 0 !important;
  background: var(--goal-background) !important;
  color: var(--goal-text);
}

.goal-device-payment-page #particles-js {
  display: none;
}

.goal-device-payment-shell {
  padding-bottom: 0;
}

.goal-device-payment-page .goal-payment-header {
  padding-bottom: 22px;
}

.goal-device-payment-card,
.goal-device-choice-card {
  width: min(100%, 520px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--goal-border);
  border-radius: 22px;
  background: var(--goal-surface);
  box-shadow: 0 18px 48px rgba(17, 34, 64, .11);
}

.goal-device-provider {
  padding: 22px;
  border-bottom: 1px solid #e7edf4;
  background: linear-gradient(180deg, #f8fbff, #fff);
  text-align: center;
}

.goal-device-provider__logo {
  display: block;
  width: auto;
  max-width: min(190px, 72%);
  height: auto;
  max-height: 58px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.goal-device-provider .goal-result-card__eyebrow {
  color: var(--goal-blue-dark);
}

.goal-device-provider h2 {
  margin: 0;
  color: var(--goal-text);
  font-size: clamp(25px, 7vw, 34px);
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.goal-device-provider > p:last-child {
  margin: 8px 0 0;
  color: var(--goal-muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.goal-device-payment-options.container {
  width: 100%;
  max-width: none;
  padding: 20px 18px 24px;
}

.goal-device-payment-card .card {
  width: 100%;
  max-width: none;
  margin: 14px 0;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 34, 64, .08);
}

.goal-device-payment-card .card-body {
  padding: 20px 18px;
}

.goal-device-payment-card .card-title {
  margin: 12px 0;
  color: var(--goal-text);
  font-size: clamp(27px, 8vw, 38px);
  line-height: 1.2;
}

.goal-device-payment-card .btn {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 9px 22px rgba(17, 34, 64, .14);
  -webkit-tap-highlight-color: transparent;
}

.goal-device-payment-card input[type="number"] {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid #c9d3df;
  border-radius: 11px;
  color: var(--goal-text);
}

.goal-device-section-heading {
  padding: 24px 22px;
  background: linear-gradient(135deg, #075ecf, #1594ff);
  color: #fff;
  text-align: left;
}

.goal-device-section-heading .goal-result-card__eyebrow,
.goal-device-section-heading h2,
.goal-device-section-heading > p:last-child {
  color: inherit;
}

.goal-device-section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 850;
  line-height: 1.2;
}

.goal-device-section-heading > p:last-child {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
  opacity: .92;
}

.goal-device-choice-content.container {
  width: 100%;
  max-width: none;
  padding: 0 18px 24px;
}

.goal-device-choice-content > .goal-device-section-heading {
  margin: 0 -18px 20px;
}

.goal-device-choice-card .button-container {
  position: relative;
  display: block;
  width: 100%;
  margin: 12px 0 !important;
}

.goal-device-choice-card .button-container > a {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  min-height: 72px;
  padding: 10px 15px !important;
  align-items: center;
  border: 1px solid #d8e1eb;
  border-radius: 14px;
  background: #fff !important;
  color: #17304f !important;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 7px 20px rgba(17, 34, 64, .08);
}

.goal-device-choice-card .button-container > a img {
  display: block;
  width: auto;
  max-width: 58px;
  height: auto;
  max-height: 50px;
  margin-inline: auto;
  object-fit: contain;
}

.goal-device-choice-card #deviceSelectTitle h2,
.goal-device-choice-card .payment-options h3 {
  margin: 16px 0;
  color: var(--goal-text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
}

.goal-device-choice-card #btnDevice1,
.goal-device-choice-card #btnDevice2,
.goal-device-choice-card #backButtonContainer .btn {
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 800;
}

.goal-device-choice-card #btnDevice1,
.goal-device-choice-card #btnDevice2 {
  background: linear-gradient(135deg, var(--goal-blue-dark), var(--goal-blue));
}

.goal-device-choice-card #backButtonContainer .btn {
  border: 1px solid #d8e1eb;
  background: #f7f9fc;
  color: #243650;
}

.goal-payment-footer p {
  margin: 0;
}

@media (max-width: 380px) {
  .goal-payment-shell {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  .goal-payment-header__logo {
    width: 130px;
  }

  .goal-detail-list__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .goal-detail-list dd {
    text-align: left;
  }

  .goal-admin-quote-card {
    padding: 20px 14px 24px;
  }

  .goal-device-payment-options.container,
  .goal-device-choice-content.container {
    padding-right: 14px;
    padding-left: 14px;
  }

  .goal-device-choice-content > .goal-device-section-heading {
    margin-right: -14px;
    margin-left: -14px;
  }
}

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

/* 報價表單頂端的一句話輸入。
 *
 * 這是 admin 自己在用的頁面，不需要有人告訴他們這個框是幹嘛的——原本上面
 * 掛了一整段「用一句話描述這張報價（AI 會填進下面的表單…）」，讀完那句話
 * 的時間夠他們打完要輸入的內容了（業主 2026-08-12 連續三次點名）。
 * 留一個輸入框、一顆送出鍵，其餘讓它自己說話。 */
.goal-assist {
  margin: 0 0 18px;
}

.goal-assist__box {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  border: 1px solid #d8dee6;
  border-radius: 22px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.goal-assist__box:focus-within {
  border-color: var(--goal-blue);
  box-shadow: 0 0 0 3px rgba(8, 120, 239, .13);
}

/* 邊框由外層的膠囊負責，裡面這個只管文字；不然會出現框中框。 */
.goal-admin-quote-card .goal-assist__box textarea {
  flex: 1;
  min-height: 40px;
  max-height: 132px;
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--goal-text);
  font-size: 16px;
  line-height: 1.5;
  resize: none;
}

.goal-admin-quote-card .goal-assist__box textarea:focus {
  border: 0;
  box-shadow: none;
  outline: none;
}

.goal-assist__box button {
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--goal-blue);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.goal-assist__box button:disabled {
  background: #c8d3e0;
  cursor: default;
}

.goal-assist__status {
  margin: 7px 2px 0;
  color: var(--goal-muted);
  font-size: 13px;
  line-height: 1.55;
}

.goal-assist__status:empty {
  display: none;
}

/* ── 選台/選付款 2026-08-18 改版：設備卡與支付服務列 ─────────────────
   雙 Coin（alive2）與單台頁共用；取代 bootstrap 素鈕。 */
.goal-device-pick {
  display: grid;
  gap: 12px;
  text-align: left;
}

.goal-device-pick__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--goal-border);
  border-radius: 16px;
  background: var(--goal-surface);
  color: var(--goal-text);
  font-size: 17px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.goal-device-pick__btn::after {
  content: '›';
  font-size: 24px;
  font-weight: 700;
  color: var(--goal-muted);
}

.goal-device-pick__btn:active {
  transform: scale(0.985);
}

.goal-provider-list {
  display: grid;
  gap: 10px;
  text-align: left;
}

.goal-provider-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--goal-border);
  border-radius: 16px;
  background: var(--goal-surface);
  color: var(--goal-text);
  text-decoration: none;
  font-size: 22px; /* 支付是主角（業主 2026-08-18） */
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.goal-provider-link:hover {
  color: var(--goal-text);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(16, 24, 40, 0.1);
}

.goal-provider-link:active {
  transform: scale(0.985);
}

.goal-provider-link img {
  height: 40px;
  width: auto;
  border-radius: 3px; /* 廠商 logo 不代他們圓角，一點點就好（業主 2026-08-18） */
}

.goal-provider-link::after {
  content: '›';
  margin-left: auto;
  font-size: 24px;
  color: var(--goal-muted);
}

.goal-device-pick-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid var(--goal-border);
  border-radius: 999px;
  background: var(--goal-surface);
  color: var(--goal-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

/* 回饋活動角標（活動素材備用勿刪；原三份 inline 收斂成這一份） */
.recommendation-label {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #dc3545;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.recommendation-label:hover {
  transform: scale(1.05);
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.recommendation-label .info-icon {
  color: white;
  cursor: pointer;
  animation: goal-reco-pulse 2s infinite;
}

@keyframes goal-reco-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
