/* Advanced Tiered Pricing — frontend. Lightweight, theme-neutral, scoped under .atp-box */
.atp-box{
	--atp-accent:#087DEB; --atp-accent-strong:#0064D9; --atp-cyan:#00BFEF;
	--atp-text:#172B4D; --atp-muted:#64748B; --atp-border:#DCE8F5; --atp-bg:#FFFFFF; --atp-soft:#F4F8FC;
	box-sizing:border-box; margin:0 0 1.25em; padding:14px 16px; color:var(--atp-text);
	background:var(--atp-bg); border:1px solid var(--atp-border); border-radius:14px;
	box-shadow:0 4px 18px rgba(8,125,235,.07); font-size:.95em; line-height:1.5; max-width:100%;
}
.atp-box *{box-sizing:border-box}
.atp-title{margin:0 0 10px; font-weight:700; display:flex; align-items:center; gap:8px; color:var(--atp-text)}
.atp-tip{position:relative; display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%;
	font-size:11px; font-weight:700; color:#fff; background:linear-gradient(160deg,var(--atp-accent-strong),var(--atp-accent)); cursor:help}
.atp-tip::after{content:attr(data-tip); position:absolute; left:50%; bottom:calc(100% + 8px); transform:translateX(-50%); width:max-content; max-width:240px;
	padding:6px 10px; border-radius:10px; font-weight:400; font-size:12px; line-height:1.4; color:var(--atp-text); background:#fff;
	border:1px solid var(--atp-border); box-shadow:0 8px 24px rgba(23,43,77,.15); opacity:0; pointer-events:none; transition:opacity .15s; z-index:5}
.atp-tip:hover::after,.atp-tip:focus::after{opacity:1}
.atp-scroll{overflow-x:auto}
.atp-table{width:100%; border-collapse:separate; border-spacing:0; margin:0; border:0}
.atp-table th,.atp-table td{padding:9px 12px; text-align:left; border:0; border-bottom:1px solid var(--atp-border); background:transparent; vertical-align:middle}
.atp-table thead th{font-size:.75em; text-transform:uppercase; letter-spacing:.06em; color:var(--atp-muted); font-weight:700}
.atp-table tbody tr:last-child td,.atp-table tbody tr:last-child th{border-bottom:0}
.atp-compact .atp-table th,.atp-compact .atp-table td{padding:5px 8px}
.atp-row{transition:background .15s, box-shadow .15s}
.atp-clickable .atp-row{cursor:pointer}
.atp-clickable .atp-row:hover{background:var(--atp-soft)}
.atp-row.is-active,.atp-cell.is-active{background:linear-gradient(90deg,rgba(8,125,235,.12),rgba(0,191,239,.10)); font-weight:600}
.atp-row:focus-visible,.atp-dropdown:focus-visible{outline:2px solid var(--atp-cyan); outline-offset:2px}
.atp-badge{display:inline-block; padding:1px 9px; border-radius:999px; font-size:.78em; font-weight:700; color:var(--atp-accent-strong);
	background:rgba(0,191,239,.14); border:1px solid rgba(0,191,239,.4)}
.atp-tag{display:inline-block; margin-left:6px; padding:1px 8px; border-radius:999px; font-size:.72em; font-weight:700; color:#fff;
	background:linear-gradient(160deg,var(--atp-accent-strong),var(--atp-accent))}
.atp-h th[scope=row]{font-size:.75em; text-transform:uppercase; letter-spacing:.06em; color:var(--atp-muted); white-space:nowrap}
.atp-h td{text-align:center}
/* blocks */
.atp-blocks{display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px}
.atp-blocks .atp-row{display:flex; flex-direction:column; gap:4px; align-items:flex-start; padding:10px 12px; border-radius:12px; border:1px solid var(--atp-border); background:var(--atp-soft)}
.atp-blocks .atp-row.is-active{border-color:var(--atp-accent); box-shadow:0 0 0 2px rgba(8,125,235,.18)}
.atp-b-qty{font-size:.8em; color:var(--atp-muted); font-weight:600}
.atp-b-price{font-weight:700; font-size:1.05em}
.atp-b-price small{font-weight:400; color:var(--atp-muted); margin-left:3px}
/* plain */
.atp-plain{list-style:none; margin:0; padding:0}
.atp-plain li{padding:6px 8px; border-radius:8px; margin:0}
.atp-p-qty{font-weight:700}
.atp-p-unit{color:var(--atp-muted)}
/* dropdown */
.atp-dropdown{width:100%; max-width:100%; min-height:38px; padding:6px 10px; border:1px solid var(--atp-border); border-radius:10px; background:#fff; color:var(--atp-text)}
.atp-notes{margin:10px 0 0; font-size:.82em; color:var(--atp-muted)}
/* summary: the one selectively "glass" element */
.atp-summary{margin-top:12px; padding:10px 14px; border-radius:12px; display:flex; flex-wrap:wrap; gap:6px 24px; align-items:baseline;
	background:linear-gradient(135deg,rgba(8,125,235,.10),rgba(0,191,239,.12)); border:1px solid rgba(8,125,235,.25);
	-webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px)}
.atp-summary[hidden]{display:none}
.atp-s-label{color:var(--atp-muted); margin-right:4px}
.atp-s-save{color:var(--atp-accent-strong); font-weight:700; flex-basis:100%}
/* cart */
.atp-old{opacity:.6}
.atp-new{text-decoration:none; font-weight:700}
.atp-cart-savings td,.atp-cart-savings th{color:var(--atp-accent-strong,#0064D9)}
@media (max-width:600px){
	.atp-box{padding:12px}
	.atp-table th,.atp-table td{padding:8px 6px}
}
@media (prefers-reduced-motion:reduce){ .atp-row,.atp-tip::after{transition:none} }
@media (prefers-color-scheme:dark){ /* Keep readable on dark themes that don't override our light card. */ }
