/* Edge notes: original proportions at 1.2x, anchored to the bottom-right. */
.ecv-site-actions, .ecv-site-actions * { box-sizing: border-box; }
.ecv-site-actions {
  position: fixed;
  right: 0;
  left: auto;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: flex;
  flex-direction: column;
  width: 66px;
  height: 280px;
  margin: 0;
  padding: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  user-select: none;
  pointer-events: none;
  transform: scale(1.2);
  transform-origin: right bottom;
  /* Extra room on the inside keeps shadows visible while clipping the tucked edge. */
  overflow: hidden;
}
.ecv-note-slot { position: relative; width: 66px; height: 140px; flex: 0 0 140px; pointer-events: none; }
.ecv-site-actions .ecv-site-action {
  position: absolute;
  right: -6px;
  left: auto;
  top: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 40px;
  height: 122px;
  margin: 0;
  padding: 12px 0 10px;
  border: 1px solid #d7ddce;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #eae8d9;
  color: #5e7060;
  box-shadow: -1px 3px 8px #17372c0a;
  text-decoration: none;
  pointer-events: auto;
  transition: width 220ms cubic-bezier(.2,.75,.25,1), height 220ms cubic-bezier(.2,.75,.25,1), right 220ms cubic-bezier(.2,.75,.25,1), top 220ms cubic-bezier(.2,.75,.25,1), padding-top 220ms, background-color 180ms, color 180ms, box-shadow 180ms;
}
.ecv-site-action-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; line-height: 0; }
.ecv-site-action-icon svg { display: block; width: 20px; height: 20px; }
.ecv-site-action-label { flex: 0 0 auto; writing-mode: vertical-rl; text-orientation: upright; font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: 3px; }
@media (hover: hover) and (pointer: fine) {
  .ecv-site-actions .ecv-site-action:hover { right: 0; top: 5px; width: 54px; height: 130px; padding-top: 16px; color: #f7f4dd; background: var(--forest, #006852); border-color: var(--forest, #006852); box-shadow: -2px 5px 12px #17372c18; }
}
.ecv-site-actions .ecv-site-action:focus-visible { right: 0; top: 5px; width: 54px; height: 130px; padding-top: 16px; color: #f7f4dd; background: var(--forest, #006852); border-color: var(--forest, #006852); box-shadow: -2px 5px 12px #17372c18; outline: 2px solid #7b9b79; outline-offset: 2px; }
@media (pointer: coarse) {
  .ecv-site-actions .ecv-site-action::before { content: ""; position: absolute; inset: 0 0 0 -10px; }
  .ecv-site-actions .ecv-site-action:active { right: 0; top: 5px; width: 54px; height: 130px; padding-top: 16px; color: #f7f4dd; background: var(--forest, #006852); border-color: var(--forest, #006852); }
}
@media (max-height: 520px) { .ecv-site-actions { bottom: max(12px, env(safe-area-inset-bottom, 0px)); } }
@media (max-height: 360px) {
  .ecv-site-actions { height: 260px; bottom: max(4px, env(safe-area-inset-bottom, 0px)); }
  .ecv-note-slot { height: 130px; flex-basis: 130px; }
  .ecv-site-actions .ecv-site-action { top: 4px; }
  .ecv-site-actions .ecv-site-action:is(:hover, :focus-visible, :active) { top: 0; }
  .ecv-site-actions .ecv-site-action:focus-visible { outline-offset: -3px; }
}
@media (prefers-reduced-motion: reduce) { .ecv-site-actions .ecv-site-action { transition: none; } }
@media print { .ecv-site-actions { display: none; } }

/* Customer service interaction uses the website brand yellow. */
@media (hover: hover) and (pointer: fine) {
  .ecv-site-actions .ecv-site-action-service:hover { background: #f2cf24; border-color: #f2cf24; color: var(--forest-deep, #004754); }
}
.ecv-site-actions .ecv-site-action-service:focus-visible { background: #f2cf24; border-color: #f2cf24; color: var(--forest-deep, #004754); }
@media (pointer: coarse) {
  .ecv-site-actions .ecv-site-action-service:active { background: #f2cf24; border-color: #f2cf24; color: var(--forest-deep, #004754); }
}

.ecv-qr-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 420px;
  margin-top: 26px;
}
.ecv-qr-pair .ecv-qr-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 14px 10px 13px;
  border: 1px solid #d8e1d9;
  border-radius: 8px;
  background: #fffdf8;
  text-align: center;
  color: #123f3a;
}
.ecv-qr-card > a { display: block; width: 100%; max-width: 156px; line-height: 0; background: white; }
.ecv-qr-pair .ecv-qr-card img {
  display: block;
  width: 100%;
  max-width: 156px;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0;
  padding: 0;
  background: #fff;
}
.ecv-qr-card figcaption { display: grid; gap: 5px; width: 100%; padding-top: 12px; }
.ecv-qr-card figcaption strong { color: #123f3a; font: 600 16px/1.5 "Microsoft YaHei", "PingFang SC", sans-serif; }
.ecv-qr-card figcaption span { color: #63776b; font: 400 11px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif; }
.contact-cards > .ecv-contact-pair { min-width: 0; padding: 18px; }
.ecv-contact-pair .ecv-qr-pair { margin: 0; }
.detail-card > .ecv-qr-pair { gap: 8px; }
.detail-card .ecv-qr-card { padding: 9px 6px; }
.detail-card .ecv-qr-card figcaption strong { font-size: 14px; }
.detail-card .ecv-qr-card figcaption span { font-size: 10px; }

@media(max-width:560px){.ecv-qr-pair{gap:10px}.ecv-qr-pair .ecv-qr-card{padding:12px 8px}.contact-cards>.ecv-contact-pair{padding:12px}.ecv-qr-card figcaption strong{font-size:15px}.ecv-qr-card figcaption span{font-size:10px}}

