/**
 * Custom Imprint Configurator shortcode styles.
 */

:root {
	--custom-imprint-accent: #ef6c21;
	--custom-imprint-text: #2e3540;
	--custom-imprint-border: #cfd3d7;
	--custom-imprint-border-strong: #bfc4c9;
	--custom-imprint-surface: #ececec;
	--custom-imprint-chip-bg: #f3f3f3;
	--custom-imprint-chip-text: #8f959c;
}

.custom-imprint-wrap {
	max-width: 760px;
	margin: 24px 0;
	padding: 0;
	background: transparent;
	color: var(--custom-imprint-text);
	font-size: 16px;
	line-height: 1.45;
}

.custom-imprint-add-imprinting-field {
	margin: 0 0 24px;
}

.custom-imprint-add-imprinting-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0 0 10px;
}

.custom-imprint-add-imprinting-label {
	display: block;
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #27303b;
}

.custom-imprint-learn-more-link {
	font-size: 15px;
	font-weight: 600;
	color: var(--custom-imprint-accent);
	text-decoration: none;
}

.custom-imprint-learn-more-link:hover {
	text-decoration: underline;
}

.custom-imprint-add-imprinting-select {
	width: 100%;
	max-width: 280px;
	/*padding: 10px 12px;*/
	border: 1px solid var(--custom-imprint-border-strong);
	border-radius: 0;
	background: #fff;
	color: #222;
	font-size: 15px;
	box-sizing: border-box;
}

.custom-imprint-field,
.custom-imprint-comments-block,
.custom-imprint-position-group,
.custom-imprint-three-cta,
.custom-imprint-tier-list {
	margin: 0 0 24px;
}

.custom-imprint-position-field {
	margin-bottom: 12px;
}

.custom-imprint-position-group {
	padding-top: 18px;
	border-top: 1px solid var(--custom-imprint-border-strong);
}

.custom-imprint-position-1 {
	margin-top: 16px;
}

.custom-imprint-position-title,
.custom-imprint-position-label,
.custom-imprint-field-label-required,
.custom-imprint-comments-block label {
	display: block;
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: #27303b;
}

.custom-imprint-position-title,
.custom-imprint-field-label-required,
.custom-imprint-comments-block label {
	font-size: 20px;
}

.custom-imprint-required {
	margin-left: 4px;
	color: var(--custom-imprint-accent);
}

.custom-imprint-tier-line {
	margin: 0 0 10px;
	font-size: 16px;
	color: #39424c;
}

.custom-imprint-tier-line strong {
	font-weight: 700;
	color: #202833;
}

.custom-imprint-position-options,
.custom-imprint-option-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.custom-imprint-position-option,
.custom-imprint-option {
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}

.custom-imprint-position-radio,
.custom-imprint-option-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0, 0, 0, 0);
}

.custom-imprint-position-option-text,
.custom-imprint-option-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 7px 12px;
	background: #fff;
	border: 1px solid var(--custom-imprint-border);
	border-radius: 0;
	color: var(--custom-imprint-chip-text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.custom-imprint-position-option:hover .custom-imprint-position-option-text,
.custom-imprint-option:hover .custom-imprint-option-text {
	border-color: #aeb4ba;
	color: #6f7881;
}

.custom-imprint-position-radio:focus + .custom-imprint-position-option-text,
.custom-imprint-option-input:focus + .custom-imprint-option-text {
	outline: 2px solid var(--custom-imprint-accent);
	outline-offset: 1px;
}

.custom-imprint-position-radio:checked + .custom-imprint-position-option-text,
.custom-imprint-option-input:checked + .custom-imprint-option-text {
	border-color: var(--custom-imprint-accent);
	background: #fff;
	color: var(--custom-imprint-accent);
}

.custom-imprint-select,
.custom-imprint-input,
.custom-imprint-textarea,
.custom-imprint-file {
	width: 100%;
	max-width: 560px;
	/*padding: 10px 12px;*/
	border: 1px solid var(--custom-imprint-border-strong);
	border-radius: 0;
	background: #fff;
	color: #222;
	font-size: 15px;
	box-sizing: border-box;
}

/* Allow JS to control the preview font on the imprint text input. */
.custom-imprint-position-group .custom-imprint-input {
	font-family: inherit;
}

.custom-imprint-textarea {
	min-height: 96px;
	resize: vertical;
}

.custom-imprint-description {
	max-width: 560px;
	margin: 8px 0 0;
	font-size: 13px;
	color: #5f6872;
}

.custom-imprint-text-color-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px;
	max-width: 560px;
	margin-top: 10px;
}

.custom-imprint-text-color-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 7px 9px;
	border: 1px solid var(--custom-imprint-border);
	background: #fff;
	color: #27303b;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-align: left;
	position: relative;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-imprint-text-color-option:hover {
	border-color: #aeb4ba;
}

.custom-imprint-text-color-option:focus {
	outline: 2px solid var(--custom-imprint-accent);
	outline-offset: 1px;
}

.custom-imprint-text-color-option.is-selected,
.custom-imprint-text-color-option[aria-checked="true"] {
	border-color: var(--custom-imprint-accent);
	color: #1f2937;
	box-shadow: inset 0 0 0 1px var(--custom-imprint-accent);
}

.custom-imprint-text-color-option-swatch {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 1px solid #c8cdd4;
	flex: 0 0 16px;
	position: relative;
}

.custom-imprint-text-color-option.is-selected .custom-imprint-text-color-option-swatch,
.custom-imprint-text-color-option[aria-checked="true"] .custom-imprint-text-color-option-swatch {
	border-color: var(--custom-imprint-accent);
}

.custom-imprint-text-color-option.is-selected .custom-imprint-text-color-option-swatch::after,
.custom-imprint-text-color-option[aria-checked="true"] .custom-imprint-text-color-option-swatch::after {
	content: "";
	position: absolute;
	inset: 4px;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.5);
}

.custom-imprint-text-color-option-label {
	display: inline-block;
}

.custom-imprint-notice-red {
	color: #b14b21;
}

.custom-imprint-quote-link {
	display: inline-block;
	color: #27303b;
	font-size: 18px;
	font-weight: 700;
	text-decoration: underline !important;
}

.custom-imprint-quote-link:hover {
	color: #FFB128;
}

/* Variation table (variable product + imprint) */
.custom-imprint-variation-table-form,
.custom-imprint-variation-table-form * {
	box-sizing: border-box;
}

.custom-imprint-variation-table-form {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.custom-imprint-init-variation-table {
	max-width: 100%;
	margin: 0 0 24px;
}

.custom-imprint-variation-table-form .custom-imprint-attribute-filters {
	margin: 0 0 20px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.custom-imprint-variation-table-form .custom-imprint-attribute-filters-label {
	display: block;
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #193b67;
	line-height: 1.3;
}

.custom-imprint-variation-table-form .custom-imprint-attribute-group {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 12px;
}

.custom-imprint-variation-table-form .custom-imprint-color-variant-selector {
	margin: 0 0 20px;
}

.custom-imprint-variation-table-form .custom-imprint-attribute-group--color .custom-imprint-variable-items {
	gap: 10px;
}

.custom-imprint-variation-table-form .custom-imprint-attribute-group--buttons .custom-imprint-variable-items {
	gap: 8px;
}

.custom-imprint-variation-table-form .custom-imprint-attribute-name {
	font-size: 14px;
	color: var(--custom-imprint-text);
	margin-right: 6px;
}

.custom-imprint-variation-table-form .custom-imprint-variable-items {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Color swatches: square with thin light gray border */
.custom-imprint-variable-item--swatch {
	cursor: pointer;
	margin: 0;
	padding: 0;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	border: 1px solid #d1d5db;
	background: #fff;
	border-radius: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-imprint-variable-item--swatch .custom-imprint-variable-item-contents {
	padding: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.custom-imprint-variable-item--swatch .custom-imprint-swatch {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
}

.custom-imprint-variable-item--swatch .custom-imprint-swatch--image {
	background-size: cover;
	background-position: center;
}

.custom-imprint-variable-item--swatch:hover {
	border-color: #9ca3af;
}

.custom-imprint-variable-item--swatch[aria-checked="true"] {
	border-color: #374151;
	border-width: 2px;
	box-shadow: 0 0 0 1px #374151;
}

/* Text/size buttons: white bg, light gray border, dark text */
.custom-imprint-variation-table-form .custom-imprint-attribute-group--buttons .custom-imprint-variable-item {
	cursor: pointer;
	margin: 0;
	padding: 0;
	border: 1px solid #e2e5e9;
	background: #f3f4f6;
	border-radius: 0;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.custom-imprint-variation-table-form .custom-imprint-attribute-group--buttons .custom-imprint-variable-item:hover {
	border-color: #c8ced6;
	background: #eceff3;
}

.custom-imprint-variation-table-form .custom-imprint-attribute-group--buttons .custom-imprint-variable-item[aria-checked="true"] {
	border-color: #193b67;
	background: #fff;
	color: #193b67;
	box-shadow: inset 0 0 0 1px #193b67;
}

.custom-imprint-variation-table-form .custom-imprint-attribute-group--buttons .custom-imprint-variable-item[aria-checked="true"] .custom-imprint-variable-item-span {
	color: #193b67;
	font-weight: 700;
}

.custom-imprint-variation-table-form .custom-imprint-attribute-group--buttons .custom-imprint-variable-item-contents {
	padding: 12px 16px;
}

.custom-imprint-variation-table-form .custom-imprint-attribute-group--buttons .custom-imprint-variable-item-span {
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	color: #7a8594;
}

/* Fallback: non-grouped items (e.g. when only one attribute type) */
.custom-imprint-variable-item {
	cursor: pointer;
	margin: 0;
	padding: 0;
	border: 1px solid #d1d5db;
	background: #fff;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.custom-imprint-variable-item:hover {
	border-color: #9ca3af;
}

.custom-imprint-variable-item[aria-checked="true"] {
	border-color: #374151;
	background: #fff;
}

.custom-imprint-variable-item-contents {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
}

.custom-imprint-variable-item-image {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: cover;
}

.custom-imprint-variable-item-span {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: #4a4a4a;
}

.custom-imprint-variation-table-form .custom-imprint-variant-table-block {
	overflow-x: auto;
	margin: 0 0 24px;
	border: 1px solid #dde2e7;
	background: #fff;
}

.custom-imprint-variation-table-form .custom-imprint-variant-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	min-width: 680px;
	table-layout: fixed;
}

.custom-imprint-variation-table-form .custom-imprint-variant-table th,
.custom-imprint-variation-table-form .custom-imprint-variant-table td {
	padding: 14px 12px;
	text-align: left;
	border: none;
	border-bottom: 1px solid #e8ebef;
	vertical-align: middle;
}

.custom-imprint-variation-table-form .custom-imprint-variant-table thead th {
	background: #33394d;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 14px;
	white-space: nowrap;
}

.custom-imprint-variation-table-form .custom-imprint-th-inner {
	display: inline;
}

.custom-imprint-variation-table-form .custom-imprint-th-sort {
	opacity: 0.8;
	margin-left: 2px;
	font-size: 0.75em;
	vertical-align: middle;
}

.custom-imprint-variation-table-form .custom-imprint-variant-table tbody tr:nth-child(even) {
	background: #f7f8fa;
}

.custom-imprint-variation-table-form .custom-imprint-variant-table tbody tr:hover {
	background: #f1f4f8;
}

.custom-imprint-variation-table-form .custom-imprint-variant-table tbody tr.custom-imprint-tr-out-of-stock,
.custom-imprint-variation-table-form .custom-imprint-variant-table tbody tr.custom-imprint-tr-out-of-stock:hover {
	background: #f8f8f8;
	opacity: 0.9;
}

.custom-imprint-variation-table-form .custom-imprint-variant-table .custom-imprint-td-price {
	white-space: nowrap;
	font-weight: 700;
}

.custom-imprint-variation-table-form .custom-imprint-td-price .custom-imprint-price-regular {
	text-decoration: line-through;
	margin-right: 6px;
	opacity: 0.85;
}

.custom-imprint-variation-table-form .custom-imprint-td-price .custom-imprint-price-sale {
	text-decoration: none;
	font-weight: 700;
	color: var(--custom-imprint-accent);
}

.custom-imprint-variation-table-form .custom-imprint-qty-input {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0;
	flex-wrap: nowrap;
	width: 150px;
	max-width: 100%;
}

.custom-imprint-variation-table-form .custom-imprint-qty-input .qty-count {
	width: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	height: 36px !important;
	padding: 0;
	border: 1px solid #cfd5dc !important;
	border-radius: 0 !important;
	background: #f4f6f8 !important;
	color: #667281 !important;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.custom-imprint-variation-table-form .custom-imprint-qty-input .qty-count:hover {
	background: #e8edf2 !important;
	border-color: #bac4ce !important;
	color: #42505f !important;
}

.custom-imprint-variation-table-form .custom-imprint-qty-input .qty-count:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.custom-imprint-variation-table-form .custom-imprint-quantity {
	display: flex;
	align-items: center;
}

.custom-imprint-variation-table-form .custom-imprint-qty-input-field {
	width: 56px !important;
	min-width: 56px !important;
	max-width: 56px !important;
	height: 36px !important;
	padding: 6px 8px;
	border: 1px solid #cfd5dc !important;
	border-left: 0 !important;
	border-right: 0 !important;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	background: #fff !important;
	color: #25313d !important;
	-moz-appearance: textfield;
	appearance: textfield;
	box-shadow: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
}

.custom-imprint-variation-table-form .custom-imprint-qty-input-field::-webkit-outer-spin-button,
.custom-imprint-variation-table-form .custom-imprint-qty-input-field::-webkit-inner-spin-button {
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}

.custom-imprint-variation-table-form .custom-imprint-qty-input-field:disabled {
	background: #f1f3f5 !important;
	color: #7d8793 !important;
	cursor: not-allowed;
}

.custom-imprint-variation-table-form .custom-imprint-stock-label {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.custom-imprint-variation-table-form .custom-imprint-stock-label-out {
	color: #b42318;
}

.custom-imprint-variation-table-form .custom-imprint-stock-label-note {
	color: #3f4a57;
}

.custom-imprint-variation-table-form .custom-imprint-qty-input--notify {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	width: auto;
}

.custom-imprint-variation-table-form .custom-imprint-notify-btn {
	min-height: 28px;
	padding: 4px 10px;
	border-radius: 2px;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-size: 12px !important;
	line-height: 1.1;
}

.custom-imprint-stock-alert-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.custom-imprint-stock-alert-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}

.custom-imprint-stock-alert-dialog {
	position: relative;
	max-width: 560px;
	margin: 12vh auto;
	background: #fff;
	padding: 18px 20px;
	border: 1px solid #d6d6d6;
	z-index: 2;
}

.custom-imprint-stock-alert-dialog h3 {
	margin: 0 0 12px;
	font-size: 36px;
	line-height: 1.1;
	font-weight: 700;
	color: #1d2a37;
}

.custom-imprint-stock-alert-dialog p {
	margin: 0 0 16px;
	font-size: 14px;
	color: #243445;
}

.custom-imprint-stock-alert-form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.custom-imprint-stock-alert-form input[type="email"] {
	min-width: 280px;
	padding: 8px 10px;
}

.custom-imprint-stock-alert-close {
	position: absolute;
	right: 12px;
	top: 8px;
	border: 0;
	background: transparent;
	font-size: 28px;
	cursor: pointer;
	line-height: 1;
}

.custom-imprint-stock-alert-message {
	flex-basis: 100%;
	margin: 6px 0 0;
	font-size: 14px !important;
}

.custom-imprint-stock-alert-message.is-success {
	color: #15803d;
}

.custom-imprint-stock-alert-message.is-error {
	color: #b42318;
}

.custom-imprint-variation-table-form .custom-imprint-stock-label {
	font-size: 11px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
}

.custom-imprint-variation-table-form .custom-imprint-subtotal-wrapper {
	margin: 0;
	font-weight: 700;
	white-space: nowrap;
	text-align: right;
}

.custom-imprint-td-add-to-cart {
	text-align: center;
}

.custom-imprint-row-add-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 36px;
	padding: 0 12px;
	background: #2563eb !important;
	color: #fff !important;
	border: none !important;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.15s ease;
}

.custom-imprint-row-add-btn:hover {
	background: #1d4ed8 !important;
	color: #fff !important;
}

.custom-imprint-cart-icon {
	font-size: 18px;
	line-height: 1;
}

.custom-imprint-imprint-block[aria-hidden="true"] {
	display: none !important;
}

.custom-imprint-variation-table-form .custom-imprint-min-qty-hint {
	margin: 0 0 20px;
	font-size: 14px;
	color: #5f6872;
}

.custom-imprint-variation-table-form .custom-imprint-add-to-cart-col {
	margin: 24px 0 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
}

.custom-imprint-inline-notices {
	margin: 0;
}

.custom-imprint-inline-notices .woocommerce-error,
.custom-imprint-inline-notices .woocommerce-message,
.custom-imprint-inline-notices .woocommerce-info {
	margin: 0;
}

.custom-imprint-variation-table-form .custom-imprint-add-to-cart-wrap {
	display: flex;
	align-items: stretch;
	gap: 16px;
	flex-wrap: wrap;
}

.custom-imprint-variation-table-form .custom-imprint-totals-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
}

.custom-imprint-variation-table-form .custom-imprint-totals-line {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	white-space: nowrap;
}

.custom-imprint-variation-table-form .custom-imprint-totals-label {
	/*font-weight: 600;*/
	font-size: 16px;
	color: #4a5563;
}

.custom-imprint-variation-table-form .custom-imprint-main-qty-field {
	display: inline-flex;
	align-items: center;
	border: 1px solid #cfd5dc;
	background: #fff;
	height: 44px;
	box-sizing: border-box;
}

.custom-imprint-variation-table-form .custom-imprint-main-qty-minus,
.custom-imprint-variation-table-form .custom-imprint-main-qty-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 100%;
	color: #8a93a0;
	font-size: 16px;
	user-select: none;
	background: #f4f6f8;
}

.custom-imprint-variation-table-form .custom-imprint-main-qty-input {
	width: 50px;
	height: 100%;
	border: none;
	border-left: 1px solid #cfd5dc;
	border-right: 1px solid #cfd5dc;
	background: transparent;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: var(--custom-imprint-text);
	padding: 0;
	margin: 0;
	-moz-appearance: textfield;
}

.custom-imprint-variation-table-form .custom-imprint-main-qty-input::-webkit-outer-spin-button,
.custom-imprint-variation-table-form .custom-imprint-main-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}

.custom-imprint-variation-table-form .custom-imprint-add-to-cart-wrap .custom-imprint-bulk-add-btn {
	flex: 1;
	min-width: 220px;
	height: 44px;
	/*background: #5f7386 !important;*/
	/*color: #fff !important;*/
	/*border: none !important;*/
	/*border-radius: 0 !important;*/
	font-size: 16px;
	/*font-weight: 600;*/
	cursor: pointer;
	/* display: flex; */
	align-items: center;
	justify-content: center;
	gap: 8px;
	/*transition: opacity 0.2s;*/
	padding: 0 20px;
}

.custom-imprint-variation-table-form .custom-imprint-add-to-cart-wrap .custom-imprint-design-vest-btn {
	flex: 1;
	min-width: 220px;
	height: 44px;
	/*background: #5f7386 !important;*/
	/*color: #fff !important;*/
	/*border: none !important;*/
	/*border-radius: 0 !important;*/
	font-size: 16px;
	/*font-weight: 600;*/
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	/*transition: opacity 0.2s;*/
	padding: 0 20px;
}

.custom-imprint-variation-table-form .custom-imprint-add-to-cart-wrap .custom-imprint-design-vest-btn:before {
	display: none;
}
/*.custom-imprint-variation-table-form .custom-imprint-add-to-cart-wrap .custom-imprint-bulk-add-btn:hover:not(:disabled) {*/
/*	background: #516577 !important;*/
/*}*/

.custom-imprint-variation-table-form .custom-imprint-bulk-add-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}


.custom-imprint-product-options {
	width: 100%;
	max-width: 520px;
	margin: 0 0 28px;
	padding: 22px 0 0;
	/* border-top: 1px solid #e5e7eb; */
}

.custom-imprint-product-options-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 14px;
}

.custom-imprint-product-options-label {
	font-size: 15px;
	font-weight: 750;
	line-height: 1.25;
	color: #111827;
}

.custom-imprint-selected-color {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	color: #6b7280;
	white-space: nowrap;
}

.custom-imprint-selected-color strong {
	color: #111827;
	font-weight: 700;
}

.custom-imprint-product-color-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.custom-imprint-product-color-swatches li {
	margin: 0;
	padding: 0;
}

.custom-imprint-product-color-swatch {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 2px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.custom-imprint-product-color-swatch:hover,
.custom-imprint-product-color-swatch:focus-visible {
	border-color: #9ca3af;
	box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
	outline: none;
}

.custom-imprint-product-color-swatch[aria-checked="true"] {
	border-color: #111827;
	box-shadow: 0 0 0 4px rgba(255, 177, 40, 0.24), 0 10px 22px rgba(17, 24, 39, 0.12);
	transform: translateY(-1px);
}

.custom-imprint-product-color-swatch-chip {
	display: block;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.12);
}


.custom-imprint-product-color-swatch--text {
	width: auto;
	min-width: 42px;
	padding: 0 14px;
}

.custom-imprint-product-color-swatch-text {
	display: block;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: #111827;
}

.custom-imprint-product-color-swatch-check {
	position: absolute;
	right: -3px;
	bottom: -3px;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	opacity: 0;
	transform: scale(0.82);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.custom-imprint-product-color-swatch[aria-checked="true"] .custom-imprint-product-color-swatch-check {
	opacity: 1;
	transform: scale(1);
}


.woocommerce-product-gallery img.custom-imprint-product-image-swapping,
.wp-post-image.custom-imprint-product-image-swapping {
	opacity: 0.35;
	transition: opacity 0.16s ease;
}

.woocommerce-product-gallery img,
.wp-post-image {
	transition: opacity 0.18s ease;
}

.custom-imprint-product-size-options {
	display: grid;
	gap: 8px;
	margin-top: 14px;
}

.custom-imprint-product-size-label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}

.custom-imprint-product-size-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	min-height: 22px;
	color: #111827;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.35;
}

.custom-imprint-product-size-chip,
.custom-imprint-product-size-separator,
.custom-imprint-product-size-empty {
	display: inline-flex;
	align-items: center;
}

.custom-imprint-product-size-separator {
	color: #9ca3af;
	font-weight: 600;
}

.custom-imprint-product-size-empty {
	color: #6b7280;
	font-weight: 500;
}

.custom-imprint-product-design-options {
	min-width: 0;
	margin: 20px 0 0;
	padding: 20px 0 0;
	border: 0;
	border-top: 1px dashed #d5d8df;
}

.custom-imprint-product-design-options-title {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	color: #111827;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.25;
	text-transform: capitalize;
}

.custom-imprint-product-design-options-help,
.custom-imprint-product-design-note-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	font-family: Arial, sans-serif;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	line-height: 1;
}

.custom-imprint-product-design-options-help {
	color: #9ca3af;
	cursor: help;
}

.custom-imprint-product-design-options-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.custom-imprint-product-design-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 72px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #d7d9df;
	border-radius: 7px;
	background: #fff;
	color: #111827;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.custom-imprint-product-design-option:hover {
	border-color: #9298a4;
}

.custom-imprint-product-design-option:has(input:checked) {
	border-color: #0d2a55;
	box-shadow: inset 0 0 0 1px #0d2a55;
}

.custom-imprint-product-design-option:has(input:focus-visible) {
	outline: 2px solid #0d2a55;
	outline-offset: 2px;
}

.custom-imprint-product-design-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.custom-imprint-product-design-option-radio {
	position: relative;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border: 2px solid #737985;
	border-radius: 999px;
	background: #fff;
}

.custom-imprint-product-design-option input:checked + .custom-imprint-product-design-option-radio {
	border-color: #0d2a55;
	background: #0d2a55;
}

.custom-imprint-product-design-option input:checked + .custom-imprint-product-design-option-radio::after {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 999px;
	background: #fff;
}

.custom-imprint-product-design-option-copy {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.custom-imprint-product-design-option-copy strong {
	color: #111827;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.25;
}

.custom-imprint-product-design-option-copy small {
	color: #58627a;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.custom-imprint-product-design-note {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	margin: 14px 0 0;
	padding: 10px 14px;
	border: 1px solid #c9baff;
	border-radius: 6px;
	background: #f7f4ff;
	color: #14213d;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.custom-imprint-product-design-note-icon {
	flex: 0 0 19px;
	width: 19px;
	height: 19px;
	color: #4f35ff;
	font-size: 12px;
}

.custom-imprint-product-no-design-panel {
	width: 100%;
	margin-top: 14px;
	overflow: visible;
}

.custom-imprint-product-no-design-panel[hidden] {
	display: none !important;
}

.custom-imprint-product-no-design-panel h3 {
	margin: 0 0 10px;
	color: #111827;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.3;
}

.custom-imprint-product-quantity-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px 10px;
	width: 100%;
	overflow: visible;
}

.custom-imprint-product-quantity-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	min-width: 0;
	min-height: 38px;
	padding: 4px 6px 4px 10px;
	border: 1px solid #d7d9df;
	border-radius: 5px;
	background: #fff;
	overflow: visible;
}

.custom-imprint-product-quantity-row > strong {
	min-width: 0;
	color: #111827;
	font-size: 11px;
	font-weight: 750;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.custom-imprint-product-quantity-control {
	display: grid;
	grid-template-columns: 24px minmax(38px, auto) 24px;
	align-items: center;
	flex: 0 0 auto;
	border: 1px solid #e1e4e9;
	overflow: visible;
}

.custom-imprint-product-quantity-control button {
	display: grid;
	place-items: center;
	width: 24px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fafbfc;
	color: #0d2a55;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.custom-imprint-product-quantity-control .qty-count:hover,
.custom-imprint-product-quantity-control .qty-count:focus-visible {
	background: #0d2a55;
	color: #fff;
	outline: none;
}

.custom-imprint-product-quantity-control .qty-count:active {
	background: #071a37;
	color: #fff;
	transform: translateY(1px);
}

.custom-imprint-product-quantity-control input {
	width: 100%;
	min-width: 38px;
	max-width: 58px;
	height: 26px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-right: 1px solid #e1e4e9;
	border-left: 1px solid #e1e4e9;
	background: transparent;
	color: #0d2a55;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
}

.custom-imprint-product-quantity-control input::-webkit-outer-spin-button,
.custom-imprint-product-quantity-control input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.custom-imprint-product-no-design-cart,
.custom-imprint-product-no-design-cart.button.alt {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 220px !important;
	min-height: 52px;
	margin-top: 12px;
	padding: 0 24px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: #0d2a55 !important;
	color: #fff !important;
	font-size: 18px;
	font-weight: 750;
	line-height: 1 !important;
	text-transform: capitalize;
}

.custom-imprint-product-no-design-cart:hover:not(:disabled) {
	background: #173d73 !important;
}

.custom-imprint-product-no-design-cart:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.custom-imprint-product-design-cta {
	margin-top: 24px;
}

.custom-imprint-product-design-btn,
.custom-imprint-product-design-btn.button.alt {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	min-width: 220px;
	padding: 0 24px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: #0d2a55 !important;
	color: #fff !important;
	font-size: 18px;
	font-weight: 750;
	line-height: 1 !important;
	text-decoration: none !important;
	text-transform: capitalize;
	box-shadow: none;
	transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.custom-imprint-product-design-btn:hover,
.custom-imprint-product-design-btn:focus-visible {
	background: #173d73 !important;
	box-shadow: none;
	transform: translateY(-1px);
	outline: none;
}

.custom-imprint-product-design-btn svg {
	flex: 0 0 auto;
}

.custom-imprint-product-design-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

@media (max-width: 520px) {
	.custom-imprint-product-options {
		max-width: 100%;
	}

	.custom-imprint-product-options-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.custom-imprint-selected-color {
		white-space: normal;
	}

	.custom-imprint-product-design-options-grid {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 420px) {
	.custom-imprint-product-quantity-grid {
		gap: 6px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 320px) {
	.custom-imprint-product-quantity-grid {
		grid-template-columns: 1fr;
	}
}

.custom-imprint-no-variations {
	margin: 16px 0;
	padding: 12px;
	background: #f8f9fa;
	border-left: 4px solid var(--custom-imprint-accent);
}

@media (max-width: 767px) {
	.custom-imprint-wrap {
		padding: 0;
	}

	.custom-imprint-position-title,
	.custom-imprint-position-label,
	.custom-imprint-field-label-required,
	.custom-imprint-comments-block label {
		font-size: 16px;
	}

	.custom-imprint-tier-line {
		font-size: 16px;
	}

	.custom-imprint-variant-table th,
	.custom-imprint-variant-table td {
		padding: 8px 10px;
		font-size: 14px;
	}

	.custom-imprint-variation-table-form .custom-imprint-attribute-group {
		gap: 8px;
	}

	.custom-imprint-variation-table-form .custom-imprint-attribute-group--buttons .custom-imprint-variable-item-contents {
		padding: 10px 12px;
	}

	.custom-imprint-variation-table-form .custom-imprint-add-to-cart-wrap {
		flex-direction: column;
	}

	.custom-imprint-variation-table-form .custom-imprint-main-qty-field,
	.custom-imprint-variation-table-form .custom-imprint-add-to-cart-wrap .custom-imprint-bulk-add-btn {
		width: 100%;
	}
}
