.doko-embrodery-toggle {
	margin-top: 10px;
	padding: 8px 10px;
	/* border: 1px solid #e6e6e6;
	border-radius: 8px; */
	/* background: #fafafa; */
	font-size: 14px;
	pointer-events: auto !important;
	position: relative;
	z-index: 3;
}

/* .doko-embrodery-toggle__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 8px 12px;
	border: 1.5px solid #1355c5;
	border-radius: 6px;
	background: transparent;
	color: #1355c5;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	pointer-events: auto !important;
} */

.doko-embrodery-toggle__btn:hover {
	background: #1355c5;
	color: #fff;
}

.doko-embrodery-toggle__edit {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 8px;
	border: 0;
	background: transparent;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: #1355c5;
	text-decoration: underline;
	cursor: pointer;
	pointer-events: auto !important;
}

.doko-embrodery-toggle__summary {
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.4;
	color: #3b3b3b;
	word-break: break-word;
}

.doko-embrodery-field__label {
	display: block;
	font-weight: 600;
	margin: 10px 0 6px;
}

.doko-embrodery-field__input,
.doko-embrodery-field__select {
	width: 100%;
	margin: 0;
	padding: 9px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
}

.doko-embrodery-field__preview {
	min-height: 34px;
	margin-top: 10px;
	padding: 8px 10px;
	border: 1px dashed #d1d5db;
	border-radius: 6px;
	background: #fafafa;
	font-size: 18px;
	line-height: 1.35;
	word-break: break-word;
}

.doko-embrodery-modal {
	display: none;
	width: 95%;
	max-width: 760px;
}

.doko-embrodery-modal.is-open {
	display: inline-block;
}

.doko-embrodery-modal__dialog {
	position: relative;
	max-width: 100%;
	margin: 0;
	padding: 18px 18px 16px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
	max-height: 80vh;
	overflow-y: auto;
}

.doko-embrodery-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	font-size: 24px;
	line-height: 1;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.doko-embrodery-modal__title {
	margin: 0;
	padding-right: 25px;
	font-size: 20px;
}

.doko-embrodery-modal__product {
	margin: 6px 0 10px;
	font-size: 14px;
	color: #4b5563;
}

.doko-embrodery-modal__counter {
	margin: 6px 0 4px;
	font-size: 12px;
	color: #6b7280;
}

.doko-embrodery-modal__rules {
	margin: 10px 0;
	padding: 10px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
}

.doko-embrodery-modal__rule-row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 4px;
}

.doko-embrodery-modal__rule-row:last-child {
	margin-bottom: 0;
}

.doko-embrodery-modal__price-row {
	margin: 12px 0 4px;
	font-size: 14px;
}

.doko-embrodery-modal__screen-extras {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #e5e7eb;
}

.doko-embrodery-modal__screen-extras-title {
	margin: 0 0 6px;
	font-weight: 600;
	font-size: 13px;
}

.doko-embrodery-modal__screen-extras-list {
	margin: 0;
	padding-left: 18px;
	font-size: 12px;
	line-height: 1.4;
	color: #374151;
}

.doko-embrodery-modal__actions {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.doko-embrodery-modal__btn {
	border: 1px solid #111827;
	padding: 9px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	background: #fff;
}

.doko-embrodery-modal__btn--save {
	background: #111827;
	color: #fff;
}

@media (max-width: 768px) {
	.doko-embrodery-modal {
		width: 100%;
	}

	.doko-embrodery-modal__dialog {
		border-radius: 0;
		max-width: none;
		max-height: 90vh;
	}
}

.woocommerce-cart-form__cart-item dl.variation dd {
	display: block;
	margin: 0 0 5px 0;
}

.woocommerce-cart-form__cart-item dl.variation dd:before {
	content: '' !important;
}

.woocommerce-cart-form__cart-item dl.variation dt,
.woocommerce-cart-form__cart-item dl.variation dd {
	float: none;
	display: block;
}

/* Embroidery button inside product info modal */
.doko-embrodery-modal-btn-wrap {
	padding: 12px 0 0;
}

/* .doko-embrodery-modal-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	justify-content: center;
	padding: 10px 18px;
	font-size: 0.938em;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid #0071a1;
	border-radius: 4px;
	background: transparent;
	color: #0071a1;
	transition: background 0.2s, color 0.2s;
	box-sizing: border-box;
} */

.doko-embrodery-modal-btn:hover {
	background: #0071a1;
	color: #fff;
}

/* ── Variation swatches ── */

.doko-variation-swatches {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 4px;
	pointer-events: auto !important;
	position: relative;
	z-index: 3;
}

.doko-variation-swatches__label {
	font-size: 12px;
	font-weight: 600;
	color: #555;
	margin-right: 2px;
}

.doko-variation-swatches__options {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.doko-variation-swatch {
	width: 26px;
	height: 26px;
	min-width: 26px;
	border-radius: 50%;
	border: 2px solid #d1d5db;
	padding: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s, box-shadow 0.15s;
	background: #e5e5e5;
	overflow: hidden;
	box-sizing: border-box;
}

.doko-variation-swatch:hover {
	border-color: #888;
}

.doko-variation-swatch.is-active {
	border-color: #1355c5;
	box-shadow: 0 0 0 2px rgba(19, 85, 197, .3);
}

.doko-variation-swatch__text {
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	color: #333;
	text-transform: uppercase;
	pointer-events: none;
}

/* ── Box Size Progress Bar ── */
.doko-box-size-progress {
	margin: 12px 0;
	font-size: 13px;
}

.doko-box-size-progress__track {
	display: flex;
	width: 100%;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #c8ddf0;
	background: #f5f5f5;
}

.doko-box-size-progress__segment {
	position: relative;
	flex: 1 1 0%;
	min-height: 38px;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 2px;
	border-right: 2px solid #c8ddf0;
	transition: background 0.3s;
}

.doko-box-size-progress__segment:last-child {
	border-right: none;
}

.doko-box-size-progress__segment-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: rgba(19, 85, 197, 0.15);
	transition: width 0.35s ease;
	pointer-events: none;
}

.doko-box-size-progress__segment.is-reached .doko-box-size-progress__segment-fill {
	width: 100% !important;
	background: rgba(19, 85, 197, 0.2);
}

.doko-box-size-progress__segment.is-reached {
	background: #e0edff;
}

.doko-box-size-progress__segment.is-active {
	background: #f0f7fc;
}

.doko-box-size-progress__segment-label {
	position: relative;
	z-index: 1;
	font-weight: 700;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	font-size: 11px;
	line-height: 1;
}

.doko-box-size-progress__segment.is-reached .doko-box-size-progress__segment-label {
	color: #1355c5;
}

.doko-box-size-progress__segment-count {
	position: relative;
	z-index: 1;
	color: #777;
	font-size: 11px;
	line-height: 1;
}

.doko-box-size-progress__segment.is-reached .doko-box-size-progress__segment-count,
.doko-box-size-progress__segment.is-active .doko-box-size-progress__segment-count {
	color: #1355c5;
	font-weight: 600;
}

/* Progress bar inside the total details modal */
.doko-box-size-progress-row td {
	padding: 8px 10px 12px !important;
}

.doko-box-size-progress-row .doko-box-size-progress {
	margin: 0;
}

/* ── Box Size Modal ── */
.doko-box-size-modal {
	display: none;
	width: 90%;
	max-width: 420px;
}

.doko-box-size-modal.is-open {
	display: inline-block;
}

.doko-box-size-modal__dialog {
	position: relative;
	padding: 32px 24px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	text-align: center;
}

.doko-box-size-modal__icon {
	font-size: 54px;
	color: #1355c5;
	margin-bottom: 20px;
	animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
	0% { transform: scale(0.5); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

.doko-box-size-modal__title {
	margin: 0 0 16px;
	font-size: 24px;
	font-weight: 800;
	color: #1b1b1b;
}

.doko-box-size-modal__message {
	margin-bottom: 28px;
	font-size: 16px;
	line-height: 1.6;
	color: #4a4a4a;
}

.doko-box-size-modal__actions {
	display: flex;
	justify-content: center;
}

.doko-box-size-modal__btn--ok {
	padding: 12px 42px;
	border: none;
	border-radius: 50px;
	background: linear-gradient(135deg, #1355c5, #0e3d8f);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 15px rgba(19, 85, 197, 0.2);
	transition: all 0.2s ease-in-out;
}

.doko-box-size-modal__btn--ok:hover {
	background: linear-gradient(135deg, #0e3d8f, #092a68);
	transform: translateY(-2px);
	box-shadow: 0 12px 20px rgba(19, 85, 197, 0.3);
}