/**
 * WC Product Designer - frontend styles
 *
 * Everything is scoped under .wctd-root, or under the drawer and popover
 * wrappers which sit at the end of the body. No CSS variables, all values
 * hardcoded, so a theme stripping custom properties cannot affect this.
 */

.wctd-root {
	margin: 0 0 24px;
	color: #16181d;
	font-size: 14px;
	line-height: 1.5;
}

.wctd-root *,
.wctd-root *::before,
.wctd-root *::after {
	box-sizing: border-box;
}

/* ==========================================================
   TWO COLUMN LAYOUT
   Flex with a flex-basis rather than a grid with a media query,
   so it reacts to the container it is dropped into, not to the
   browser window. Above 900px the split is forced to 50 / 50.
   The !important guards against themes resetting display on
   child elements, which is the usual way this gets broken.
   ========================================================== */

.wctd-root.wctd-layout {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 36px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
}

.wctd-root.wctd-layout > .wctd-col-media,
.wctd-root.wctd-layout > .wctd-col-summary {
	flex: 1 1 300px;
	min-width: 0;
	max-width: 100%;
	float: none;
	padding: 0;
	border: 0;
	background: none;
}

@media (min-width: 900px) {
	.wctd-root.wctd-layout > .wctd-col-media,
	.wctd-root.wctd-layout > .wctd-col-summary {
		flex: 0 0 calc(50% - 18px);
		max-width: calc(50% - 18px);
	}

	.wctd-col-media {
		position: sticky;
		top: 20px;
	}
}

/* ==========================================================
   MEDIA COLUMN
   ========================================================== */

.wctd-stage {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #f6f7f9;
	overflow: hidden;
	line-height: 0;
}

.wctd-stage .canvas-container {
	max-width: 100%;
	margin: 0 auto;
}

.wctd-thumbs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.wctd-thumbs:empty {
	display: none;
}

.wctd-thumb {
	width: 66px;
	height: 66px;
	padding: 4px;
	border: 1px solid #dfe3e9;
	border-radius: 6px;
	background: #ffffff;
	cursor: pointer;
	line-height: 0;
}

.wctd-thumb.is-on {
	border-color: #0f6fd4;
	box-shadow: inset 0 0 0 1px #0f6fd4;
}

.wctd-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.wctd-spec {
	width: 100%;
	margin-top: 18px;
	border-collapse: collapse;
	font-size: 13px;
}

.wctd-spec th,
.wctd-spec td {
	padding: 9px 4px;
	border: 0;
	border-bottom: 1px solid #eceff3;
	text-align: left;
	font-weight: 400;
	color: #4b5262;
}

.wctd-spec th {
	width: 40%;
	color: #8a919e;
}

/* ==========================================================
   PRODUCT DETAIL ACCORDION
   ========================================================== */

.wctd-acc {
	margin-top: 18px;
	border-top: 1px solid #e4e7ec;
}

.wctd-acc-item {
	border-bottom: 1px solid #e4e7ec;
}

.wctd-acc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 15px 4px;
	border: 0;
	background: none;
	color: #16181d;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.wctd-acc-head:hover {
	color: #0f6fd4;
}

/* Plus that becomes a minus, drawn rather than an icon font */
.wctd-acc-sign {
	position: relative;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border: 1px solid #d8dce3;
	border-radius: 11px;
}

.wctd-acc-sign::before,
.wctd-acc-sign::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: #4b5262;
	transform: translate(-50%, -50%);
	transition: opacity 0.18s ease;
}

.wctd-acc-sign::before { width: 10px; height: 2px; }
.wctd-acc-sign::after { width: 2px; height: 10px; }

.wctd-acc-item.is-open .wctd-acc-sign {
	border-color: #0f6fd4;
	background: #0f6fd4;
}

.wctd-acc-item.is-open .wctd-acc-sign::before { background: #ffffff; }
.wctd-acc-item.is-open .wctd-acc-sign::after { opacity: 0; }

.wctd-acc-body {
	display: none;
	padding: 0 4px 18px;
	color: #4b5262;
	line-height: 1.65;
}

.wctd-acc-item.is-open .wctd-acc-body {
	display: block;
}

.wctd-acc-body > *:first-child { margin-top: 0; }
.wctd-acc-body > *:last-child { margin-bottom: 0; }

.wctd-detail-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.wctd-detail-table th,
.wctd-detail-table td {
	padding: 8px 4px;
	border: 0;
	border-bottom: 1px solid #eceff3;
	text-align: left;
	vertical-align: top;
}

.wctd-detail-table th {
	width: 40%;
	color: #8a919e;
	font-weight: 400;
}

.wctd-detail-note {
	margin: 10px 0 0;
	font-size: 12px;
	color: #8a919e;
}

/* ==========================================================
   TITLE AND PRICE CHART
   ========================================================== */

.wctd-title {
	margin: 0 0 12px;
	padding: 0;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 700;
}

.wctd-price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 18px;
	font-size: 24px;
	font-weight: 700;
	color: #16181d;
}

.wctd-price:empty {
	display: none;
}

/* WooCommerce wraps the old price in del and the new one in ins */
.wctd-price del {
	font-size: 18px;
	font-weight: 400;
	color: #8a919e;
	text-decoration: line-through;
}

.wctd-price ins {
	background: none;
	text-decoration: none;
	color: #16181d;
}

.wctd-price .woocommerce-Price-amount {
	font-weight: inherit;
}

.wctd-price-sale {
	padding: 3px 10px;
	border-radius: 4px;
	background: #d8380f;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.wctd-excerpt {
	margin: 0 0 18px;
	color: #4b5262;
	line-height: 1.6;
}

.wctd-pricechart {
	margin: 0 0 18px;
	border: 1px solid #0f2d5e;
	border-radius: 8px;
	overflow: hidden;
}

.wctd-pricechart:empty {
	display: none;
}

.wctd-pricechart-head {
	padding: 9px 12px;
	background: #0f2d5e;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.wctd-pricechart-scroll {
	overflow-x: auto;
}

.wctd-pricechart table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	white-space: nowrap;
}

.wctd-pricechart td {
	padding: 7px 10px;
	border: 1px solid #e4e7ec;
	text-align: center;
	color: #2c3342;
}

.wctd-pricechart tr:first-child td {
	background: #f4f6f9;
	font-weight: 600;
}

.wctd-pricechart-prices td {
	font-weight: 600;
}

.wctd-pricechart td.is-on {
	background: #0f6fd4;
	border-color: #0f6fd4;
	color: #ffffff;
}

/* ==========================================================
   STEPS
   ========================================================== */

.wctd-steps {
	margin: 0 0 18px;
}

.wctd-step {
	margin-bottom: 10px;
	border-radius: 8px;
	overflow: hidden;
}

.wctd-step-head {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	border: 0;
	background: #0f2d5e;
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.wctd-step-head:hover {
	background: #143a76;
}

.wctd-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 13px;
	font-size: 13px;
	font-weight: 700;
}

.wctd-step-title {
	flex: 1 1 auto;
	min-width: 0;
}

.wctd-step-pick {
	flex: 0 0 auto;
	max-width: 42%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 500;
	color: #9fc2f5;
}

.wctd-step-caret {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-right: 2px solid #ffffff;
	border-bottom: 2px solid #ffffff;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.18s ease;
}

.wctd-step.is-open .wctd-step-caret {
	transform: rotate(225deg) translate(-3px, -3px);
}

.wctd-step-body {
	display: none;
	padding: 18px 16px;
	background: #ffffff;
	border: 1px solid #e2e5ea;
	border-top: 0;
}

.wctd-step.is-open .wctd-step-body {
	display: block;
}

/* ==========================================================
   TILES AND SWATCHES
   ========================================================== */

.wctd-grid {
	display: grid;
	gap: 10px;
}

.wctd-grid-img {
	grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
}

.wctd-grid-txt {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.wctd-grid-swatch {
	grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.wctd-tile,
.wctd-swatch {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 10px 8px;
	border: 1px solid #dfe3e9;
	border-radius: 8px;
	background: #ffffff;
	font-family: inherit;
	font-size: 13px;
	color: #2c3342;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wctd-tile:hover,
.wctd-swatch:hover {
	border-color: #9db4d8;
}

.wctd-tile.is-on,
.wctd-swatch.is-on,
.wctd-swatch.is-active {
	border-color: #0f6fd4;
	box-shadow: inset 0 0 0 1px #0f6fd4;
	background: #f4f9ff;
}

.wctd-tile-media,
.wctd-swatch-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 66px;
	overflow: hidden;
}

.wctd-tile-media img,
.wctd-swatch-media img {
	max-width: 100%;
	max-height: 66px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.wctd-tile-name,
.wctd-swatch-name {
	font-weight: 600;
}

.wctd-swatch-name {
	font-size: 12px;
	font-weight: 500;
}

.wctd-tile-sub {
	font-size: 12px;
	color: #6b7383;
}

.wctd-tile-text {
	padding: 14px 10px;
}

.wctd-swatch-chip {
	display: block;
	width: 52px;
	height: 52px;
	border: 1px solid #d3d8e0;
	border-radius: 26px;
}

/* Count of items ordered in this colour */
.wctd-swatch-count {
	position: absolute;
	top: -8px;
	left: 6px;
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 11px;
	background: #0f6fd4;
	color: #ffffff;
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
}

.wctd-badge {
	position: absolute;
	top: -8px;
	right: 6px;
	padding: 1px 6px;
	border-radius: 3px;
	background: #d8380f;
	color: #ffffff;
	font-style: normal;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wctd-pills {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.wctd-pill {
	padding: 7px 14px;
	border: 1px solid #eef1f6;
	border-radius: 20px;
	background: #eef1f6;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #4b5262;
	cursor: pointer;
}

.wctd-pill.is-on {
	background: #0f2d5e;
	border-color: #0f2d5e;
	color: #ffffff;
}

.wctd-warn {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-left: 3px solid #ffc46b;
	border-radius: 0 4px 4px 0;
	background: #fffaf2;
	color: #7a6134;
	font-size: 12px;
	line-height: 1.5;
}

/* ==========================================================
   PORTION SIZE POPOVER
   Fixed position so no theme container can clip it.
   ========================================================== */

.wctd-pop {
	position: fixed;
	z-index: 99999;
	width: 300px;
	max-width: calc(100vw - 24px);
	padding: 16px;
	border: 1px solid #e2e5ea;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 18px 44px rgba(15, 24, 40, 0.22);
	font-family: inherit;
	font-size: 14px;
	color: #16181d;
}

.wctd-pop[hidden] {
	display: none;
}

/**
 * Under 760px there is no room beside a swatch, so the popover becomes a
 * centred sheet. Placed with the transform so it needs no measurement.
 */
.wctd-pop.is-centred {
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%);
	width: 340px;
}

.wctd-pop *,
.wctd-pop *::before,
.wctd-pop *::after {
	box-sizing: border-box;
}

.wctd-pop-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.wctd-pop-head strong {
	font-size: 15px;
}

.wctd-pop-head span {
	font-size: 12px;
	color: #6b7383;
}

.wctd-pop-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.wctd-pop-label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.25;
}

.wctd-pop-label small {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: #8a919e;
}

.wctd-pop input[type="number"] {
	flex: 0 0 auto;
	width: 104px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #d8dce3;
	border-radius: 5px;
	background: #ffffff;
	font-family: inherit;
	font-size: 14px;
	text-align: right;
	color: #16181d;
}

.wctd-pop input[type="number"]:focus {
	border-color: #0f6fd4;
	outline: none;
}

.wctd-pop-foot {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #eceff3;
}

.wctd-pop-cancel,
.wctd-pop-add {
	padding: 9px 20px;
	border: 0;
	border-radius: 20px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.wctd-pop-cancel {
	background: #f0f2f5;
	color: #4b5262;
}

.wctd-pop-add {
	background: #0f2d5e;
	color: #ffffff;
}

.wctd-pop-add:hover {
	background: #143a76;
}

/* ==========================================================
   ORDER LINES
   ========================================================== */

.wctd-qty-block {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #eceff3;
}

.wctd-qty-block > strong {
	display: block;
	margin-bottom: 10px;
	font-size: 14px;
}

.wctd-qty-empty {
	margin: 0;
	padding: 14px 0;
	color: #8a919e;
	font-size: 13px;
}

.wctd-qty-group {
	margin-bottom: 10px;
	border: 1px solid #e2e5ea;
	border-radius: 6px;
	overflow: hidden;
}

.wctd-qty-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	background: #f7f8fa;
	border-bottom: 1px solid #e2e5ea;
}

.wctd-qty-chip {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border: 1px solid #d3d8e0;
	border-radius: 5px;
}

.wctd-qty-chip.has-image {
	background-size: cover;
	background-position: center;
}

.wctd-qty-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 600;
}

.wctd-qty-total {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	color: #0f6fd4;
}

.wctd-qty-edit {
	flex: 0 0 auto;
	padding: 4px 10px;
	border: 1px solid #d8dce3;
	border-radius: 14px;
	background: #ffffff;
	font-family: inherit;
	font-size: 12px;
	color: #4b5262;
	cursor: pointer;
}

.wctd-qty-edit:hover {
	border-color: #0f6fd4;
	color: #0f6fd4;
}

.wctd-qty-remove {
	flex: 0 0 auto;
	padding: 0 2px;
	border: 0;
	background: none;
	color: #b0b7c3;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
}

.wctd-qty-remove:hover {
	color: #b02a2a;
}

.wctd-qty-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 10px;
	border-bottom: 1px solid #f2f4f7;
}

.wctd-qty-row:last-child {
	border-bottom: 0;
}

.wctd-qty-size {
	flex: 1 1 auto;
	font-size: 13px;
	color: #4b5262;
}

.wctd-root input.wctd-qty-input {
	flex: 0 0 auto;
	width: 96px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #d8dce3;
	border-radius: 5px;
	background: #ffffff;
	font-size: 14px;
	text-align: right;
}

/* ==========================================================
   FORM CONTROLS
   ========================================================== */

.wctd-field {
	margin: 0 0 16px;
}

.wctd-field label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #3b4250;
	line-height: 1.3;
}

.wctd-count {
	font-size: 12px;
	font-weight: 400;
	color: #8a919e;
}

.wctd-root input[type="text"],
.wctd-root select {
	width: 100%;
	height: 42px;
	padding: 0 11px;
	border: 1px solid #d8dce3;
	border-radius: 5px;
	background: #ffffff;
	color: #16181d;
	font-family: inherit;
	font-size: 15px;
	line-height: normal;
}

.wctd-root input[type="text"]:focus,
.wctd-root select:focus {
	border-color: #0f6fd4;
	outline: none;
}

.wctd-root input[type="color"] {
	width: 100%;
	height: 42px;
	padding: 3px;
	border: 1px solid #d8dce3;
	border-radius: 5px;
	background: #ffffff;
	cursor: pointer;
}

.wctd-root input[type="range"] {
	width: 100%;
	height: 4px;
	margin: 12px 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: #dfe3e9;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	cursor: pointer;
}

.wctd-root input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid #ffffff;
	border-radius: 9px;
	background: #0f6fd4;
	box-shadow: 0 0 0 1px #cfd4dc;
	cursor: pointer;
}

.wctd-root input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid #ffffff;
	border-radius: 9px;
	background: #0f6fd4;
	cursor: pointer;
}

.wctd-row {
	display: flex;
	gap: 12px;
}

.wctd-row > .wctd-field {
	flex: 1 1 0;
	min-width: 0;
}

.wctd-row > .wctd-field-colour {
	flex: 0 0 120px;
}

.wctd-seg {
	display: flex;
	border: 1px solid #d8dce3;
	border-radius: 5px;
	overflow: hidden;
}

.wctd-seg button {
	flex: 1 1 0;
	padding: 11px 8px;
	border: 0;
	border-right: 1px solid #d8dce3;
	background: #ffffff;
	color: #4b5262;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.wctd-seg button:last-child {
	border-right: 0;
}

.wctd-seg button.is-on {
	background: #0f2d5e;
	color: #ffffff;
}

.wctd-upload-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.wctd-upload-btn,
.wctd-upload-remove {
	padding: 10px 16px;
	border: 1px solid #d8dce3;
	border-radius: 5px;
	background: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #2c3342;
	cursor: pointer;
}

.wctd-upload-btn:hover {
	border-color: #0f6fd4;
	color: #0f6fd4;
}

.wctd-upload-remove {
	border-color: #e6c9c9;
	color: #b02a2a;
}

.wctd-upload-name {
	flex: 1 1 120px;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	color: #6b7383;
}

.wctd-hint,
.wctd-note {
	display: block;
	margin: 6px 0 0;
	font-size: 12px;
	color: #8a919e;
	line-height: 1.45;
}

/* ==========================================================
   CART AREA
   The real WooCommerce button stays in the form for submission,
   the sticky bar is what the customer clicks.
   ========================================================== */

.wctd-cart-area {
	margin: 0;
}

.wctd-cart-area .single_add_to_cart_button,
.wctd-cart-area .quantity {
	display: none;
}

/* ==========================================================
   STICKY BAR
   ========================================================== */

.wctd-bar {
	flex: 1 1 100%;
	position: sticky;
	bottom: 0;
	z-index: 20;
	padding: 13px 16px;
	border-radius: 8px;
	background: #0f2d5e;
	color: #ffffff;
	box-shadow: 0 -6px 20px rgba(15, 45, 94, 0.16);
}

.wctd-bar-in {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.wctd-bar-fig span {
	display: block;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #9fc2f5;
}

.wctd-bar-fig b {
	display: block;
	font-size: 18px;
	font-weight: 700;
}

.wctd-bar-total b {
	font-size: 24px;
}

.wctd-bar-cta {
	margin-left: auto;
	padding: 13px 34px;
	border: 0;
	border-radius: 6px;
	background: #0f6fd4;
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
}

.wctd-bar-cta:hover {
	background: #1583f0;
}

.wctd-bar-cta:disabled {
	background: #3d557f;
	color: #9fb2cf;
	cursor: not-allowed;
}

.wctd-bar-note {
	margin: 8px 0 0;
	font-size: 12px;
	color: #ffd3a6;
}

.wctd-bar-note:empty {
	display: none;
}

/* ==========================================================
   CART DRAWER
   ========================================================== */

.wctd-drawer-wrap {
	position: fixed;
	inset: 0;
	z-index: 999999;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: #16181d;
}

.wctd-drawer-wrap *,
.wctd-drawer-wrap *::before,
.wctd-drawer-wrap *::after {
	box-sizing: border-box;
}

.wctd-drawer-wrap[hidden] {
	display: none;
}

body.wctd-drawer-locked {
	overflow: hidden;
}

.wctd-drawer-veil {
	position: absolute;
	inset: 0;
	background: rgba(15, 24, 40, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.wctd-drawer-wrap.is-open .wctd-drawer-veil {
	opacity: 1;
}

.wctd-drawer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: 420px;
	max-width: 92vw;
	background: #ffffff;
	box-shadow: -8px 0 34px rgba(15, 24, 40, 0.22);
	transform: translateX(100%);
	transition: transform 0.26s ease;
}

.wctd-drawer-wrap.is-open .wctd-drawer {
	transform: translateX(0);
}

.wctd-drawer-wrap.is-busy .wctd-drawer {
	opacity: 0.6;
	pointer-events: none;
}

.wctd-drawer-head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	padding: 16px 18px;
	border-bottom: 1px solid #e4e7ec;
}

.wctd-drawer-head strong {
	font-size: 17px;
}

.wctd-drawer-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 12px;
	background: #0f2d5e;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
}

.wctd-drawer-close {
	margin-left: auto;
	padding: 0 4px;
	border: 0;
	background: none;
	color: #8a919e;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.wctd-drawer-close:hover {
	color: #16181d;
}

.wctd-drawer-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 8px 18px;
	-webkit-overflow-scrolling: touch;
}

.wctd-drawer-empty {
	padding: 40px 0;
	color: #8a919e;
	text-align: center;
}

.wctd-line {
	display: flex;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid #eceff3;
}

.wctd-line:last-child {
	border-bottom: 0;
}

.wctd-line-media {
	flex: 0 0 76px;
	width: 76px;
	line-height: 0;
}

.wctd-line-media img {
	width: 100%;
	height: auto;
	border: 1px solid #e4e7ec;
	border-radius: 6px;
}

.wctd-line-body {
	flex: 1 1 auto;
	min-width: 0;
}

.wctd-line-top {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.wctd-line-name {
	flex: 1 1 auto;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.wctd-line-remove {
	flex: 0 0 auto;
	padding: 0 2px;
	border: 0;
	background: none;
	color: #b0b7c3;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.wctd-line-remove:hover {
	color: #b02a2a;
}

.wctd-line-meta {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12px;
	color: #6b7383;
	line-height: 1.45;
}

.wctd-line-meta li {
	margin: 0 0 2px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wctd-line-meta span {
	color: #9aa1ad;
}

.wctd-line-foot {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.wctd-line-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d8dce3;
	border-radius: 5px;
	overflow: hidden;
}

.wctd-line-qty button {
	width: 30px;
	height: 32px;
	border: 0;
	background: #f6f7f9;
	color: #4b5262;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.wctd-line-qty button:hover {
	background: #eaedf1;
}

.wctd-drawer-wrap .wctd-line-qty input {
	width: 54px;
	height: 32px;
	padding: 0 4px;
	border: 0;
	border-left: 1px solid #d8dce3;
	border-right: 1px solid #d8dce3;
	background: #ffffff;
	font-size: 14px;
	text-align: center;
	-moz-appearance: textfield;
}

.wctd-drawer-wrap .wctd-line-qty input::-webkit-outer-spin-button,
.wctd-drawer-wrap .wctd-line-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wctd-line-price {
	margin-left: auto;
	text-align: right;
	line-height: 1.3;
}

.wctd-line-price span {
	display: block;
	font-size: 11px;
	color: #8a919e;
}

.wctd-line-price b {
	font-size: 15px;
	font-weight: 700;
}

.wctd-drawer-foot {
	flex: 0 0 auto;
	padding: 16px 18px;
	border-top: 1px solid #e4e7ec;
	background: #fafbfc;
}

.wctd-drawer-sub {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 4px;
}

.wctd-drawer-sub span {
	font-size: 14px;
	color: #4b5262;
}

.wctd-drawer-sub b {
	font-size: 21px;
	font-weight: 700;
}

.wctd-drawer-note {
	margin: 0 0 12px;
	font-size: 12px;
	color: #8a919e;
}

.wctd-drawer-checkout,
.wctd-drawer-view {
	display: block;
	width: 100%;
	padding: 13px 16px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.wctd-drawer-checkout {
	margin-bottom: 8px;
	background: #0f6fd4;
	color: #ffffff;
}

.wctd-drawer-checkout:hover {
	background: #1583f0;
	color: #ffffff;
}

.wctd-drawer-view {
	padding: 6px;
	background: none;
	color: #4b5262;
	font-size: 13px;
	font-weight: 600;
}

.wctd-drawer-view:hover {
	color: #0f6fd4;
}

/* ==========================================================
   MISC
   ========================================================== */

.wctd-cart-thumb {
	max-width: 100%;
	height: auto;
}

.wctd-placeholder {
	padding: 22px 18px;
	border: 1px dashed #b9c0cc;
	border-radius: 6px;
	background: #f7f8fa;
	color: #6b7383;
	font-size: 13px;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.wctd-drawer,
	.wctd-drawer-veil {
		transition: none;
	}
}

@media (max-width: 600px) {
	.wctd-root.wctd-layout {
		gap: 22px;
	}
	.wctd-title {
		font-size: 24px;
	}
	.wctd-bar-in {
		gap: 14px;
	}
	.wctd-bar-cta {
		width: 100%;
		margin-left: 0;
	}
	.wctd-row {
		display: block;
	}
	.wctd-row > .wctd-field-colour {
		flex: none;
	}
}

@media (max-width: 480px) {
	.wctd-drawer {
		width: 100%;
		max-width: 100%;
	}
	.wctd-line-media {
		flex: 0 0 60px;
		width: 60px;
	}
}

/* ==========================================================
   PRICE CHART EXTRAS
   ========================================================== */

.wctd-pricechart-wrap {
	position: relative;
}

.wctd-pricechart-label {
	background: #f4f6f9;
	font-weight: 700;
	color: #6b7383;
}

/* The strip scrolls, so the button floats over its right edge */
.wctd-pricechart-more {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	padding: 8px 16px;
	border: 0;
	border-radius: 20px;
	background: #0f6fd4;
	color: #ffffff;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.9);
}

.wctd-pricechart-more:hover {
	background: #1583f0;
}

.wctd-chart-wrap {
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: inherit;
	font-size: 14px;
	color: #16181d;
}

.wctd-chart-wrap[hidden] {
	display: none;
}

.wctd-chart-wrap *,
.wctd-chart-wrap *::before,
.wctd-chart-wrap *::after {
	box-sizing: border-box;
}

.wctd-chart-veil {
	position: absolute;
	inset: 0;
	background: rgba(15, 24, 40, 0.5);
}

.wctd-chart {
	position: relative;
	width: 420px;
	max-width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	padding: 20px 22px 22px;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(15, 24, 40, 0.3);
}

.wctd-chart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.wctd-chart-head strong {
	font-size: 19px;
}

.wctd-chart-close {
	padding: 0 4px;
	border: 0;
	background: none;
	color: #8a919e;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.wctd-chart-close:hover {
	color: #16181d;
}

.wctd-chart-note {
	margin: 0 0 14px;
	font-size: 12px;
	color: #6b7383;
	line-height: 1.5;
}

.wctd-chart-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.wctd-chart-table th {
	padding: 8px 12px;
	background: #0f2d5e;
	color: #ffffff;
	font-weight: 700;
	text-align: center;
	border: 1px solid #0f2d5e;
}

.wctd-chart-table td {
	padding: 8px 12px;
	border: 1px solid #e4e7ec;
	text-align: center;
	color: #2c3342;
}

.wctd-chart-table tbody tr:nth-child(odd) td {
	background: #fafbfc;
}

.wctd-chart-table tr.is-on td {
	background: #0f6fd4;
	border-color: #0f6fd4;
	color: #ffffff;
	font-weight: 700;
}

/* ==========================================================
   TEMPLATE FIELDS
   ========================================================== */

.wctd-steps-simple .wctd-step {
	margin-bottom: 22px;
	border-radius: 0;
}

.wctd-step-plain {
	margin: 0 0 10px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.wctd-steps-simple .wctd-step-body {
	display: block;
	padding: 0;
	border: 0;
	background: none;
}

.wctd-req {
	color: #d8380f;
	font-style: normal;
}

.wctd-help {
	margin: 0 0 12px;
	font-size: 12px;
	color: #8a919e;
	line-height: 1.5;
}

.wctd-empty {
	padding: 16px;
	border: 1px dashed #d8380f;
	border-radius: 6px;
	background: #fff6f4;
	color: #8c3116;
	font-size: 13px;
}

/* radio and checkbox lists */
.wctd-choices {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px;
}

.wctd-choice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 13px;
	border: 1px solid #dfe3e9;
	border-radius: 8px;
	background: #ffffff;
	cursor: pointer;
	line-height: 1.3;
}

.wctd-choice:hover {
	border-color: #9db4d8;
}

.wctd-choice input {
	flex: 0 0 auto;
	margin: 0;
	accent-color: #0f6fd4;
	width: 17px;
	height: 17px;
}

.wctd-choice-body {
	flex: 1 1 auto;
	min-width: 0;
}

.wctd-choice-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
}

.wctd-choice-body small {
	display: block;
	font-size: 12px;
	color: #8a919e;
}

.wctd-choice-price {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	color: #0f6fd4;
	white-space: nowrap;
}

.wctd-choice-price small {
	font-weight: 400;
	color: #8a919e;
}

.wctd-swatch-note {
	font-size: 11px;
	color: #8a919e;
}

/* date input matches the other controls */
.wctd-root input[type="date"],
.wctd-root input[type="number"].wctd-input {
	width: 100%;
	height: 42px;
	padding: 0 11px;
	border: 1px solid #d8dce3;
	border-radius: 5px;
	background: #ffffff;
	color: #16181d;
	font-family: inherit;
	font-size: 15px;
}

.wctd-root input[type="date"]:focus,
.wctd-root input[type="number"].wctd-input:focus {
	border-color: #0f6fd4;
	outline: none;
}

.wctd-root input.wctd-qty-field {
	max-width: 180px;
}
