.tt-portal-actions{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.tt-portal-actions button{flex:1;min-width:110px}.tt-portal-form{display:grid;gap:15px;padding:18px}.tt-portal-form label{display:grid;gap:7px;font-size:13px;color:#435e51}.tt-portal-form input,.tt-portal-form select,.tt-portal-form textarea{width:100%;box-sizing:border-box;border:1px solid #d7e1dc;border-radius:8px;background:#fff;min-height:42px;padding:10px;color:#243e32;font:inherit}.tt-portal-form textarea{min-height:90px}.tt-portal-record{padding:16px 0;border-bottom:1px solid #e6ebe8}.tt-portal-record:last-child{border:0}.tt-portal-record h3{font-size:15px;margin:0 0 8px}.tt-portal-record p{font-size:13px;color:#697c72;line-height:1.8;margin:5px 0}.tt-portal-report{white-space:pre-wrap;font-size:13px;line-height:1.8;background:#f3f7f4;padding:13px;border-radius:8px}.tt-portal-note{background:#f0f5f1;color:#5a7062;padding:12px;border-radius:8px;font-size:12px;line-height:1.8}.tt-portal-assets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}.tt-portal-assets b{display:block;font-size:19px;color:#245a43}.tt-portal-assets span{display:block;font-size:11px;margin-top:7px;color:#77877e}.tt-portal-error{color:#ad4d35;min-height:22px;font-size:13px;line-height:1.7}.tt-portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}

/* 宠主商城 */
.tt-shop-banners{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,1fr);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:12px 0}
.tt-shop-banner{background:#e6efeb;color:#173e38;border:1px solid #c6d9d0;border-radius:14px;text-align:left;overflow:hidden;padding:12px;scroll-snap-align:start}
.tt-shop-banner img{width:100%;max-height:110px;display:block;object-fit:cover;border-radius:8px;margin-bottom:8px}
.tt-shop-products>[data-shop-category]{min-width:0}
.tt-shop-main { margin: 0 16px; }
.tt-shop-banners{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,1fr);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:12px 0}
.tt-shop-banner{background:#e6efeb;color:#173e38;border:1px solid #c6d9d0;border-radius:14px;text-align:left;overflow:hidden;padding:12px;scroll-snap-align:start}
.tt-shop-banner img{width:100%;max-height:110px;display:block;object-fit:cover;border-radius:8px;margin-bottom:8px}
.tt-shop-products>[data-shop-category]{min-width:0}
.tt-shop-main .tt-shop-section { margin: 14px 0; }
.tt-shop-hero {
  --shop-bg: #deeee3;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 16px;
  margin: 14px 0;
  background: var(--shop-bg);
  color: #163e31;
}
.tt-shop-theme-sand { --shop-bg: #f3e8d8; }
.tt-shop-theme-mist { --shop-bg: #e2edf4; }
.tt-shop-hero > div { display: flex; flex-direction: column; justify-content: center; padding: clamp(14px, 3vw, 28px); }
.tt-shop-hero img { width: 100%; height: 100%; min-height: 140px; object-fit: cover; object-position: 52% center; }
.tt-shop-hero h1 { margin: 0; font-size: clamp(20px, 4vw, 35px); line-height: 1.22; }
.tt-shop-hero p { margin: 8px 0 2px; font-size: 13px; line-height: 1.5; color: #36574c; }
.tt-shop-scroll { display: flex; align-items: center; gap: 5px; min-height: 44px; padding: 0; background: none; border: 0; font-size: 13px; color: #245c49; text-align: left; }
.tt-shop-scroll .mp-icon { width: 15px; height: 15px; }
.tt-shop-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tt-shop-links button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 65px; padding: 7px 4px; background: #fff; color: #315a4a; border: 1px solid #d4e5dc;
  border-radius: 10px; font-size: 13px; font-weight: 600;
}
.tt-shop-links .mp-icon { width: 19px; height: 19px; }
.tt-shop-links button:hover { background: #eff8f2; }
.tt-shop-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.tt-shop-controls label, .tt-shop-address label {
  display: grid; gap: 5px; min-width: 0; color: #32554a; font-size: 13px; font-weight: 600;
}
.tt-shop-controls select, .tt-shop-address select {
  width: 100%; min-width: 0; max-width: 100%; min-height: 44px; box-sizing: border-box; padding: 6px 8px;
  border: 1px solid #c9dfd4; border-radius: 8px; background: #f9fcfa; font: inherit; color: #1c4838;
}
.tt-shop-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tt-shop-item {
  display: flex; flex-direction: column; justify-content: space-between; min-width: 0;
  padding: 10px; border: 1px solid #deebe3; border-radius: 10px; background: #fcfefd;
}
.tt-shop-item h3 { font-size: 14px; line-height: 1.4; }
.tt-shop-item p, .tt-shop-muted { font-size: 13px; line-height: 1.6; color: #50695e; margin: 4px 0; }
.tt-shop-item-buy { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }
.tt-shop-item-buy > strong { font-size: 16px; color: #255d48; font-variant-numeric: tabular-nums; }
.tt-shop-quantity {
  display: grid; grid-template-columns: minmax(32px, 1fr) minmax(28px, 1fr) minmax(32px, 1fr);
  max-width: 132px; height: 40px; border: 1px solid #d1e5d9; border-radius: 8px; background: #f4faf6;
}
.tt-shop-quantity button { border: 0; background: transparent; font-size: 20px; color: #245e49; }
.tt-shop-quantity input { min-width: 0; width: 100%; border: 0; background: transparent; text-align: center; color: #214d3b; font: inherit; appearance: textfield; }
.tt-shop-quantity input::-webkit-inner-spin-button, .tt-shop-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.tt-shop-error { margin: 5px 0 0; color: #a13932; font-size: 13px; }
.tt-shop-error:empty { display: none; }
.tt-shop-payment > .btn { width: 100%; margin-top: 14px; }
.tt-shop-total { display: grid; gap: 3px; text-align: right; color: #214d3b; font-variant-numeric: tabular-nums; }
.tt-shop-total small { color: #50695e; font-size: 12px; }
.tt-shop-total strong { font-size: 24px; }
.tt-shop-address { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.tt-shop-address .btn, .tt-shop-order-actions .btn { width: auto; }
.tt-shop-address-summary { margin-bottom: 10px; }
.tt-shop-default { display: flex; align-items: center; gap: 7px; padding: 7px 0; }
.tt-shop-order { padding: 13px 0; border-bottom: 1px solid #e0ebe5; }
.tt-shop-order:last-child { border-bottom: 0; }
.tt-shop-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; color: #224638; }
.tt-shop-order-head small { display: block; color: #50695e; font-size: 12px; }
.tt-shop-order p { color: #50695e; font-size: 13px; line-height: 1.55; margin: 5px 0; }
.tt-shop-order-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tt-shop-order-actions .btn { min-height: 40px; padding: 6px 12px; }
#tt-shop-orders { scroll-margin-top: 12px; }
@media (min-width: 700px) {
  .tt-shop-banners{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,1fr);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:12px 0}
.tt-shop-banner{background:#e6efeb;color:#173e38;border:1px solid #c6d9d0;border-radius:14px;text-align:left;overflow:hidden;padding:12px;scroll-snap-align:start}
.tt-shop-banner img{width:100%;max-height:110px;display:block;object-fit:cover;border-radius:8px;margin-bottom:8px}
.tt-shop-products>[data-shop-category]{min-width:0}
.tt-shop-main { margin: 0; }
  .tt-shop-hero img { max-height: 240px; }
  .tt-shop-links { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tt-shop-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 365px) {
  .tt-shop-banners{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,1fr);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:12px 0}
.tt-shop-banner{background:#e6efeb;color:#173e38;border:1px solid #c6d9d0;border-radius:14px;text-align:left;overflow:hidden;padding:12px;scroll-snap-align:start}
.tt-shop-banner img{width:100%;max-height:110px;display:block;object-fit:cover;border-radius:8px;margin-bottom:8px}
.tt-shop-products>[data-shop-category]{min-width:0}
.tt-shop-main { margin-inline: 10px; }
  .tt-shop-banners{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,1fr);gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:12px 0}
.tt-shop-banner{background:#e6efeb;color:#173e38;border:1px solid #c6d9d0;border-radius:14px;text-align:left;overflow:hidden;padding:12px;scroll-snap-align:start}
.tt-shop-banner img{width:100%;max-height:110px;display:block;object-fit:cover;border-radius:8px;margin-bottom:8px}
.tt-shop-products>[data-shop-category]{min-width:0}
.tt-shop-main .tt-shop-section { padding-inline: 10px; }
  .tt-shop-item { padding-inline: 7px; }
}
