/* TeroPress Commerce — interface previews and plugin UI pieces.
   Colours come from the theme's tokens with fallbacks. */
.tp-soon { display: block; font-size: .85rem; color: #4A5160; margin-top: .4rem; }
.tp-card__status { margin-top: .9rem !important; font-size: .875rem; }
.tp-contact-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .35rem; }
.tp-shot { margin: 0; border: 1px solid var(--tp-line, #E3E5E1); border-radius: 14px; overflow: hidden; box-shadow: var(--wp--preset--shadow--screen); background: #fff; }
.tp-shot img { display: block; width: 100%; height: auto; }
.tp-shot figcaption, .tp-ui figcaption { font-size: .8rem; color: #5B6270; padding: .6rem .9rem; border-top: 1px solid var(--tp-line, #E3E5E1); background: var(--tp-surface, #F5F6F4); }

/* Generic frame */
.tp-ui { margin: 0; background: #fff; border: 1px solid #D9DCD6; border-radius: 14px; overflow: hidden; box-shadow: var(--wp--preset--shadow--screen); font-size: .875rem; color: #2B313B; }
.tp-ui__bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid #E3E5E1; background: #FAFBF9; }
.tp-ui__app { font-weight: 600; color: #14171C; }
.tp-ui__crumb { color: #5B6270; }
.tp-ui__crumb::before { content: "/"; margin-right: .75rem; color: #B5BAB2; }
.tp-ui__body { padding: 1rem; overflow-x: auto; }
.tp-ui__h { font-weight: 600; color: #14171C; margin: 0 0 .75rem; }
.tp-ui__table { width: 100%; border-collapse: collapse; min-width: 420px; }
.tp-ui__table th { text-align: left; font-weight: 550; color: #5B6270; font-size: .78rem; padding: .45rem .55rem; border-bottom: 1px solid #E3E5E1; }
.tp-ui__table td { padding: .6rem .55rem; border-bottom: 1px solid #EFF1ED; }
.tp-ui__table del { color: var(--tp-was, #B42318); }
.tp-ui__table--tiers { min-width: 300px; }
.tp-ui__pill { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 550; border: 1px solid #E3E5E1; background: #F5F6F4; color: #4A5160; }
.tp-ui__pill--active { background: #EEE8FF; border-color: #D6C9FF; color: #3F0FB8; }
.tp-ui__pill--scheduled { background: #EEF4FF; border-color: #C9D8F5; color: #24457F; }
.tp-ui__types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.tp-ui__type { position: relative; border: 1px solid #E3E5E1; border-radius: 8px; padding: .7rem; display: grid; gap: .45rem; color: #14171C; font-weight: 500; font-size: .8rem; }
.tp-ui__type svg { width: 20px; height: 20px; color: #5419E6; }
.tp-ui__type.is-selected { border-color: #5419E6; box-shadow: 0 0 0 1px #5419E6; background: #F6F2FF; }
.tp-ui__type.is-pro { background: #FAFBF9; color: #4A5160; }
.tp-ui__type.is-pro svg { color: #8A9099; }
.tp-ui__type em { position: absolute; top: .5rem; right: .5rem; font-style: normal; font-size: .68rem; font-weight: 600; color: #4A5160; border: 1px solid #D9DCD6; border-radius: 4px; padding: 0 .3rem; }
@media (max-width: 520px) { .tp-ui__types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tp-ui__form { display: grid; gap: .8rem; }
.tp-ui__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tp-ui__label { width: 120px; color: #5B6270; font-size: .8rem; }
.tp-ui__input { border: 1px solid #D9DCD6; border-radius: 6px; padding: .35rem .6rem; min-width: 150px; background: #fff; }
.tp-ui__input--short { min-width: 70px; display: inline-block; }
.tp-ui__to { color: #5B6270; }
.tp-ui__chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.tp-ui__chips span { background: #F5F6F4; border: 1px solid #E3E5E1; border-radius: 6px; padding: .2rem .5rem; font-size: .8rem; }

/* Hero tier demo: a storefront card, not an admin screen */
.tp-ui--hero { font-size: 1rem; }
.tp-tierdemo { padding: clamp(1.1rem, 3vw, 1.6rem); display: grid; gap: 1.1rem; }
.tp-tierdemo__product { display: flex; gap: 1rem; align-items: center; }
.tp-tierdemo__thumb { width: 76px; height: 76px; border-radius: 10px; background: #F5F6F4; border: 1px solid #E3E5E1; display: grid; place-items: center; flex: none; }
.tp-tierdemo__thumb svg { width: 52px; height: 52px; }
.tp-tierdemo__name { margin: 0 0 .2rem; font-weight: 600; color: #14171C; }
.tp-tierdemo__price { margin: 0; font-size: 1.6rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tp-tierdemo__price del { color: var(--tp-was, #B42318); font-size: 1rem; margin-right: .35rem; }
.tp-tierdemo__price ins { text-decoration: none; color: #14171C; font-weight: 650; }
.tp-tierdemo__each { font-size: .875rem; color: #5B6270; }
.tp-tierdemo__qty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 550; color: #14171C; }
.tp-stepper { display: inline-flex; align-items: center; border: 1px solid #C9CDC6; border-radius: 8px; overflow: hidden; }
.tp-stepper button { width: 42px; height: 42px; border: 0; background: #fff; font-size: 1.25rem; cursor: pointer; color: #14171C; }
.tp-stepper button:hover { background: #F5F6F4; }
.tp-stepper output { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; border-left: 1px solid #E3E5E1; border-right: 1px solid #E3E5E1; line-height: 42px; }
.tp-tiertable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .925rem; }
.tp-tiertable th { text-align: left; font-weight: 550; color: #5B6270; font-size: .8rem; padding: .4rem .6rem; border-bottom: 1px solid #E3E5E1; }
.tp-tiertable td { padding: .55rem .6rem; border-bottom: 1px solid #EFF1ED; transition: background-color .2s ease; }
.tp-tiertable tr.is-active td { background: #EEE8FF; color: #3F0FB8; font-weight: 600; }
.tp-tiertable tr.is-active td:first-child { box-shadow: inset 3px 0 0 #5419E6; }
.tp-tierdemo__total { margin: 0; font-variant-numeric: tabular-nums; color: #2B313B; }
.tp-tierdemo__save { color: #067647; font-weight: 550; margin-left: .35rem; }
.tp-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.75rem; }
.tp-actions + .tp-soon { margin-top: .6rem; }
.tp-actions--dark .tp-btn { background: #fff; color: #14171C; }
.tp-actions--dark .tp-btn:hover { background: #EEE8FF; }
.tp-actions--dark .tp-btn--ghost { background: transparent !important; color: #fff !important; border-color: #5B616B !important; }
.tp-actions--dark .tp-btn--ghost:hover { border-color: #fff !important; }
.tp-actions--dark .tp-btn[aria-disabled="true"] { background: #3A4049; color: #C6CBC3; }
.tp-cta .tp-soon { color: #C6CBC3; }


/* Real screenshots in a browser frame */
.tp-shot { margin: 0; border: 1px solid #DCD7EC; border-radius: 14px; overflow: hidden; box-shadow: var(--wp--preset--shadow--screen); background: #fff; }
.tp-shot__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F7F6FC; border-bottom: 1px solid #E6E3F0; }
.tp-shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #DCD7EC; display: block; }
.tp-shot__bar span { margin-left: 8px; font-size: .75rem; color: #77738A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-shot img { display: block; width: 100%; height: auto; }
.tp-shot figcaption { font-size: .8rem; color: #5B576E; padding: .6rem .9rem; border-top: 1px solid #E6E3F0; background: #F7F6FC; }
.tp-section--dark .tp-shot { border-color: #2E2A3D; }

/* Tabbed screenshot gallery */
.tp-gallery__tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tp-gallery__tab { font: inherit; font-size: .925rem; font-weight: 560; border: 1px solid #DCD7EC; background: #fff; color: #15121F; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
.tp-gallery__tab:hover { border-color: #5419E6; }
.tp-gallery__tab[aria-selected="true"] { background: #5419E6; border-color: #5419E6; color: #fff; }
.tp-section--dark .tp-gallery__tab { background: transparent; color: #E6E2F3; border-color: #3A3550; }
.tp-section--dark .tp-gallery__tab[aria-selected="true"] { background: #fff; color: #15121F; border-color: #fff; }
.tp-gallery__panel[hidden] { display: none; }
.tp-gallery__note { margin: .9rem 0 0; font-size: .95rem; }
@media (max-width: 600px) {
  .tp-gallery__tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: none; }
  .tp-gallery__tabs::-webkit-scrollbar { display: none; }
  .tp-gallery__tab { white-space: nowrap; }
}


/* =========================================================
   Hero illustrations (tp_hero_art)
   ========================================================= */
.tpa-fig { margin: 0; }
.tpa { position: relative; font-size: 14px; line-height: 1.4; color: #15121F; }
.tpa--home { padding: 0 0 150px 40px; }
.tpa--free { padding: 0 0 120px 0; }
.tpa--pro { padding: 0 0 170px 0; }
.tpa-win { background: #fff; border: 1px solid #E2DDF2; border-radius: 16px; box-shadow: 0 1px 2px rgba(21,18,31,.05), 0 30px 60px -28px rgba(56,20,160,.35); overflow: hidden; position: relative; z-index: 1; }
.tpa-appbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #ECE9F5; }
.tpa-logo { width: 26px; height: 26px; border-radius: 7px; background: #5419E6; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.tpa-appname { font-weight: 650; font-size: 14px; white-space: nowrap; }
.tpa-tabs { display: flex; gap: 14px; margin-left: 14px; font-size: 12.5px; color: #5B576E; }
.tpa-tab { position: relative; padding: 2px 0; }
.tpa-tab.is-active { color: #5419E6; font-weight: 600; }
.tpa-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; background: #5419E6; }
.tpa-body { padding: 18px; background: #FAF9FE; }
.tpa-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tpa-h { font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.tpa-h--sm { font-size: 13.5px; display: block; margin-bottom: 10px; }
.tpa-btn { background: #5419E6; color: #fff; font-weight: 600; font-size: 12px; padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.tpa-ico { width: 32px; height: 32px; border-radius: 8px; background: #EEE8FF; color: #5419E6; display: grid; place-items: center; flex: none; }
.tpa-ico svg { width: 17px; height: 17px; }
.tpa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tpa-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #ECE9F5; border-radius: 10px; padding: 10px 12px; max-width: none; }
.tpa-row__main { display: grid; min-width: 0; flex: 1; }
.tpa-row__main strong { font-size: 13.5px; font-weight: 600; }
.tpa-row__main em { font-style: normal; font-size: 12px; color: #6B6780; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpa-pill { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; border: 1px solid #E2DDF2; background: #F5F4FA; color: #5B576E; flex: none; }
.tpa-pill--active { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.tpa-pill--scheduled { background: #EEF4FF; border-color: #C7D7FE; color: #3538CD; }
.tpa-pill--draft { background: #FFFAEB; border-color: #FEDF89; color: #B54708; }
.tpa-float { position: absolute; z-index: 2; background: #fff; border: 1px solid #E2DDF2; border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(40,20,110,.35); padding: 14px 16px; }
.tpa-float--order { right: -18px; top: 36%; width: 230px; }
.tpa-float dl { margin: 0; display: grid; gap: 6px; font-size: 12.5px; }
.tpa-float dl div { display: flex; justify-content: space-between; gap: 10px; }
.tpa-float dt { color: #5B576E; }
.tpa-float dd { margin: 0; font-variant-numeric: tabular-nums; }
.tpa-disc dt, .tpa-disc dd { color: #5419E6; }
.tpa-total { border-top: 1px solid #ECE9F5; padding-top: 6px; font-weight: 650; }
.tpa-total dt { color: #15121F; }
.tpa-float--tier { left: 0; bottom: 0; width: 300px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.tpa-float--tier .tp-ui--hero { position: static; width: 100%; }
.tpa-float--tier .tp-tierdemo { padding: 14px; gap: 10px; }
.tpa-float--tier .tp-tierdemo__thumb { width: 52px; height: 52px; }
.tpa-float--tier .tp-tierdemo__thumb svg { width: 36px; height: 36px; }
.tpa-float--tier .tp-tierdemo__price { font-size: 1.3rem; }
.tpa-float--tier .tp-tiertable { font-size: 12.5px; }
.tpa-float--tier .tp-tiertable td { padding: 6px 8px; }
.tpa-float--tier .tp-stepper button { width: 34px; height: 34px; }
.tpa-float--tier .tp-stepper output { line-height: 34px; min-width: 36px; }
.tpa-float--tier .tp-tierdemo__total { font-size: 12.5px; }

/* Free: campaign picker */
.tpa-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tpa-chip { font-size: 11.5px; font-weight: 550; padding: 5px 10px; border-radius: 999px; border: 1px solid #E2DDF2; background: #fff; color: #3A3650; }
.tpa-chip.is-on { border-color: #5419E6; color: #5419E6; background: #F4F0FF; }
.tpa-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tpa-type { background: #fff; border: 1px solid #ECE9F5; border-radius: 10px; padding: 10px; display: grid; gap: 6px; align-content: start; }
.tpa-type .tpa-ico { width: 28px; height: 28px; }
.tpa-type strong { font-size: 12.5px; font-weight: 650; line-height: 1.25; }
.tpa-type em { font-style: normal; font-size: 11px; color: #5B576E; background: #F5F4FA; border-radius: 6px; padding: 5px 6px; }
.tpa-type:first-child { border-color: #5419E6; box-shadow: 0 0 0 1px #5419E6; }
.tpa-pro { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; background: #15121F; color: #fff; border-radius: 4px; padding: 1px 4px; vertical-align: 1px; }
.tpa-float--preview { left: -28px; bottom: 0; width: 270px; }
.tpa-prod { display: flex; gap: 12px; align-items: center; }
.tpa-prod__img { width: 64px; height: 64px; border-radius: 10px; background: #F5F4FA; display: grid; place-items: center; flex: none; }
.tpa-prod__img svg { width: 44px; height: 44px; }
.tpa-prod strong { font-size: 13.5px; }
.tpa-price { margin: 2px 0 0; font-size: 18px; font-weight: 700; color: #5419E6; font-variant-numeric: tabular-nums; }
.tpa-price del { color: #8F8AA6; font-size: 13px; font-weight: 500; margin-right: 4px; }
.tpa-price ins { text-decoration: none; }
.tpa-note { font-size: 11.5px; color: #5B576E; }
.tpa-cta { display: block; margin-top: 12px; text-align: center; background: #5419E6; color: #fff; font-weight: 600; font-size: 12.5px; padding: 8px; border-radius: 8px; }
.tpa-float--ready { right: -18px; bottom: 26px; width: 230px; }
.tpa-float--ready ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12px; }
.tpa-float--ready li { position: relative; padding-left: 22px; max-width: none; }
.tpa-float--ready li::before { content: ""; position: absolute; left: 0; top: 1px; width: 15px; height: 15px; border-radius: 50%; background: #5419E6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* Pro: example offers */
.tpa-win--offer { padding: 18px; max-width: 440px; }
.tpa-offer__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tpa-offer__top strong { font-size: 15px; font-weight: 650; }
.tpa-bxgy { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 12px; }
.tpa-slot { border: 1px solid #ECE9F5; border-radius: 10px; padding: 10px 12px; background: #FAF9FE; display: grid; gap: 4px; }
.tpa-slot--get { background: #ECFDF3; border-color: #ABEFC6; }
.tpa-lbl { font-size: 11px; color: #5B576E; font-weight: 600; }
.tpa-item { font-size: 14px; font-weight: 650; }
.tpa-arrow { color: #5419E6; font-weight: 700; font-size: 18px; }
.tpa-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #ECE9F5; padding-top: 10px; margin-top: 4px; font-size: 12.5px; color: #5B576E; }
.tpa-sum strong { color: #067647; font-size: 14px; }
.tpa-float--bundle { right: 0; top: 46%; width: 260px; }
.tpa-bundle { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.tpa-bundle li { display: flex; justify-content: space-between; max-width: none; }
.tpa-float--set { left: 24px; bottom: 0; width: 280px; }
.tpa-float--set .tpa-offer__top { margin-bottom: 8px; }
.tpa-float--set p { margin: 0; font-size: 13px; color: #3A3650; }

@media (max-width: 1100px) {
  .tpa--home { padding-left: 0; }
  .tpa-float--order, .tpa-float--ready { right: -6px; }
  .tpa-float--preview { left: -6px; }
}
@media (max-width: 781px) {
  .tpa { padding: 0 !important; display: grid; gap: 14px; }
  .tpa-float { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; width: auto; max-width: 420px; }
  .tpa-float--order, .tpa-float--ready { display: none; }
  .tpa-float--tier { width: auto; }
  .tpa-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpa-type:nth-child(n+5) { display: none; }
  .tpa-win--offer { max-width: none; }
}
@media (max-width: 420px) {
  .tpa-tabs { display: none; }
  .tpa-row__main em { display: none; }
}

/* Layer spacing: floats overlap the window only at its edge */
.tpa--home { padding-bottom: 240px; }
.tpa-float--order { top: auto; bottom: 150px; }
.tpa--free { padding-bottom: 150px; }
.tpa-float--ready { bottom: 40px; }
@media (max-width: 781px) { .tpa--home, .tpa--free { padding-bottom: 0; } }

/* Pro: staggered stack instead of free-floating layers */
.tpa--pro { padding: 0 !important; display: grid; }
.tpa--pro .tpa-float { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
.tpa--pro .tpa-win--offer { width: 86%; max-width: none; justify-self: start; }
.tpa--pro .tpa-float--bundle { width: 58%; justify-self: end; margin-top: 14px; }
.tpa--pro .tpa-float--set { width: 62%; justify-self: start; margin: -12px 0 0 7%; }
@media (max-width: 781px) {
  .tpa--pro { gap: 14px; }
  .tpa--pro .tpa-win--offer, .tpa--pro .tpa-float--bundle, .tpa--pro .tpa-float--set { width: auto; margin: 0; justify-self: stretch; max-width: none; }
}
