/* Print Platform store product page blocks (0.3.2). Fonts and text colors come from the theme; the theme's BUTTON styles never reach these
   blocks (a theme's global button rules — Hello Elementor, an Elementor kit — turned swatches into dark boxes, 0.3.0/0.3.1).
   Override with these variables anywhere (Elementor → Site Settings → Custom CSS, or the theme), e.g.
     body { --pp-accent: #923843; }
   --pp-accent  Design Now's fill, Upload Design's outline, the picked swatch ring, the active thumbnail, links   (default: the text color)
   --pp-on-accent  text on --pp-accent (default: white)
   --pp-border  thumbnails, size chips, chart lines (default: rgba(0,0,0,.15))
   --pp-muted   sold-out things' opacity (default: .55)
   --pp-radius  corners (default: 6px)        --pp-gap  spacing (default: 8px)        --pp-swatch  swatch dot size (default: 32px) */

.pp-block { font: inherit; color: inherit; margin: 0 0 1em; box-sizing: border-box; }
.pp-block *, .pp-block *::before, .pp-block *::after { box-sizing: border-box; }
.pp-label { font-weight: 600; margin: 0 0 0.35em; }

/* ── 1. Theme-proof: every plugin button and button-link starts from nothing ──
   Three .pp-block classes (0,3,1) beat a theme's  button / [type=button] (0,1,0)  and an Elementor kit's  .elementor-kit-N button:hover
   (0,2,1) in every state — :where() keeps the states from adding weight, so the plugin's own rules below (0,4,1) always win. */
.pp-block.pp-block.pp-block button,
.pp-block.pp-block.pp-block button:where(:hover, :focus, :active, :disabled),
.pp-block.pp-block.pp-block a.pp-btn,
.pp-block.pp-block.pp-block a.pp-btn:where(:hover, :focus, :active, :visited) {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font: inherit;
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
/* (the reset sets display, which would beat the browser's own [hidden] → display:none) */
.pp-block.pp-block.pp-block button[hidden], .pp-block.pp-block.pp-block a.pp-btn[hidden] { display: none; }
.pp-block.pp-block.pp-block button:focus-visible,
.pp-block.pp-block.pp-block a.pp-btn:focus-visible { outline: 2px solid var(--pp-accent, currentColor); outline-offset: 2px; }

/* ── 2. gallery ── */
.pp-gallery-main img { display: block; width: 100%; height: auto; border-radius: var(--pp-radius, 6px); }
.pp-gallery-thumbs { display: flex; flex-wrap: wrap; gap: var(--pp-gap, 8px); margin-top: var(--pp-gap, 8px); }
.pp-block.pp-block.pp-block button.pp-thumb { width: 64px; height: 64px; padding: 0; border: 1px solid var(--pp-border, rgba(0, 0, 0, 0.15)); border-radius: var(--pp-radius, 6px); background: transparent; overflow: hidden; }
.pp-block.pp-block.pp-block button.pp-thumb.is-active { outline: 2px solid var(--pp-accent, currentColor); outline-offset: 1px; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── 3. colors ── */
.pp-color-name { margin: 0 0 0.35em; }
.pp-swatches { display: flex; flex-wrap: wrap; gap: 2px; }
.pp-block.pp-block.pp-block button.pp-swatch { position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.pp-swatch-dot { display: block; width: var(--pp-swatch, 32px); height: var(--pp-swatch, 32px); border-radius: 50%; border: 1px solid var(--pp-border, rgba(0, 0, 0, 0.25)); }
.pp-block.pp-block.pp-block button.pp-swatch.is-active .pp-swatch-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pp-accent, currentColor); }
.pp-block.pp-block.pp-block button.pp-swatch.is-out { cursor: not-allowed; }
.pp-block.pp-block.pp-block button.pp-swatch.is-out .pp-swatch-dot { opacity: var(--pp-muted, 0.55); }
.pp-block.pp-block.pp-block button.pp-swatch.is-out::after { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; background: currentColor; opacity: 0.6; transform: translateX(-50%) rotate(45deg); }
.pp-block.pp-block.pp-block button.pp-more-colors { margin-top: 0.35em; padding: 0; min-height: 44px; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 2px; color: var(--pp-accent, currentColor); }

/* ── 4. sizes ── */
.pp-size-list { list-style: none; margin: 0 0 0.5em; padding: 0; display: flex; flex-wrap: wrap; gap: var(--pp-gap, 8px); }
.pp-size { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.pp-size-chip { display: block; min-width: 44px; padding: 0.35em 0.6em; border: 1px solid var(--pp-border, rgba(0, 0, 0, 0.15)); border-radius: var(--pp-radius, 6px); text-align: center; text-decoration: none; }
/* sold out: the chip is crossed out with a diagonal line (a strike through one letter, e.g. "L", reads as another letter), the words under it */
.pp-size.is-out .pp-size-chip { opacity: var(--pp-muted, 0.55);
	background: linear-gradient(to top left, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)); }
.pp-out { display: block; font-size: 0.72em; white-space: nowrap; opacity: 0.75; }
.pp-block.pp-block.pp-block a.pp-size-chart-link { color: var(--pp-accent, currentColor); text-decoration: underline; text-underline-offset: 2px; }

/* ── 5. price, size chart ── */
.pp-price { font-weight: 600; }
/* 0.5.0 (#118): a DTF gang sheet's lengths and sheet prices */
.pp-gang-length-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; }
.pp-gang-length { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.pp-gang-price { font-weight: 600; }
.pp-gang-help { margin: 8px 0 0; font-size: 0.9em; opacity: 0.8; }
.pp-size-chart { width: 100%; }
.pp-chart-title { margin: 0 0 0.5em; }
.pp-chart-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pp-chart { width: 100%; border-collapse: collapse; white-space: nowrap; }
.pp-chart th, .pp-chart td { padding: 0.5em 0.75em; border-bottom: 1px solid var(--pp-border, rgba(0, 0, 0, 0.15)); text-align: center; }
.pp-chart tbody th { text-align: left; }
.pp-chart-note { margin: 0.6em 0 0; }

/* ── 6. Design Now + Upload Design: a pair of large, equal-width buttons — Design Now filled, Upload Design outlined; stacked on a phone ── */
.pp-block.pp-actions { display: flex; flex-wrap: wrap; gap: var(--pp-gap, 8px) 12px; }
.pp-block.pp-block.pp-block a.pp-btn { flex: 1 1 0; min-width: 0; min-height: 52px; padding: 0.8em 1.25em; border: 2px solid var(--pp-accent, currentColor);
	border-radius: var(--pp-radius, 6px); font-size: 1.05em; font-weight: 700; line-height: 1.2; text-align: center; transition: opacity 0.15s; }
.pp-block.pp-block.pp-block a.pp-btn-primary { background: var(--pp-accent, currentColor); color: var(--pp-on-accent, #fff); }
.pp-block.pp-block.pp-block a.pp-btn-outline { background: transparent; color: var(--pp-accent, currentColor); }
.pp-block.pp-block.pp-block a.pp-btn:hover { opacity: 0.88; }
.pp-pilot-note { flex: 1 1 100%; margin: 0; font-size: 0.85em; opacity: 0.75; }
@media (max-width: 480px) {
	.pp-block.pp-actions { flex-direction: column; }
	.pp-block.pp-block.pp-block a.pp-btn { flex: 0 0 auto; width: 100%; }
}

/* 0.6.1 (#122): an extra video in the gallery, and the play mark on its thumbnail */
.pp-gallery-main video.pp-gallery-video { display: block; width: 100%; height: auto; }
.pp-thumb { position: relative; }
.pp-thumb.is-video .pp-play { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); pointer-events: none; }
.pp-thumb.is-video .pp-play::after { content: ''; position: absolute; left: 8px; top: 6px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
/* 0.6.3 (#126): the shop's own size chart image / PDF link */
.pp-chart-image { display: block; max-width: 100%; height: auto; margin: 0.5em 0; }
.pp-chart-pdf a { font-weight: 600; }
