/* Tinna Bundle Sizes. Scoped to .tbs / .tbs-managed / .tbs-acc only. */
.bundle_form .bundled_product.tbs-managed { display: none !important; }

/* Optional extras (needles): keep the "Bæta við (1.299 kr. stk.)" label as one line of body text. */
.bundle_form .bundled_product_optional_checkbox { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: 15px; }
.bundle_form .bundled_product_optional_checkbox .price,
.bundle_form .bundled_product_optional_checkbox .price * { display: inline; font-size: inherit !important; font-weight: 600; line-height: inherit; }

/* Item titles inside the bundle: body-size, not page-heading size. */
/* One class deeper than the child theme's .tinna-single .tinna-single__summary .product_title (40px). */
.bundle_form .bundled_product .details .bundled_product_title { font-size: 18px; line-height: 1.3; margin: 0 0 4px; }
.bundle_form .bundled_product .bundled_product_images { max-width: 96px; }

.tbs { margin: 0 0 20px; }
.tbs-row { margin: 0 0 16px; }
.tbs-label { font-weight: 600; margin: 0 0 8px; }
.tbs-color-name { font-weight: 400; color: #555; }

.tbs-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.tbs-size { position: relative; margin: 0; cursor: pointer; }
.tbs-size input,
.tbs-color input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tbs-size span {
	display: inline-block; min-width: 48px; padding: 8px 12px; text-align: center;
	border: 1px solid #ccc; border-radius: 4px; background: #fff; line-height: 1.2;
}
.tbs-size input:checked + span { border-color: #000; background: #000; color: #fff; }
.tbs-size input:focus-visible + span { outline: 2px solid #000; outline-offset: 2px; }

.tbs-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.tbs-color {
	position: relative; display: block; width: 56px; margin: 0; cursor: pointer;
	border: 2px solid transparent; border-radius: 4px; padding: 2px;
}
.tbs-color img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; }
.tbs-color:has(input:checked) { border-color: #000; }
.tbs-color:has(input:focus-visible) { outline: 2px solid #000; outline-offset: 2px; }
.tbs-color.is-out { opacity: .35; cursor: not-allowed; }
.tbs-color-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tbs-summary { margin: 4px 0 0; color: #333; }
.tbs.tbs-error .tbs-summary { color: #b32d2e; font-weight: 600; }
.tbs.tbs-error .tbs-size span { border-color: #b32d2e; }

.tbs-acc { margin: 20px 0 0; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
.tbs-acc summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.tbs-acc-body { padding: 0 0 12px; overflow-x: auto; }
.tbs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbs-table th, .tbs-table td { padding: 6px 8px; border: 1px solid #e5e5e5; text-align: center; white-space: nowrap; }
.tbs-table tbody th { text-align: left; }
.tbs-note { margin: 8px 0 0; font-size: 13px; color: #555; }

/* 2.0: fixed colour (no choice), one table per version, note on a pattern's own page. */
.tbs-fixed { display: flex; align-items: center; gap: 10px; }
.tbs-fixed img { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; }
.tbs-table-title { margin: 12px 0 6px; font-weight: 600; }
.tbs-table + .tbs-table-title { margin-top: 16px; }
.tbs-pattern-note { margin: 0 0 16px; padding: 10px 12px; background: #f6f6f6; border-left: 3px solid #000; }

/* 2.0.2: stacked foldouts (Nánari upplýsingar, Stærðartafla, Garnmagn) share one divider. */
.tbs-acc + .tbs-acc { margin-top: 0; border-top: 0; }
.tbs-acc-tab .tbs-acc-body p { margin: 0 0 10px; }
.tbs-acc-tab .tbs-table td { white-space: nowrap; }
/* The theme's summary column is a grid item with min-width:auto, so a wide table stretched the
   whole column off-screen on phones. Let it shrink; the tables scroll inside their foldout. */
.tinna-single__grid > .tinna-single__summary { min-width: 0; }
.tbs-acc, .tbs-acc-body { max-width: 100%; }
