.woocommerce-product-gallery__image {
	position: relative;
}

.eadp-gallery-overlay-wrap {
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	position: absolute;
	z-index: 4;
}

.eadp-gallery-overlay {
	display: block;
	height: 100%;
	overflow: visible;
	width: 100%;
}

.eadp-preview-area.is-inactive:not(.is-preview-selected) {
	display: none;
}

.eadp-preview-area.is-preview-selected .eadp-preview-boundary,
.eadp-preview-area.is-preview-selected .eadp-preview-boundary.is-hidden {
	display: initial;
	fill: rgba(56, 88, 233, 0.12);
	stroke: #3858e9;
	stroke-dasharray: 10 5;
	stroke-width: 3px;
}

.eadp-preview-boundary {
	stroke-dasharray: 6 4;
	stroke-width: 1.5px;
}

.eadp-preview-boundary.is-hidden {
	display: none;
}

.eadp-preview-text {
	dominant-baseline: auto;
	pointer-events: none;
}

.eadp-engraving-form {
	--eadp-accent: #3858e9;
	--eadp-border: #dcdcde;
	--eadp-dark: #252525;
	--eadp-muted: #646970;
	border: 1px solid var(--eadp-border);
	border-radius: 7px;
	box-sizing: border-box;
	clear: both;
	container-type: inline-size;
	margin: 0 0 20px;
	overflow: hidden;
}

.eadp-engraving-form *,
.eadp-engraving-form *::before,
.eadp-engraving-form *::after {
	box-sizing: border-box;
}

.eadp-global-gate {
	align-items: center;
	background: #fff;
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
	padding: 16px;
}

.eadp-global-gate > div {
	min-width: 0;
}

.eadp-global-gate .eadp-kicker,
.eadp-form-heading .eadp-kicker {
	color: var(--eadp-accent);
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 2px;
	text-transform: uppercase;
}

.eadp-global-gate h2,
.eadp-form-heading h2 {
	font-size: 1.22em;
	line-height: 1.25;
	margin: 0 0 4px;
}

.eadp-global-gate > div:first-child > p:last-child,
.eadp-form-heading > div > p:last-child {
	color: var(--eadp-muted);
	font-size: 0.84em;
	line-height: 1.4;
	margin: 0;
}

.eadp-global-choice {
	display: grid;
	gap: 6px;
}

.eadp-global-engraving {
	appearance: auto;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 5px;
	font: inherit;
	min-height: 44px;
	padding: 7px 10px;
	width: 100%;
}

.eadp-global-choice-buttons {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eadp-global-choice-buttons[hidden],
.eadp-designer-workflow[hidden] {
	display: none !important;
}

.eadp-global-choice-button {
	background: #fff;
	border: 1px solid #a7aaad;
	border-radius: 5px;
	color: #2c3338;
	cursor: pointer;
	font: inherit;
	font-size: 0.86em;
	font-weight: 700;
	line-height: 1.25;
	min-height: 46px;
	padding: 8px 10px;
}

.eadp-global-choice-button:hover,
.eadp-global-choice-button:focus {
	border-color: var(--eadp-accent);
	box-shadow: 0 0 0 1px var(--eadp-accent);
	outline: 0;
}

.eadp-global-choice-button.is-selected {
	background: var(--eadp-accent);
	border-color: var(--eadp-accent);
	color: #fff;
}

.eadp-global-choice-button.is-selected[data-choice=""] {
	background: #50575e;
	border-color: #50575e;
}

.eadp-global-choice-button:disabled {
	cursor: not-allowed;
	opacity: 0.48;
}

.eadp-global-error {
	color: #b32d2e;
	font-size: 0.76em;
	font-weight: 600;
	line-height: 1.35;
	margin: 2px 0 0;
}

.eadp-enhanced .eadp-global-engraving {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.eadp-form-heading {
	align-items: center;
	background: #fff;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: 16px;
}

.eadp-form-heading > div {
	min-width: 0;
}

.eadp-proof-actions {
	align-items: flex-end;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 4px;
}

.eadp-proof-message {
	color: var(--eadp-muted);
	font-size: 0.68em;
	line-height: 1.25;
	max-width: 180px;
	text-align: right;
}

.eadp-proof-message.is-error {
	color: #b32d2e;
}

.eadp-download-preview {
	align-items: center;
	background: #fff;
	border: 1px solid var(--eadp-accent);
	border-radius: 4px;
	color: var(--eadp-accent);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font: inherit;
	font-size: 0.78em;
	font-weight: 600;
	gap: 4px;
	min-height: 34px;
	padding: 5px 9px;
}

.eadp-download-preview:hover,
.eadp-download-preview:focus {
	background: #f0f4ff;
	color: #1d35b4;
}

.eadp-download-preview:disabled {
	cursor: wait;
	opacity: 0.65;
}

.eadp-preview-status {
	align-items: center;
	background: #f6f7f7;
	border-bottom: 1px solid var(--eadp-border);
	border-top: 1px solid var(--eadp-border);
	color: var(--eadp-muted);
	display: flex;
	font-size: 0.75em;
	gap: 7px;
	padding: 8px 12px;
}

.eadp-preview-dot {
	background: #00a32a;
	border-radius: 50%;
	flex: 0 0 7px;
	height: 7px;
	width: 7px;
}

.eadp-workflow-step {
	color: var(--eadp-muted);
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.3;
	text-transform: uppercase;
}

.eadp-surface-nav {
	background: #fff;
	border-bottom: 1px solid var(--eadp-border);
	display: grid;
	gap: 8px;
	padding: 12px;
}

.eadp-surface-nav[hidden] {
	display: none;
}

.eadp-surface-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.eadp-surface-tab {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	color: #2c3338;
	cursor: pointer;
	font: inherit;
	font-size: 0.8em;
	font-weight: 600;
	min-height: 36px;
	padding: 7px 13px;
}

.eadp-surface-tab:hover,
.eadp-surface-tab:focus {
	border-color: var(--eadp-accent);
	outline: 0;
}

.eadp-surface-tab.is-active {
	background: var(--eadp-accent);
	border-color: var(--eadp-accent);
	color: #fff;
}

.eadp-selection-summary {
	align-items: center;
	background: #f9fafb;
	border-bottom: 1px solid var(--eadp-border);
	display: flex;
	gap: 14px;
	justify-content: space-between;
	padding: 11px 12px;
}

.eadp-selection-summary > div {
	display: grid;
	flex: 0 0 auto;
	gap: 2px;
}

.eadp-selection-count {
	color: var(--eadp-dark);
	font-size: 0.88em;
}

.eadp-selection-help {
	color: var(--eadp-muted);
	font-size: 0.75em;
	line-height: 1.4;
	text-align: right;
}

.eadp-required-note {
	color: #b32d2e;
	margin-left: auto;
}

.eadp-areas-grid {
	align-items: start;
	background: #f6f7f7;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 12px;
}

.eadp-single-area-product .eadp-selection-summary {
	display: none;
}

.eadp-single-area-product .eadp-areas-grid {
	grid-template-columns: 1fr;
}

.eadp-single-area-product.eadp-enhanced .eadp-area-choice {
	display: none;
}

.eadp-engraving-area {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	padding: 0;
}

.eadp-engraving-area.eadp-surface-hidden {
	display: none !important;
}

.eadp-engraving-area.is-preview-selected {
	border-color: var(--eadp-accent);
	box-shadow: 0 0 0 1px var(--eadp-accent);
}

.eadp-engraving-area.is-preview-selected .eadp-area-card-header {
	background: #f0f4ff;
}

.eadp-area-card-header {
	align-items: center;
	background: #fff;
	border-bottom: 1px solid #ececec;
	color: var(--eadp-dark);
	display: flex;
	gap: 8px;
	justify-content: space-between;
	min-height: 38px;
	padding: 8px 11px;
}

.eadp-area-card-header > div {
	align-items: flex-start;
	display: flex;
	gap: 4px;
	min-width: 0;
}

.eadp-area-card-header h3 {
	color: inherit;
	font-size: 0.9em;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.eadp-required-marker {
	color: #b32d2e;
	font-size: 1em;
	line-height: 1;
}

.eadp-area-price {
	background: #f0f0f1;
	border-radius: 999px;
	color: #2c3338;
	flex: 0 0 auto;
	font-size: 0.68em;
	font-weight: 600;
	line-height: 1.2;
	padding: 3px 6px;
}

.eadp-area-card-content {
	padding: 11px;
}

.eadp-area-choice,
.eadp-font-choice {
	display: grid;
	gap: 4px;
	margin: 0;
}

.eadp-choice-buttons {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eadp-choice-buttons[hidden] {
	display: none;
}

.eadp-choice-button {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	color: #2c3338;
	cursor: pointer;
	font: inherit;
	font-size: 0.78em;
	font-weight: 600;
	line-height: 1.25;
	min-height: 40px;
	padding: 7px 8px;
}

.eadp-choice-button:hover,
.eadp-choice-button:focus {
	border-color: var(--eadp-accent);
	outline: 0;
}

.eadp-choice-button.is-selected {
	background: var(--eadp-accent);
	border-color: var(--eadp-accent);
	color: #fff;
}

.eadp-choice-button.is-selected[data-choice=""] {
	background: #50575e;
	border-color: #50575e;
}

.eadp-choice-button:disabled {
	cursor: not-allowed;
	opacity: 0.48;
}

.eadp-enhanced .eadp-area-enabled {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.eadp-area-choice > span,
.eadp-font-choice > span,
.eadp-line-field label {
	color: #383838;
	font-size: 0.7em;
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1.3;
	text-transform: uppercase;
}

.eadp-area-enabled,
.eadp-font-select {
	appearance: auto;
	background-color: transparent;
	border: 0;
	border-bottom: 1px solid #d6d6d6;
	border-radius: 0;
	box-shadow: none;
	color: #202020;
	font-size: 0.95em;
	font-weight: 600;
	height: 38px;
	margin: 0;
	max-width: none;
	padding: 4px 26px 4px 0;
	width: 100%;
}

.eadp-area-enabled:focus,
.eadp-font-select:focus {
	border-bottom-color: var(--eadp-accent);
	box-shadow: 0 1px 0 var(--eadp-accent);
	outline: 0;
}

.eadp-area-enabled option,
.eadp-font-select option {
	background: #fff;
	color: #222;
	font-size: 1rem;
	font-weight: 400;
	padding: 7px;
}

.eadp-area-toggle {
	align-items: center;
	cursor: pointer;
	display: flex;
	font-size: 0.82em;
	font-weight: 600;
	gap: 7px;
	margin: 3px 0;
}

.eadp-area-toggle input {
	flex: 0 0 auto;
	margin: 0;
}

.eadp-required-area-label {
	color: #50575e;
	font-size: 0.78em;
	margin: 2px 0;
}

.eadp-area-details {
	border-top: 1px solid #e1e1e1;
	margin-top: 10px;
	padding-top: 11px;
}

.eadp-line-fields {
	display: grid;
	gap: 11px;
}

.eadp-line-field {
	display: grid;
	gap: 4px;
}

.eadp-line-field label {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: space-between;
	margin: 0;
}

.eadp-line-field input {
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	box-shadow: none;
	font: inherit;
	height: 44px;
	margin: 0;
	max-width: none;
	padding: 8px 10px;
	width: 100%;
}

.eadp-line-field input:focus {
	border-color: var(--eadp-accent);
	box-shadow: 0 0 0 1px var(--eadp-accent);
	outline: 0;
}

.eadp-character-count {
	color: var(--eadp-muted);
	font-size: 0.92em;
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
}

.eadp-area-image-hint {
	color: var(--eadp-muted);
	font-size: 0.67em;
	line-height: 1.35;
	margin: 9px 0 0;
}

.eadp-area-error {
	color: #b32d2e;
	font-size: 0.76em;
	font-weight: 600;
	line-height: 1.35;
	margin: 9px 0 0;
}

.eadp-engraving-area.eadp-has-error {
	border-color: #b32d2e;
	box-shadow: 0 0 0 1px #b32d2e;
}

.eadp-engraving-area.eadp-has-error .eadp-area-card-header {
	background: #fcf0f1;
	color: #8a2424;
}

.eadp-proof-disclaimer {
	background: #fff;
	border-top: 1px solid var(--eadp-border);
	color: var(--eadp-muted);
	font-size: 0.68em;
	line-height: 1.4;
	margin: 0;
	padding: 8px 12px;
}

@container (max-width: 480px) {
	.eadp-global-gate {
		align-items: stretch;
		grid-template-columns: 1fr;
	}

	.eadp-form-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.eadp-proof-actions {
		align-items: flex-start;
	}

	.eadp-proof-message {
		text-align: left;
	}

	.eadp-areas-grid {
		grid-template-columns: 1fr;
	}

	.eadp-required-note {
		margin-left: 0;
	}

	.eadp-preview-status {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.eadp-selection-summary {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.eadp-selection-help {
		text-align: left;
	}
}

@media screen and (max-width: 520px) {
	.eadp-global-gate {
		align-items: stretch;
		grid-template-columns: 1fr;
	}

	.eadp-areas-grid {
		grid-template-columns: 1fr;
	}
}
