/* Otterly — front-end visual editor.
   Every rule is scoped to body.otterly-editing, so ordinary customers who open
   index.html, product.html or checkout.html never see any editor chrome. */

html.otterly-editing {
  --ve-bar-h: 58px;
}

body.otterly-editing {
  padding-top: var(--ve-bar-h, 58px);
}

body.otterly-editing .site-header {
  top: var(--ve-bar-h, 58px);
}

/* Toolbar ---------------------------------------------------------------- */

#otterly-ve-root {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 260;
  font-family: var(--font-body);
}

.ve-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(251, 247, 240, 0.18);
  background: linear-gradient(105deg, var(--teal-deep), var(--teal-dark) 62%, #3a7573);
  color: var(--bg);
  box-shadow: 0 10px 28px rgba(38, 50, 50, 0.2);
  font-size: 12px;
}

.ve-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-right: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ve-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbf7f0;
  box-shadow: 0 0 0 3px rgba(248, 243, 231, 0.2);
}

.ve-lang {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(251, 247, 240, 0.26);
  border-radius: 999px;
  background: rgba(251, 247, 240, 0.08);
}

.ve-lang-btn {
  min-width: 30px;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(251, 247, 240, 0.82);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.ve-lang-btn:hover {
  background: rgba(251, 247, 240, 0.14);
}

.ve-lang-btn.is-active {
  background: var(--bg);
  color: var(--teal-deep);
}

.ve-lang-btn:focus-visible {
  outline: 2px solid #fbf7f0;
  outline-offset: 1px;
}

.ve-dirty {
  padding: 3px 8px;
  border-radius: 999px;
  background: #7d3d2b;
  color: #ffe9dd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.ve-bar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
}

.ve-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 29px;
  padding: 5px 11px;
  border: 1px solid rgba(251, 247, 240, 0.32);
  border-radius: 999px;
  background: rgba(251, 247, 240, 0.08);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.ve-btn:hover {
  background: rgba(251, 247, 240, 0.18);
}

.ve-btn:focus-visible {
  outline: 2px solid #fbf7f0;
  outline-offset: 1px;
}

.ve-btn-primary {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--teal-deep);
  font-weight: 800;
}

.ve-btn-primary:hover {
  background: #fffaef;
}

.ve-btn-light {
  border-color: #fbf7f0;
  background: #fbf7f0;
  color: #2f5f5d;
  font-weight: 800;
}

.ve-btn-light:hover {
  background: #ffffff;
}

.ve-btn-small {
  min-height: 24px;
  padding: 3px 9px;
  font-size: 10.5px;
}

/* Hover / selection affordances ----------------------------------------- */

body.otterly-editing [data-i18n]:hover,
body.otterly-editing [data-ve-i18n]:hover,
body.otterly-editing [data-i18n-aria-label]:hover,
body.otterly-editing [data-i18n-title]:hover,
body.otterly-editing [data-i18n-alt]:hover,
body.otterly-editing [data-ve-payment]:hover,
body.otterly-editing [data-contact-email]:hover,
body.otterly-editing [data-contact-whatsapp]:hover,
body.otterly-editing .wordmark:hover {
  outline: 2px dashed rgba(74, 141, 138, 0.58);
  outline-offset: 2px;
  border-radius: 3px;
  cursor: text;
}

body.otterly-editing [data-product-card]:hover,
body.otterly-editing .related-card:hover,
body.otterly-editing .feature-banner:hover,
body.otterly-editing .monthly-row:hover,
body.otterly-editing .wordmark img:hover {
  outline: 2px solid rgba(74, 141, 138, 0.5);
  outline-offset: 3px;
  cursor: pointer;
}

body.otterly-editing .ve-section-host {
  position: relative;
}

body.otterly-editing .ve-section-host:hover {
  outline: 2px dashed rgba(74, 141, 138, 0.24);
  outline-offset: 5px;
  border-radius: 8px;
}

body.otterly-editing [data-section].ve-section-off,
body.otterly-editing .home-hero.ve-section-off {
  position: relative;
  opacity: 0.34;
  filter: grayscale(0.45);
  outline: 2px dashed rgba(169, 79, 56, 0.55) !important;
  outline-offset: 4px;
}

body.otterly-editing .ve-section-off .ve-section-off {
  opacity: 1;
}

body.otterly-editing .ve-section-host.ve-section-off::after {
  content: "已隱藏 · 可用「區塊」開啟";
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 61;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--warm);
  color: #fff7f0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.ve-section-tag {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 62;
  padding: 3px 9px;
  border: 1px solid rgba(74, 141, 138, 0.38);
  border-radius: 999px;
  background: rgba(251, 248, 240, 0.94);
  color: var(--teal-deep);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(46, 40, 34, 0.12);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.14s ease;
}

.ve-section-host:hover > .ve-section-tag,
.ve-section-host:focus-within > .ve-section-tag,
.ve-section-host.ve-section-off > .ve-section-tag {
  opacity: 1;
  pointer-events: auto;
}

.ve-section-tag:hover {
  background: var(--bg);
  border-color: var(--teal);
}

/* Editor panel ----------------------------------------------------------- */

.ve-panel {
  position: fixed;
  top: calc(var(--ve-bar-h, 58px) + 14px);
  right: 16px;
  z-index: 270;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - var(--ve-bar-h, 58px) - 28px);
  max-height: calc(100dvh - var(--ve-bar-h, 58px) - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(45, 32, 22, 0.24);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.55;
}

.ve-panel-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 240, 0.97);
  backdrop-filter: blur(8px);
}

.ve-kicker {
  margin: 0 0 2px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ve-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.ve-panel-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  word-break: break-word;
}

.ve-panel-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.ve-panel-close:hover {
  background: var(--warm-pale);
  color: var(--warm);
}

.ve-panel-body {
  padding: 12px 14px 14px;
}

.ve-subhead {
  margin: 16px 0 7px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ve-subhead:first-child {
  margin-top: 0;
}

.ve-note {
  margin: 0 0 11px;
  padding: 8px 10px;
  border-left: 3px solid rgba(74, 141, 138, 0.35);
  border-radius: 0 8px 8px 0;
  background: rgba(74, 141, 138, 0.055);
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.ve-note--small {
  margin-top: 9px;
  font-size: 10px;
}

.ve-lang-fields {
  display: grid;
  gap: 9px;
}

.ve-field {
  display: block;
}

.ve-field-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.ve-field-label b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 17px;
  margin-right: 3px;
  padding: 0 4px;
  border-radius: 5px;
  background: var(--teal-wash);
  color: var(--teal-dark);
  font-size: 9.5px;
}

.ve-input {
  width: 100%;
  min-height: 33px;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
  resize: vertical;
}

.ve-input:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(74, 141, 138, 0.22);
  outline-offset: 0;
}

textarea.ve-input {
  min-height: 58px;
}

.ve-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.ve-price-field {
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.7);
}

.ve-price-field > .ve-field-label {
  margin: 0;
  color: var(--teal-dark);
  font-weight: 700;
}

.ve-mini-field {
  display: block;
}

.ve-mini-field span {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 9px;
}

.ve-mini-field .ve-input {
  min-height: 29px;
  padding: 4px 6px;
  font-size: 11.5px;
}

.ve-image-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ve-image-preview {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-deep);
}

.ve-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ve-image-preview--logo {
  width: 92px;
  height: 62px;
  background: var(--bg);
}

.ve-image-fields {
  flex: 1 1 auto;
  min-width: 0;
}

.ve-file-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.ve-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px dashed rgba(74, 141, 138, 0.55);
  border-radius: 9px;
  background: rgba(74, 141, 138, 0.05);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ve-file-btn:hover {
  background: rgba(74, 141, 138, 0.12);
}

.ve-file-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ve-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 6px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.65);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ve-check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
}

.ve-shop-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 7px;
}

.ve-shop-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(74, 141, 138, 0.28);
  border-radius: 999px;
  background: var(--teal-wash);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ve-shop-cat input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--teal);
}

.ve-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ve-panel-actions--split {
  justify-content: flex-start;
}

.ve-spacer {
  flex: 1 1 auto;
}

.ve-panel .ve-btn {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  color: var(--ink-soft);
}

.ve-panel .ve-btn:hover {
  background: var(--bg-deep);
}

.ve-panel .ve-btn-primary {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--bg);
}

.ve-panel .ve-btn-primary:hover {
  background: var(--teal-dark);
}

.ve-panel .ve-btn-danger {
  border-color: rgba(157, 62, 44, 0.4);
  background: var(--warm-pale);
  color: var(--error);
}

.ve-panel .ve-btn-danger:hover {
  background: #f1d4c8;
}

/* Sections list ---------------------------------------------------------- */

.ve-sections-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(74, 141, 138, 0.18);
  border-radius: 10px;
  background: rgba(74, 141, 138, 0.05);
  color: var(--ink-soft);
  font-size: 11px;
}

.ve-sections-summary b {
  color: var(--teal-dark);
}

.ve-group {
  margin-top: 13px;
}

.ve-group h3 {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ve-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 9px;
}

.ve-section-row + .ve-section-row {
  margin-top: 2px;
}

.ve-section-row:hover {
  background: rgba(74, 141, 138, 0.055);
}

.ve-section-row.is-off {
  opacity: 0.58;
}

.ve-section-row.is-focused {
  border-color: rgba(74, 141, 138, 0.45);
  background: rgba(74, 141, 138, 0.1);
}

.ve-block-row {
  margin-top: 6px;
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.7);
}

.ve-subsection-row {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px dashed rgba(74, 141, 138, 0.28);
}

.ve-section-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ve-section-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.ve-section-id {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8.5px;
  opacity: 0.75;
}

.ve-block-rank {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--bg);
  font-size: 9px;
  font-weight: 800;
}

.ve-section-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.ve-icon-btn {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.ve-icon-btn:hover:not(:disabled) {
  border-color: var(--teal);
  background: var(--teal-wash);
}

.ve-icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.ve-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  cursor: pointer;
}

.ve-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ve-switch-track {
  position: relative;
  display: block;
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: rgba(46, 40, 34, 0.22);
  transition: background 0.16s ease;
}

.ve-switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(46, 40, 34, 0.3);
  transition: transform 0.16s ease;
}

.ve-switch input:checked + .ve-switch-track {
  background: var(--teal);
}

.ve-switch input:checked + .ve-switch-track::after {
  transform: translateX(15px);
}

.ve-switch input:focus-visible + .ve-switch-track {
  outline: 2px solid rgba(74, 141, 138, 0.55);
  outline-offset: 2px;
}

/* Toast ------------------------------------------------------------------ */

.ve-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 280;
  max-width: min(440px, calc(100vw - 32px));
  padding: 9px 16px;
  border: 1px solid rgba(251, 247, 240, 0.22);
  border-radius: 999px;
  background: var(--teal-deep);
  color: var(--bg);
  box-shadow: 0 16px 40px rgba(38, 50, 50, 0.28);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ve-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 760px) {
  .ve-toolbar {
    padding: 7px 10px;
    gap: 6px;
  }

  .ve-bar-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .ve-bar-actions::-webkit-scrollbar {
    display: none;
  }

  .ve-panel {
    top: calc(var(--ve-bar-h, 58px) + 8px);
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - var(--ve-bar-h, 58px) - 16px);
    max-height: calc(100dvh - var(--ve-bar-h, 58px) - 16px);
  }

  .ve-price-grid {
    grid-template-columns: 1fr;
  }

  .ve-section-id {
    display: none;
  }
}

/* Product plan options ---------------------------------------------------- */

.ve-option-list {
  display: grid;
  gap: 8px;
}

.ve-option {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.7);
  overflow: hidden;
}

.ve-option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  background: rgba(74, 141, 138, 0.05);
}

.ve-option-title-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.ve-option-title {
  color: var(--teal-dark);
  font-size: 11.5px;
  font-weight: 800;
}

.ve-option-id {
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-deep);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8.5px;
  font-weight: 600;
}

.ve-option-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.ve-btn.ve-btn-tiny {
  min-height: 25px;
  padding: 3px 7px;
  font-size: 10px;
  line-height: 1.2;
}

.ve-option-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 9px 0;
}

.ve-option-labels .ve-field-label {
  margin-bottom: 2px;
}

.ve-option-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 7px 9px 9px;
}

.ve-option-soldout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 9px 9px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.7);
}

.ve-option-soldout > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.ve-option-tags {
  display: grid;
  gap: 6px;
  padding: 0 9px 10px;
}

.ve-option-tags-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ve-option-tags-head span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

.ve-option-tags .ve-note {
  margin: 0;
}

.ve-tag-list {
  display: grid;
  gap: 6px;
}

.ve-tag {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(246, 240, 230, 0.65);
  overflow: hidden;
}

.ve-tag-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 7px;
  border-bottom: 1px solid var(--line);
}

.ve-tag-style {
  min-width: 138px;
}

.ve-tag-style .ve-input {
  min-height: 28px;
  padding: 3px 6px;
  font-size: 10.5px;
}

.ve-tag-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 7px 7px;
}

.ve-tag-add-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ve-btn.ve-btn-tiny.ve-tag-add {
  border-color: var(--teal);
  background: var(--teal-wash);
  color: var(--teal-deep);
  font-weight: 700;
}

.ve-tag-empty {
  margin: 0;
  padding: 6px 8px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 9.5px;
}

.ve-btn.ve-btn-add {
  width: 100%;
  margin-top: 7px;
  border: 1px dashed var(--teal);
  background: var(--teal-wash);
  color: var(--teal-deep);
  font-weight: 800;
}

.ve-btn.ve-btn-add:hover {
  background: var(--teal-pale);
}

@media (max-width: 640px) {
  .ve-option-labels,
  .ve-option-prices,
  .ve-tag-labels {
    grid-template-columns: 1fr;
  }

  .ve-tag-style {
    width: 100%;
  }
}

/* Page-level blocks on account / my orders / lookup / checkout ------------ */

body.otterly-editing [data-page-block] {
  position: relative;
}

body.otterly-editing [data-page-block].ve-section-off {
  position: relative;
  opacity: 0.34;
  filter: grayscale(0.45);
  outline: 2px dashed rgba(169, 79, 56, 0.55) !important;
  outline-offset: 4px;
}

/* A section the owner deleted from the page-block list stays visible while
   editing so it can be found, understood and restored. Customers never see
   this because it only applies with the editor switched on. */
body.otterly-editing [data-page-block].page-block-removed,
body.otterly-editing [data-section].page-block-removed,
body.otterly-editing .home-hero.page-block-removed {
  display: block !important;
  opacity: 0.34;
  filter: grayscale(0.45);
  outline: 2px dashed rgba(169, 79, 56, 0.55) !important;
  outline-offset: 4px;
}

body.otterly-editing .ve-section-host.ve-section-off::after {
  content: "已隱藏 · 可在「區塊」開啟或還原";
}

.ve-block-type {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ve-icon-btn--danger {
  color: #a94f38;
}

.ve-icon-btn--danger:hover {
  border-color: rgba(169, 79, 56, 0.45);
  background: #f6e3da;
}

.ve-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ve-page-link {
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
}

.ve-page-link:hover {
  border-color: rgba(74, 141, 138, 0.45);
  color: var(--teal-dark);
}

.ve-page-link.is-current {
  border-color: rgba(74, 141, 138, 0.5);
  background: rgba(74, 141, 138, 0.12);
  color: var(--teal-dark);
}

.ve-add-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
