/* Calculator layout (shared) */
.calc-v2 { padding: 1.5rem 1.5rem 1.25rem; }
.calc-v2 > h2 { text-align: left; font-size: 1.45rem; font-weight: 600; margin: 0 0 0.35rem; }
.calc-v2 .calculator-explanation { text-align: left; font-style: normal; font-size: 0.85rem; color: var(--text-muted); margin: 0 0 1.1rem; }

/* Add a different size or paper */
.calc-v2 .add-line-btn { width: 100%; padding: 0.7rem; border: 1.5px dashed #c9b6ff; border-radius: 10px; background: #fff; color: var(--brand-purple); font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.calc-v2 .add-line-btn:hover { background: #f5f3ff; border-color: var(--brand-purple); }
.calc-v2 .add-line-help { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin: 0.35rem 0 0; }

/* Price block joins the same panel */
.calc-v2 .pricing-summary, .calc-v2 .pricing-result { background: none; padding: 1.1rem 0 0; margin-top: 1.1rem; border-top: 1px solid var(--border-light); border-radius: 0; }
.calc-v2 .summary-title { font-size: 1.1rem !important; font-weight: 600; }
.calc-v2 .vat-toggle-text { font-size: 0.8rem; }
.calc-v2 .product-group { background: none; padding: 0; margin-bottom: 0.6rem; }
.calc-v2 .product-group-header { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--brand-dark); margin-bottom: 0.15rem; }
.calc-v2 .product-group-header .discount-badge { font-size: 0.7rem; padding: 0.15rem 0.45rem; }
.calc-v2 .price-row { padding: 0.3rem 0; font-size: 0.9rem; border-bottom: none; }
.calc-v2 .group-subtotal { font-weight: 600; }
.calc-v2 .savings-message { margin: 0.15rem 0 0; padding: 0; background: none; border: none; text-align: left; color: #1a7f37; font-size: 0.8rem; }
.calc-v2 .products-subtotal { margin-top: 0.4rem; padding-top: 0.6rem; border-top: 1px solid var(--border-light); color: var(--text-muted); }
.calc-v2 .total-row { align-items: baseline; border-top: 2px solid var(--brand-dark); margin-top: 0.4rem; padding-top: 0.7rem; font-size: 1.15rem; }
.calc-v2 .total-row span:last-child { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.01em; }
.calc-v2 .per-card-line { text-align: right; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; }
.calc-v2 .quote-copy-row { margin-top: 0.6rem; }

/* Delivery: compact row of fields */
.calc-v2 .delivery-section { margin: 0.9rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.calc-v2 .delivery-section input, .calc-v2 .delivery-section select { margin: 0; padding: 0.55rem 0.7rem; font-size: 0.85rem; border-radius: 7px; }
.calc-v2 #card-calc-postcode { grid-column: 1 / -1; }
.calc-v2 .local-collection-hint { grid-column: 1 / -1; margin: 0; }
.calc-v2 .delivery-note { grid-column: 1 / -1; font-size: 0.78rem; color: var(--text-muted); margin: 0.25rem 0 0; }

/* Account nudge above the order buttons */
.calc-v2 .account-nudge { margin: 1.25rem 0 0.75rem; padding: 0.75rem 0.9rem; border-radius: 10px; background: linear-gradient(135deg, rgba(255, 38, 158, 0.06), rgba(146, 78, 255, 0.08)); font-size: 0.85rem; line-height: 1.5; color: var(--brand-dark); }
.calc-v2 .account-nudge a { color: var(--brand-purple); font-weight: 600; }


/* Quote from a shared link */
.calc-v2 .link-quote { margin: 0 0 1rem; padding: 0.75rem 0.9rem; border-left: 3px solid var(--brand-purple); border-radius: 8px; background: #f5f3ff; font-size: 0.88rem; line-height: 1.5; color: var(--brand-dark); }
.calc-v2 .link-quote-note { display: block; margin-top: 0.25rem; font-size: 0.78rem; color: var(--text-muted); }

/* Example prices */
.calc-v2 .example-prices { margin: 1.25rem 0 0.5rem; }
.calc-v2 .example-prices h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.2rem; }
.calc-v2 .example-prices-note { font-size: 0.75rem; color: var(--text-muted); margin: 0.2rem 0 0.5rem; }
.calc-v2 .example-prices table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.calc-v2 .example-prices th, .calc-v2 .example-prices td { padding: 0.4rem 0.35rem; border-bottom: 1px solid var(--border-light); text-align: center; }
.calc-v2 .example-prices thead th { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.calc-v2 .example-prices tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.calc-v2 .example-prices td a { display: block; font-weight: 600; color: var(--brand-purple); text-decoration: none; }
.calc-v2 .example-prices td a:hover { text-decoration: underline; }
.calc-v2 .example-prices td span { display: block; font-size: 0.7rem; color: var(--text-muted); }

/* Hold the layout against page-level calculator styles */
.calculator-section.calc-v2 > h2 { text-align: left; }
.calculator-section.calc-v2 .design-controls { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 0.9rem; margin-bottom: 0; }
.calculator-section.calc-v2 .size-selector-container,
.calculator-section.calc-v2 .paper-selector-container { width: auto; min-width: 0; }
.calculator-section.calc-v2 .paper-selector-header,
.calculator-section.calc-v2 .size-selector-header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.calculator-section.calc-v2 .paper-thumbnails { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.calculator-section.calc-v2 > h2 { font-size: 1.45rem; font-weight: 600; margin: 0 0 0.35rem; }
.calculator-section.calc-v2 .pricing-summary { border: 0; border-top: 1px solid var(--border-light); border-radius: 0; box-shadow: none; background: none; padding: 1.1rem 0 0; margin-top: 1.1rem; }
.calculator-section.calc-v2 .product-group { border: 0; border-radius: 0; box-shadow: none; background: none; padding: 0; margin-bottom: 0.6rem; }
.calculator-section.calc-v2 .sides-options-container { margin-bottom: 0; }
.calculator-section.calc-v2 .vat-toggle-label { font-size: 1rem; font-weight: 400; }
.calculator-section.calc-v2 .quantity-discounts { background: #fff; border-radius: 12px; }
.calculator-section.calc-v2 #card-calc-add-design-button { width: 100%; margin: 0; padding: 0.7rem; border: 1.5px dashed #c9b6ff; border-radius: 10px; background: #fff; color: var(--brand-purple); font: inherit; font-weight: 600; font-size: 0.9rem; box-shadow: none; transform: none; }
.calculator-section.calc-v2 #card-calc-add-design-button:hover { background: #f5f3ff; border-color: var(--brand-purple); }
.calculator-section.calc-v2 .example-prices > summary { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; list-style: none; padding: 0.35rem 0; }
.calculator-section.calc-v2 .example-prices > summary::-webkit-details-marker { display: none; }
.calculator-section.calc-v2 .example-prices > summary h3 { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--brand-purple); }
.calculator-section.calc-v2 .example-prices > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--brand-purple); border-bottom: 2px solid var(--brand-purple); transform: rotate(45deg); margin-top: -3px; transition: transform 0.15s; }
.calculator-section.calc-v2 .example-prices[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.calculator-section.calc-v2 .example-prices[open] > summary { margin-bottom: 0.2rem; }
.calculator-section.calc-v2 .link-quote-adjusted { display: block; margin-top: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--brand-purple); }

/* Items included free with every order (envelopes, bags/stickers) */
.calc-v2 .price-included { margin-top: 0.4rem; padding-top: 0.5rem; border-top: 1px dashed var(--border-light); }
.calc-v2 .price-row.included-row { color: var(--text-muted); }
.calc-v2 .price-row.included-row > span:last-child { color: var(--brand-pink, #FF269E); font-weight: 600; }
.calc-v2 .included-tick { color: var(--brand-pink, #FF269E); font-weight: 700; margin-right: 0.15rem; }
