/**
 * Avery Zweckform Blanko-Etiketten Konfigurator Stylesheet
 */

/* Top Header */
.avery-configurator-top-header {
	margin-bottom: 24px;
	border-bottom: 1px solid var(--avery-border);
	padding-bottom: 16px;
}

.avery-configurator-main-title {
	font-size: 30px;
	font-weight: 800;
	color: var(--avery-text);
	letter-spacing: -0.5px;
	margin: 6px 0 8px 0;
}

.avery-configurator-subtitle {
	font-size: 15.5px;
	color: var(--avery-text-muted);
}

/* 2-Column Layout */
.avery-configurator-grid {
	display: grid;
	grid-template-columns: 460px 1fr;
	gap: 40px;
	align-items: flex-start;
}

@media (max-width: 1100px) {
	.avery-configurator-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Left Column: Preview Box & SVG Canvas
   ========================================================================== */
.avery-sticky-preview-wrapper {
	position: sticky;
	top: 100px;
}

.avery-configurator-preview-box {
	background-color: #ffffff;
	border-radius: var(--radius-lg);
	border: 1.5px solid var(--avery-border);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

/* Preview Tabs */
.avery-preview-tabs {
	display: flex;
	background-color: var(--avery-cream);
	border-bottom: 1.5px solid var(--avery-cream-medium);
}

.avery-preview-tab-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 10px;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--avery-text-muted);
	cursor: pointer;
	transition: var(--transition);
}

.avery-preview-tab-btn:hover {
	color: var(--avery-blue);
	background-color: rgba(0, 56, 165, 0.04);
}

.avery-preview-tab-btn.is-active {
	color: var(--avery-blue);
	background-color: #ffffff;
	border-bottom-color: var(--avery-blue);
}

/* Viewport Area */
.avery-preview-viewport {
	height: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f6f0;
	position: relative;
	padding: 24px;
}

.avery-view-pane {
	display: none;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.avery-view-pane.is-active {
	display: flex;
}

.avery-svg-canvas-wrapper {
	width: 100%;
	max-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#avery-sheet-svg {
	max-height: 380px;
	width: auto;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	border-radius: 2px;
	background: #fff;
	transition: var(--transition);
}

/* Single Label SVG View */
.avery-single-label-wrapper {
	width: 100%;
	height: 360px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#avery-single-svg {
	max-height: 320px;
	width: auto;
}

.avery-photo-gallery-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.avery-photo-gallery-wrapper img {
	max-height: 380px;
	width: auto;
	object-fit: contain;
}

.avery-sheet-caption {
	margin-top: 14px;
	text-align: center;
}

.avery-caption-badge {
	display: inline-block;
	background-color: rgba(0, 56, 165, 0.08);
	color: var(--avery-blue);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
}

/* Specs Bar Under Preview */
.avery-preview-specs-bar {
	display: flex;
	align-items: center;
	justify-content: space-around;
	background-color: #ffffff;
	border-top: 1px solid var(--avery-border);
	padding: 12px 16px;
}

.avery-spec-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 12px;
}

.avery-spec-chip-label {
	color: var(--avery-text-muted);
	font-size: 11px;
}

.avery-spec-chip strong {
	color: var(--avery-text);
	font-weight: 700;
}

/* Mini USPs under preview */
.avery-preview-guarantees {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.avery-guarantee-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--avery-text);
	background-color: #ffffff;
	padding: 10px 14px;
	border-radius: var(--radius-md);
	border: 1px solid var(--avery-border);
}

.avery-guar-icon {
	font-size: 18px;
}

/* ==========================================================================
   Right Column: Step Flow
   ========================================================================== */
.avery-config-step {
	background-color: #ffffff;
	border-radius: var(--radius-lg);
	border: 1.5px solid var(--avery-border);
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: var(--shadow-sm);
}

.avery-step-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 800;
	color: var(--avery-text);
	margin-bottom: 18px;
}

.avery-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background-color: var(--avery-blue);
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	border-radius: 50%;
}

/* Step 1: Shape Cards Grid */
.avery-shapes-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
}

.avery-shape-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: #ffffff;
	border: 1.5px solid var(--avery-border);
	border-radius: var(--radius-md);
	padding: 16px 10px;
	cursor: pointer;
	transition: var(--transition);
}

.avery-shape-card:hover {
	border-color: var(--avery-blue);
	background-color: var(--avery-cream);
	transform: translateY(-2px);
}

.avery-shape-card.is-selected {
	border-color: var(--avery-blue);
	background-color: #f0f5ff;
	box-shadow: 0 0 0 2px var(--avery-blue);
}

.avery-shape-visual-box {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 36px;
}

.avery-shape-name {
	font-size: 12px;
	font-weight: 700;
	color: var(--avery-text);
	text-align: center;
}

/* Step 2: Format Cards Grid */
.avery-formats-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.avery-format-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background-color: #ffffff;
	border: 1.5px solid var(--avery-border);
	border-radius: var(--radius-md);
	padding: 14px 14px;
	cursor: pointer;
	position: relative;
	transition: var(--transition);
	text-align: left;
}

.avery-format-card:hover {
	border-color: var(--avery-blue);
	background-color: var(--avery-cream);
}

.avery-format-card.is-selected {
	border-color: var(--avery-blue);
	background-color: #f0f5ff;
	box-shadow: 0 0 0 2px var(--avery-blue);
}

.avery-format-card.is-hidden {
	display: none;
}

.avery-format-popular-tag {
	position: absolute;
	top: 8px;
	right: 8px;
	background-color: #ffd700;
	color: #1a1a1a;
	font-size: 9.5px;
	font-weight: 800;
	padding: 2px 6px;
	border-radius: var(--radius-sm);
	text-transform: uppercase;
}

.avery-format-size {
	font-size: 14px;
	font-weight: 800;
	color: var(--avery-text);
	margin-bottom: 4px;
}

.avery-format-count {
	font-size: 11.5px;
	color: var(--avery-text-muted);
}

/* Step 3: Material Cards List */
.avery-materials-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.avery-material-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background-color: #ffffff;
	border: 1.5px solid var(--avery-border);
	border-radius: var(--radius-md);
	padding: 16px;
	cursor: pointer;
	transition: var(--transition);
}

.avery-material-card:hover {
	border-color: var(--avery-blue);
	background-color: var(--avery-cream);
}

.avery-material-card.is-selected {
	border-color: var(--avery-blue);
	background-color: #f0f5ff;
	box-shadow: 0 0 0 2px var(--avery-blue);
}

.avery-material-radio-input {
	display: none;
}

.avery-mat-indicator {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--avery-border);
	background: #ffffff;
	margin-top: 2px;
	flex-shrink: 0;
	transition: var(--transition);
}

.avery-material-card.is-selected .avery-mat-indicator {
	border-color: var(--avery-blue);
	background-color: var(--avery-blue);
	box-shadow: inset 0 0 0 3px #ffffff;
}

.avery-mat-info {
	flex: 1;
}

.avery-mat-title-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.avery-mat-name {
	font-size: 14.5px;
	font-weight: 800;
	color: var(--avery-text);
}

.avery-mat-sub {
	font-size: 12px;
	color: var(--avery-text-muted);
}

.avery-mat-desc {
	font-size: 13px;
	color: var(--avery-text-muted);
	margin-bottom: 8px;
	line-height: 1.5;
}

.avery-mat-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.avery-mat-tag {
	background-color: rgba(0, 56, 165, 0.06);
	color: var(--avery-blue);
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: var(--radius-sm);
}

/* ==========================================================================
   Step 4: Quantity & Tiers
   ========================================================================== */
.avery-quantity-tiers-section {
	background-color: #ffffff;
	border-radius: var(--radius-lg);
	border: 1.5px solid var(--avery-border);
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: var(--shadow-sm);
}

.avery-section-header-flex {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.avery-section-header-flex .avery-step-title {
	margin-bottom: 0;
}

.avery-quantity-mode-switch {
	display: flex;
	background-color: var(--avery-cream);
	border: 1px solid var(--avery-cream-medium);
	border-radius: var(--radius-md);
	padding: 3px;
	gap: 3px;
}

.avery-qty-mode-btn {
	background: transparent;
	border: none;
	padding: 6px 14px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--avery-text-muted);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
}

.avery-qty-mode-btn.is-active {
	background-color: #ffffff;
	color: var(--avery-blue);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Tiers Grid */
.avery-tiers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
}

.avery-tier-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background-color: #ffffff;
	border: 1.5px solid var(--avery-border);
	border-radius: var(--radius-md);
	padding: 16px 14px;
	cursor: pointer;
	position: relative;
	transition: var(--transition);
}

.avery-tier-card:hover {
	border-color: var(--avery-blue);
	background-color: var(--avery-cream);
	transform: translateY(-2px);
}

.avery-tier-card.is-selected {
	border-color: var(--avery-blue);
	background-color: #f0f5ff;
	box-shadow: 0 0 0 2px var(--avery-blue);
}

.avery-tier-radio-input {
	display: none;
}

.avery-tier-badge-bestseller {
	position: absolute;
	top: -9px;
	right: 12px;
	background-color: var(--avery-red);
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: var(--radius-pill);
	letter-spacing: 0.3px;
}

.avery-tier-badge-discount {
	position: absolute;
	top: -9px;
	right: 12px;
	background-color: var(--avery-blue);
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: var(--radius-pill);
}

.avery-tier-top {
	margin-bottom: 12px;
}

.avery-tier-sheets {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.avery-tier-sheets strong {
	font-size: 20px;
	font-weight: 800;
	color: var(--avery-text);
}

.avery-tier-sheets span {
	font-size: 13px;
	color: var(--avery-text-muted);
}

.avery-tier-labels-count {
	font-size: 12px;
	color: var(--avery-text-muted);
}

.avery-tier-bottom {
	border-top: 1px solid var(--avery-cream-medium);
	padding-top: 10px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
}

.avery-tier-unit-prices {
	display: flex;
	flex-direction: column;
	font-size: 11px;
	color: var(--avery-text-muted);
}

.avery-tier-total-price strong {
	font-size: 16px;
	font-weight: 800;
	color: var(--avery-blue);
}

/* Custom Quantity Box */
.avery-custom-quantity-box {
	background-color: var(--avery-cream);
	border: 1px solid var(--avery-cream-medium);
	border-radius: var(--radius-md);
	padding: 24px;
}

.avery-custom-qty-label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 14px;
	color: var(--avery-text);
}

.avery-custom-input-group {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 320px;
}

.avery-qty-stepper-btn {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #ffffff;
	border: 1.5px solid var(--avery-border);
	border-radius: var(--radius-md);
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	transition: var(--transition);
}

.avery-qty-stepper-btn:hover {
	background-color: var(--avery-blue-light);
	border-color: var(--avery-blue);
	color: var(--avery-blue);
}

.avery-custom-sheets-field {
	height: 44px;
	width: 120px;
	text-align: center;
	font-size: 18px;
	font-weight: 800;
	border: 1.5px solid var(--avery-border);
	border-radius: var(--radius-md);
}

.avery-custom-sheets-field:focus {
	outline: none;
	border-color: var(--avery-blue);
}

.avery-input-unit {
	font-weight: 700;
	font-size: 14px;
	color: var(--avery-text-muted);
}

.avery-custom-calc-result {
	margin-top: 14px;
	font-size: 13px;
	font-weight: 600;
}

.avery-calc-badge-live {
	background-color: var(--avery-success-light);
	color: var(--avery-success);
	padding: 4px 10px;
	border-radius: var(--radius-sm);
}

/* ==========================================================================
   Summary & Checkout Card
   ========================================================================== */
.avery-config-checkout-box {
	background-color: #ffffff;
	border-radius: var(--radius-lg);
	border: 2px solid var(--avery-blue);
	padding: 26px;
	box-shadow: var(--shadow-md);
	position: relative;
}

.avery-summary-details {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13.5px;
}

.avery-summary-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}

.avery-sum-label {
	color: var(--avery-text-muted);
}

.avery-sum-val {
	color: var(--avery-text);
	font-weight: 700;
	text-align: right;
}

.avery-sum-divider {
	margin: 18px 0;
	border: 0;
	border-top: 1px solid var(--avery-cream-medium);
}

.avery-summary-price-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 16px;
}

.avery-main-total-price {
	font-size: 36px;
	font-weight: 900;
	color: var(--avery-blue);
	letter-spacing: -1px;
	line-height: 1;
}

.avery-price-sub-details {
	font-size: 13px;
	font-weight: 600;
	color: var(--avery-text-muted);
	margin-top: 6px;
}

.avery-bullet {
	margin: 0 4px;
	color: #ccc;
}

.avery-tax-note {
	font-size: 11.5px;
	color: var(--avery-text-muted);
	margin-top: 4px;
}

.avery-cta-action {
	flex: 1;
	min-width: 220px;
}

.avery-btn-add-to-cart {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: var(--avery-blue);
	color: #ffffff;
	font-size: 17px;
	font-weight: 800;
	padding: 16px 28px;
	border-radius: var(--radius-md);
	border: none;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: 0 4px 12px rgba(0, 56, 165, 0.25);
}

.avery-btn-add-to-cart:hover {
	background-color: var(--avery-blue-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 56, 165, 0.35);
}

.avery-delivery-status-row {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--avery-text);
	border-top: 1px solid var(--avery-cream-medium);
	padding-top: 14px;
}

/* ==========================================================================
   Floating Sticky Bar (Mobile & Desktop)
   ========================================================================== */
.avery-floating-sticky-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: #ffffff;
	border-top: 2px solid var(--avery-blue);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
	z-index: 999;
	padding: 12px 0;
	transform: translateY(110%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.avery-floating-sticky-bar.is-visible {
	transform: translateY(0);
}

.avery-sticky-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.avery-sticky-info {
	display: flex;
	flex-direction: column;
}

.avery-sticky-info strong {
	font-size: 14px;
	color: var(--avery-text);
}

.avery-sticky-info span {
	font-size: 12px;
	color: var(--avery-text-muted);
}

.avery-sticky-price-box {
	text-align: right;
}

.avery-sticky-price {
	font-size: 22px;
	font-weight: 800;
	color: var(--avery-blue);
	line-height: 1;
}

.avery-sticky-price-box small {
	font-size: 11px;
	color: var(--avery-text-muted);
}

.avery-btn-sticky-cart {
	background-color: var(--avery-blue);
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
	padding: 12px 26px;
	border-radius: var(--radius-md);
	border: none;
	cursor: pointer;
	transition: var(--transition);
}

.avery-btn-sticky-cart:hover {
	background-color: var(--avery-blue-hover);
}

/* ==========================================================================
   Avery Zweckform 1:1 Product Options Layout (Authentic Screenshot Styles)
   ========================================================================== */

/* Top Price Headline */
.avery-configurator-pdp .avery-live-header-price,
.avery-live-header-price {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 22px;
	letter-spacing: -0.2px;
}

.avery-configurator-pdp .avery-live-header-price strong,
.avery-live-header-price strong {
	color: #0038a5;
}

.avery-configurator-pdp .avery-live-header-price small,
.avery-live-header-price small {
	font-size: 0.85rem;
	font-weight: 600;
	color: #64748b;
	margin-left: 4px;
}

.avery-configurator-pdp .avery-scroll-to-details,
.avery-scroll-to-details {
	color: #0038a5;
	text-decoration: underline;
	font-weight: 600;
	margin-left: 4px;
}

/* Option Sections */
.avery-configurator-pdp .avery-option-section,
.avery-option-section {
	margin-bottom: 24px;
}

.avery-configurator-pdp .avery-option-title,
.avery-option-title {
	display: block;
	width: 100%;
	font-size: 0.95rem;
	font-weight: 800;
	color: #1e293b;
	margin-bottom: 10px;
}

.avery-configurator-pdp .avery-option-title-row,
.avery-option-title-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

/* Section 1: Execution Pills */
.avery-configurator-pdp .avery-exec-types-grid,
.avery-exec-types-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}

@media (max-width: 600px) {
	.avery-configurator-pdp .avery-exec-types-grid,
	.avery-exec-types-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.avery-configurator-pdp button.avery-exec-btn,
.avery-configurator-pdp .avery-exec-btn,
.avery-exec-btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	padding: 12px 10px;
	background: #ffffff;
	color: #334155;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: none;
	outline: none;
	transition: all 0.2s ease;
	box-sizing: border-box;
	line-height: normal;
	text-transform: none;
	width: 100%;
}

.avery-configurator-pdp button.avery-exec-btn:hover:not(.is-active),
.avery-configurator-pdp .avery-exec-btn:hover:not(.is-active) {
	border-color: #94a3b8;
	background: #f8fafc;
}

.avery-configurator-pdp button.avery-exec-btn.is-active,
.avery-configurator-pdp .avery-exec-btn.is-active {
	border: 2px solid #0038a5;
	color: #0038a5;
	box-shadow: 0 0 0 1px #0038a5;
	background: #ffffff;
}

.avery-configurator-pdp .avery-exec-disabled,
.avery-exec-disabled {
	cursor: pointer;
}

/* Section 2: Compact 5-column Shape Grid */
.avery-configurator-pdp .avery-shapes-compact-grid,
.avery-shapes-compact-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
}

.avery-configurator-pdp button.avery-shape-cell,
.avery-configurator-pdp .avery-shape-cell,
.avery-shape-cell {
	appearance: none !important;
	-webkit-appearance: none !important;
	height: 52px;
	width: 100%;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	margin: 0;
	box-shadow: none;
	outline: none;
	transition: all 0.15s ease;
	box-sizing: border-box;
}

.avery-configurator-pdp button.avery-shape-cell:hover,
.avery-configurator-pdp .avery-shape-cell:hover {
	border-color: #0038a5;
	background: #f8fafc;
}

.avery-configurator-pdp button.avery-shape-cell.is-selected,
.avery-configurator-pdp .avery-shape-cell.is-selected {
	border: 2px solid #0038a5;
	box-shadow: 0 0 0 1px #0038a5;
	background: #f0f4ff;
}

.avery-configurator-pdp .avery-shape-cell-icon,
.avery-shape-cell-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.avery-configurator-pdp button.avery-expand-shapes-link,
.avery-configurator-pdp .avery-expand-shapes-link,
.avery-expand-shapes-link {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: none;
	border: none;
	color: #0038a5;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	padding: 8px 0 2px 0;
	margin: 0;
	box-shadow: none;
	outline: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.avery-configurator-pdp .avery-expand-shapes-link:hover,
.avery-expand-shapes-link:hover {
	text-decoration: underline;
}

/* Section 3: Format Select Trigger */
.avery-configurator-pdp button.avery-format-select-trigger,
.avery-configurator-pdp .avery-format-select-trigger,
.avery-format-select-trigger {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 100%;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	padding: 13px 16px;
	background: #ffffff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e293b;
	text-align: left;
	box-shadow: none;
	outline: none;
	box-sizing: border-box;
	line-height: normal;
	transition: border-color 0.2s;
}

.avery-configurator-pdp button.avery-format-select-trigger:hover,
.avery-configurator-pdp .avery-format-select-trigger:hover {
	border-color: #0038a5;
}

.avery-configurator-pdp .avery-chevron-icon,
.avery-chevron-icon {
	color: #0038a5;
	display: flex;
	align-items: center;
}

/* Format Modal Popup (Screenshot 2 Alignment) */
.avery-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	backdrop-filter: blur(3px);
}

.avery-modal-dialog {
	background: #ffffff;
	border-radius: 6px;
	width: 100%;
	max-width: 880px;
	max-height: 86vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	animation: averyModalFade 0.2s ease-out;
}

@keyframes averyModalFade {
	from { opacity: 0; transform: scale(0.97); }
	to   { opacity: 1; transform: scale(1); }
}

.avery-modal-header {
	background: #0038a5;
	color: #ffffff;
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.avery-modal-header h3 {
	color: #ffffff;
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0;
}

.avery-modal-close-btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	margin: 0;
	box-shadow: none;
	outline: none;
	opacity: 0.9;
	transition: opacity 0.15s;
}

.avery-modal-close-btn:hover {
	opacity: 1;
}

.avery-modal-body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
	background: #f8fafc;
}

.avery-modal-formats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

@media (max-width: 768px) {
	.avery-modal-formats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.avery-modal-formats-grid {
		grid-template-columns: 1fr;
	}
}

.avery-modal-format-card {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	text-align: left;
	box-shadow: none;
	outline: none;
	box-sizing: border-box;
	transition: all 0.15s ease;
}

.avery-modal-format-card:hover {
	border-color: #0038a5;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.avery-modal-format-card.is-selected {
	border: 2px solid #0038a5;
	box-shadow: 0 0 0 1px #0038a5;
	background: #f0f4ff;
}

.avery-modal-format-card.is-hidden {
	display: none !important;
}

.avery-modal-card-left {
	flex: 1;
	padding-right: 12px;
}

.avery-modal-format-size {
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.35;
	display: block;
}

.avery-mini-sheet-diagram {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Section 4: Material Custom Dropdown */
.avery-configurator-pdp .avery-material-compare-link,
.avery-material-compare-link {
	color: #0038a5;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.avery-configurator-pdp .avery-material-compare-link:hover,
.avery-material-compare-link:hover {
	text-decoration: underline;
}

.avery-info-bubble {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #0038a5;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
}

.avery-configurator-pdp .avery-material-dropdown,
.avery-material-dropdown {
	position: relative;
	width: 100%;
}

.avery-configurator-pdp button.avery-material-select-btn,
.avery-configurator-pdp .avery-material-select-btn,
.avery-material-select-btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 100%;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	padding: 9px 14px;
	background: #ffffff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	text-align: left;
	box-shadow: none;
	outline: none;
	box-sizing: border-box;
	line-height: normal;
	transition: border-color 0.2s;
}

.avery-configurator-pdp button.avery-material-select-btn:hover,
.avery-configurator-pdp .avery-material-select-btn:hover {
	border-color: #0038a5;
}

.avery-mat-btn-left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.avery-mat-swatch-box {
	width: 48px;
	height: 32px;
	border: 1px solid #cbd5e1;
	border-radius: 3px;
	background: #ffffff;
	flex-shrink: 0;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.avery-swatch-paper-matte {
	background: #ffffff;
	border: 1px solid #cbd5e1;
}

.avery-swatch-foil-matte {
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
}

.avery-swatch-foil-clear {
	background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(220,230,245,0.8) 100%);
	border: 1px solid #94a3b8;
}

.avery-swatch-kraft-brown {
	background: #c2a177;
	border: 1px solid #9a764d;
	color: #593e21;
}

.avery-swatch-foil-silver {
	background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 50%, #cbd5e1 100%);
	border: 1px solid #64748b;
}

.avery-swatch-paper-opaque {
	background: #ffffff;
	border: 1px solid #cbd5e1;
}

.avery-mini-opaque-backing {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 14px;
	height: 14px;
	background: #1e40af;
	clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.avery-mini-eco-leaf {
	font-size: 14px;
	font-weight: 700;
}

.avery-mat-btn-text strong {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.25;
}

.avery-mat-btn-text span {
	display: block;
	font-size: 0.8rem;
	color: #64748b;
	margin-top: 2px;
}

/* Material Popover Menu */
.avery-material-menu-popover {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
	max-height: 380px;
	overflow-y: auto;
	z-index: 9999;
}

.avery-mat-menu-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 14px;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
	transition: background 0.15s ease;
}

.avery-mat-menu-item:last-child {
	border-bottom: none;
}

.avery-mat-menu-item:hover:not(.is-disabled) {
	background: #f8fafc;
}

.avery-mat-menu-item.is-selected {
	background: #f0f4ff;
	border-left: 3px solid #0038a5;
}

.avery-mat-menu-item.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.avery-mat-opt-title {
	display: block;
	font-size: 0.92rem;
	font-weight: 700;
	color: #1e293b;
}

.avery-mat-opt-sub {
	display: block;
	font-size: 0.78rem;
	color: #64748b;
}

/* Section 5: Inline Quantity & Price Table (Screenshot 3 Alignment) */
.avery-configurator-pdp .avery-qty-title-row,
.avery-qty-title-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	gap: 12px;
	flex-wrap: wrap;
}

.avery-configurator-pdp .avery-inline-qty-box,
.avery-inline-qty-box {
	display: flex;
	align-items: center;
	gap: 8px;
}

.avery-configurator-pdp input.avery-inline-sheets-field,
.avery-configurator-pdp .avery-inline-sheets-field,
.avery-inline-sheets-field {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 125px;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	padding: 7px 10px;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e293b;
	text-align: right;
	box-shadow: none;
	outline: none;
	background: #ffffff;
	box-sizing: border-box;
}

.avery-configurator-pdp .avery-inline-sheets-field:focus {
	outline: none;
	border-color: #0038a5;
	box-shadow: 0 0 0 2px rgba(0, 56, 165, 0.15);
}

.avery-configurator-pdp .avery-qty-limits-sub,
.avery-qty-limits-sub {
	font-size: 0.72rem;
	color: #64748b;
	line-height: 1.15;
	font-weight: 500;
}

.avery-configurator-pdp .avery-price-table-wrap,
.avery-price-table-wrap {
	width: 100%;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
	background: #ffffff;
	box-sizing: border-box;
}

.avery-configurator-pdp table.avery-price-table,
.avery-configurator-pdp .avery-price-table,
.avery-price-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	margin: 0;
	background: #ffffff;
}

.avery-configurator-pdp .avery-price-table th,
.avery-price-table th {
	padding: 10px 16px;
	background: #ffffff;
	border-bottom: 1.5px solid #cbd5e1;
	font-size: 0.82rem;
	font-weight: 700;
	color: #475569;
}

.avery-configurator-pdp .avery-price-table td,
.avery-price-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	background: transparent;
	transition: background 0.15s ease;
}

.avery-configurator-pdp .avery-price-table .col-qty,
.avery-price-table .col-qty {
	text-align: left;
}

.avery-configurator-pdp .avery-price-table .col-unit,
.avery-price-table .col-unit {
	text-align: right;
}

.avery-configurator-pdp .avery-price-table .col-total,
.avery-price-table .col-total {
	text-align: right;
}

.avery-configurator-pdp .avery-price-row,
.avery-price-row {
	cursor: pointer;
	position: relative;
}

.avery-configurator-pdp .avery-price-row:hover td,
.avery-price-row:hover td {
	background: #f8fafc;
}

/* Selected row with prominent 2px Avery Blue outline box */
.avery-configurator-pdp .avery-price-table tr.avery-price-row.is-selected-row td,
.avery-price-table tr.avery-price-row.is-selected-row td {
	background-color: #f8faff !important;
	border-top: 2px solid #0038a5 !important;
	border-bottom: 2px solid #0038a5 !important;
}

.avery-configurator-pdp .avery-price-table tr.avery-price-row.is-selected-row td:first-child,
.avery-price-table tr.avery-price-row.is-selected-row td:first-child {
	border-left: 2px solid #0038a5 !important;
}

.avery-configurator-pdp .avery-price-table tr.avery-price-row.is-selected-row td:last-child,
.avery-price-table tr.avery-price-row.is-selected-row td:last-child {
	border-right: 2px solid #0038a5 !important;
}

.avery-configurator-pdp .avery-row-sheets-text,
.avery-row-sheets-text {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: #1e293b;
}

.avery-configurator-pdp .avery-row-labels-sub,
.avery-row-labels-sub {
	display: block;
	font-size: 0.8rem;
	color: #64748b;
	margin-top: 2px;
}

.avery-configurator-pdp .avery-row-sheet-price,
.avery-row-sheet-price {
	font-size: 0.95rem;
	font-weight: 600;
	color: #334155;
}

.avery-configurator-pdp .avery-row-gross-price,
.avery-row-gross-price {
	display: block;
	font-size: 1.1rem;
	font-weight: 800;
	color: #0038a5;
}

.avery-configurator-pdp .avery-row-net-sub,
.avery-row-net-sub {
	display: block;
	font-size: 0.76rem;
	color: #64748b;
	margin-top: 2px;
}

.avery-configurator-pdp .avery-more-tiers-bar,
.avery-more-tiers-bar {
	text-align: center;
	padding: 8px 0 12px 0;
}

.avery-configurator-pdp button.avery-more-tiers-toggle-btn,
.avery-configurator-pdp .avery-more-tiers-toggle-btn,
.avery-more-tiers-toggle-btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: none;
	border: none;
	color: #0038a5;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	margin: 0;
	box-shadow: none;
	outline: none;
}

.avery-configurator-pdp .avery-more-tiers-toggle-btn:hover,
.avery-more-tiers-toggle-btn:hover {
	text-decoration: underline;
}

/* Section 6: Summary Line */
.avery-configurator-pdp .avery-selection-summary-text,
.avery-selection-summary-text {
	font-size: 0.86rem;
	color: #475569;
	line-height: 1.45;
	margin: 18px 0;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
}

.avery-configurator-pdp .avery-selection-summary-text strong,
.avery-selection-summary-text strong {
	color: #1e293b;
	font-weight: 700;
}

.avery-configurator-pdp .avery-summary-footer-box,
.avery-summary-footer-box {
	margin-top: 16px;
}

.avery-configurator-pdp .avery-cta-row,
.avery-cta-row {
	margin-bottom: 12px;
}
