/* Ступени цен: строка-кнопка в форме покупки + попап с таблицей (inc/wc-tiers-ui.php) */
.pb-tierbox { margin: 4px 0 8px; }
.pb-tierbox__open {
	width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border: 0; border-radius: 18px;
	background: var(--pb-blue-pale, #EEF9FC); color: var(--pb-ink); font: inherit; text-align: left; cursor: pointer;
	transition: background .15s, box-shadow .15s;
}
.pb-tierbox__open:hover { background: #E3F4FA; box-shadow: inset 0 0 0 1px rgba(0, 168, 208, .35); }
.pb-tierbox__open:focus-visible { outline: 2px solid var(--pb-blue); outline-offset: 2px; }
.pb-tierbox__ic {
	flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--pb-blue-ink);
	display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.pb-tierbox__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 14px; line-height: 1.35; }
.pb-tierbox__txt b { font-weight: 600; font-size: 15px; }
.pb-tierbox__txt span { color: var(--pb-text2); }
.pb-tierbox__more { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--pb-blue-ink); white-space: nowrap; }

/* Попап */
.pb-tiermodal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pb-tiermodal[hidden] { display: none; }
.pb-tiermodal__back { position: absolute; inset: 0; background: rgba(14, 24, 38, .45); opacity: 0; transition: opacity .18s; }
.pb-tiermodal__box {
	position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
	background: #fff; border-radius: 28px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 14px;
	box-shadow: 0 30px 80px rgba(14, 24, 38, .3); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .18s, transform .22s cubic-bezier(.2, .8, .2, 1);
}
.pb-tiermodal.is-open .pb-tiermodal__back { opacity: 1; }
.pb-tiermodal.is-open .pb-tiermodal__box { opacity: 1; transform: none; }
.pb-tiermodal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pb-tiermodal__title { margin: 4px 0 0; font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.pb-tiermodal__x {
	flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--pb-bg); color: var(--pb-ink);
	display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s;
}
.pb-tiermodal__x:hover { background: var(--pb-blue); color: #fff; }
.pb-tiermodal .pb-tiers { margin: 0; }
.pb-tiermodal .pb-tiers__title { display: none; } /* заголовок уже в шапке попапа */
.pb-tiermodal__note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--pb-muted); }
html.pb-tier-lock { overflow: hidden; }
@media (max-width: 700px) {
	.pb-tiermodal { align-items: flex-end; padding: 0; }
	.pb-tiermodal__box { width: 100%; border-radius: 28px 28px 0 0; max-height: 85vh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateY(40px); }
	.pb-tierbox__more { font-size: 0; } /* на телефоне только стрелка */
	.pb-tierbox__more svg { width: 18px; height: 18px; }
}
