/* CEC Engraving — TRENDS front-end product display */

.cect-availability {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 14px;
	font-size: 15px;
	color: #1a7f37;
}

.cect-availability-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #1a7f37;
	display: inline-block;
	flex: 0 0 auto;
}

.cect-volume-pricing {
	margin: 18px 0 22px;
	padding: 16px 18px;
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	background: #fafbfc;
	width: 100%;
	max-width: 100% !important;
	box-sizing: border-box;
}

.cect-availability {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Stretch the Elementor widget wrappers holding our blocks to the full
   column width so their right edge lines up with the add-to-cart section. */
.elementor-widget:has(.cect-volume-pricing),
.elementor-widget:has(.cect-availability) {
	width: 100% !important;
	max-width: 100% !important;
}

.elementor-widget:has(.cect-volume-pricing) > .elementor-widget-container,
.elementor-widget:has(.cect-availability) > .elementor-widget-container {
	width: 100% !important;
	max-width: 100% !important;
	margin-right: 0 !important;
	padding-right: 0 !important;
}

.cect-volume-title {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 600;
}

.cect-volume-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.cect-volume-table th,
.cect-volume-table td {
	text-align: left;
	padding: 8px 12px;
	border-bottom: 1px solid #eceff2;
	font-size: 14px;
}

.cect-volume-table th {
	font-weight: 600;
	color: #50575e;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.5px;
}

.cect-volume-table tbody tr:last-child td {
	border-bottom: none;
}

.cect-volume-table td:last-child {
	font-weight: 600;
	text-align: right;
}

.cect-volume-note {
	margin: 10px 0 0;
	font-size: 12.5px;
	color: #646970;
}

.cect-stock-table-wrap {
	margin: 18px 0 22px;
	padding: 16px 18px;
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	background: #fafbfc;
	width: 100%;
	max-width: 100% !important;
	box-sizing: border-box;
}

.cect-stock-table td:last-child,
.cect-stock-table td:nth-child(2) {
	font-weight: 600;
	text-align: left;
}

.cect-specs {
	margin: 18px 0 22px;
}

.cect-specs .cect-volume-title {
	margin-bottom: 10px;
}

.cect-specs table.shop_attributes {
	width: 100%;
	border-collapse: collapse;
}

.cect-specs table.shop_attributes th,
.cect-specs table.shop_attributes td {
	padding: 8px 12px;
	border-bottom: 1px solid #eceff2;
	font-size: 14px;
	text-align: left;
}

.cect-specs table.shop_attributes th {
	width: 35%;
	font-weight: 600;
	color: #50575e;
}

/* Per-colour stock table (rendered inside WooCommerce's variation info box) */
.woocommerce-variation-availability .cect-variation-stock {
	border-collapse: collapse;
	margin-top: 4px;
}

.cect-variation-stock th,
.cect-variation-stock td {
	padding: 4px 16px 4px 0;
	text-align: left;
	font-size: 13px;
}

.cect-variation-stock th {
	color: #646970;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.4px;
}

.cect-variation-stock td {
	font-weight: 600;
	color: #1a7f37;
}

.cect-volume-badge {
	display: inline-block;
	margin-top: 4px;
	color: #1a7f37;
	font-size: 12px;
}

/* Bulk order grid (all options with quantity inputs) */

.cect-bulk-form {
	margin: 18px 0 22px;
}

.cect-bulk-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e3e6ea;
	border-radius: 8px;
	overflow: hidden;
}

.cect-bulk-table th,
.cect-bulk-table td {
	padding: 9px 14px;
	text-align: left;
	border-bottom: 1px solid #eceff2;
	font-size: 14px;
}

/* Centre the Price, Max per order and Quantity columns. */
.cect-bulk-table th:nth-child(2),
.cect-bulk-table td:nth-child(2),
.cect-bulk-table th:nth-child(3),
.cect-bulk-table td:nth-child(3),
.cect-bulk-table th:nth-child(4),
.cect-bulk-table td:nth-child(4) {
	text-align: center;
}

.cect-bulk-price {
	font-weight: 600;
	white-space: nowrap;
}

.cect-bulk-table th {
	background: #fafbfc;
	font-weight: 600;
	color: #50575e;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.5px;
}

.cect-bulk-table tbody tr:nth-child(even) td {
	background: #fafbfc;
}

.cect-bulk-label {
	font-weight: 600;
}

/* − / + stepper around each quantity box */
.cect-qty-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #c9ced3;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.cect-qty-stepper .cect-qty-minus,
.cect-qty-stepper .cect-qty-plus {
	width: 34px;
	min-width: 34px;
	height: 36px;
	border: none;
	background: #f6f7f7;
	color: #1d2327;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.cect-qty-stepper .cect-qty-minus:hover,
.cect-qty-stepper .cect-qty-plus:hover {
	background: #eceff2;
}

.cect-bulk-qty {
	width: 56px !important;
	min-width: 56px;
	height: 36px;
	border: none;
	border-left: 1px solid #eceff2;
	border-right: 1px solid #eceff2;
	border-radius: 0;
	padding: 0 4px;
	text-align: center;
	box-sizing: border-box;
	-moz-appearance: textfield;
	appearance: textfield;
}

.cect-bulk-qty::-webkit-outer-spin-button,
.cect-bulk-qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cect-bulk-qty:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px rgba(164, 1, 1, 0.12);
}

.cect-bulk-summary {
	margin: 12px 0;
	color: #50575e;
}

.cect-bulk-summary .cect-bulk-total {
	color: #1a7f37;
	font-size: 16px;
}

.cect-bulk-submit {
	min-width: 180px;
}

.cect-bulk-submit:disabled,
.cect-bulk-submit.disabled {
	background-color: #A40101 !important;
	border-color: #A40101 !important;
	color: #ffffff !important;
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

/* Additional options (paid extras checkboxes) */
.cect-addons {
	margin: 16px 0;
	padding: 14px 16px;
	border: 1px dashed #c9ced3;
	border-radius: 8px;
	background: #fafbfc;
}

.cect-addons-title {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.cect-addon {
	display: block;
	margin: 6px 0;
	cursor: pointer;
}

.cect-addon input[type="checkbox"] {
	margin-right: 8px;
	accent-color: #A40101;
}

.cect-addon-price {
	color: #1a7f37;
	font-weight: 600;
	font-size: 13.5px;
}

.cect-addon-item {
	margin: 6px 0;
}

.cect-addon-extras {
	display: block;
	margin: 8px 0 4px 26px;
	padding: 10px 12px;
	border-left: 3px solid #e3e6ea;
}

.cect-addon-text {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	border: 1px solid #c9ced3;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13.5px;
	margin-bottom: 8px;
}

.cect-addon-text:focus {
	border-color: #A40101;
	outline: none;
	box-shadow: 0 0 0 2px rgba(164, 1, 1, 0.12);
}

.cect-addon-file-label {
	display: block;
	font-size: 13px;
}

.cect-addon-file-label small {
	color: #646970;
}

.cect-addon-file {
	font-size: 13px;
	margin-top: 4px;
}

/* Customer design upload (add-to-cart form) */
.cect-design-upload {
	margin: 16px 0;
	padding: 14px 16px;
	border: 1px dashed #c9ced3;
	border-radius: 8px;
	background: #fafbfc;
}

.cect-design-upload label {
	display: block;
	margin-bottom: 8px;
}

.cect-design-upload label small {
	color: #646970;
	font-weight: 400;
	margin-left: 4px;
}

.cect-design-upload input[type="file"] {
	font-size: 13px;
	max-width: 100%;
}

.cect-design-filename {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	color: #1a7f37;
	word-break: break-all;
}

.cect-design-filename.is-error {
	color: #b32d2e;
}

.cect-order-notes {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed #c9ced3;
}

.cect-order-notes label {
	display: block;
	margin-bottom: 6px;
}

.cect-order-notes label small {
	color: #646970;
	font-weight: 400;
	margin-left: 4px;
}

.cect-order-notes textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid #c9ced3;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13.5px;
	resize: vertical;
	min-height: 64px;
}

.cect-order-notes textarea:focus {
	border-color: #A40101;
	outline: none;
	box-shadow: 0 0 0 2px rgba(164, 1, 1, 0.12);
}

/* Stack quantity + Add to Cart BELOW the design upload. The front-end
   script adds .cect-upload-stack to the container holding the upload box,
   the quantity field and the button; this forces a wrapping flex layout
   where the upload box owns the first full row. */
.cect-upload-stack {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center;
	gap: 12px;
}

.cect-upload-stack .cect-design-upload {
	flex: 0 0 100% !important;
	width: 100% !important;
	box-sizing: border-box;
	margin: 0 0 4px;
}

/* Quantity input wide enough for 4+ digit quantities. */
form.cart .quantity input.qty,
form.cart input[name="quantity"] {
	width: 96px !important;
	min-width: 96px !important;
	max-width: 96px;
	text-align: center;
	box-sizing: border-box;
}

/* Default Add to Cart button colour (bulk grid + regular products). */
.single_add_to_cart_button,
button[name="add-to-cart"],
.cect-bulk-submit {
	background-color: #D31212 !important;
	border-color: #D31212 !important;
	color: #ffffff !important;
}

.single_add_to_cart_button:hover,
button[name="add-to-cart"]:hover,
.cect-bulk-submit:hover {
	background-color: #B80F0F !important;
	border-color: #B80F0F !important;
	color: #ffffff !important;
}

/* Deactivated (disabled) Add to Cart button colour. */
form.cart .single_add_to_cart_button.disabled,
form.cart .single_add_to_cart_button:disabled,
form.cart button[name="add-to-cart"].disabled,
form.cart button[name="add-to-cart"]:disabled {
	background-color: #A40101 !important;
	border-color: #A40101 !important;
	color: #ffffff !important;
	cursor: not-allowed;
}

/* Presentation date field */
.cect-presentation-date {
	margin: 16px 0;
	padding: 14px 16px;
	border: 1px dashed #c9ced3;
	border-radius: 8px;
	background: #fafbfc;
}

.cect-presentation-date label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.cect-presentation-date .required {
	color: #A40101;
	text-decoration: none;
	border: none;
}

.cect-presentation-date input[type="date"] {
	display: block;
	border: 1px solid #c9ced3;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 14px;
	max-width: 260px;
	box-sizing: border-box;
	background: #fff;
}

.cect-presentation-date input[type="date"]:focus {
	border-color: #A40101;
	outline: none;
	box-shadow: 0 0 0 2px rgba(164, 1, 1, 0.12);
}

.cect-presentation-date small {
	display: block;
	margin-top: 6px;
	color: #646970;
}

.cect-addon-date-label {
	display: block;
	font-size: 13px;
	margin-top: 6px;
}

.cect-addon-date-label .required {
	color: #A40101;
	text-decoration: none;
	border: none;
}

.cect-addon-date {
	display: block;
	margin-top: 4px;
	border: 1px solid #c9ced3;
	border-radius: 6px;
	padding: 7px 12px;
	font-size: 13.5px;
	max-width: 240px;
	background: #fff;
}

.cect-addon-date:focus {
	border-color: #A40101;
	outline: none;
	box-shadow: 0 0 0 2px rgba(164, 1, 1, 0.12);
}

/* Pick-one radio groups inside Additional options */
.cect-addon-group {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed #c9ced3;
}

.cect-addon-group .cect-addons-title {
	margin-bottom: 6px;
}

.cect-addon-group-hint {
	color: #646970;
	font-weight: 400;
	font-size: 12.5px;
}

.cect-addon input[type="radio"] {
	margin-right: 8px;
	accent-color: #A40101;
}

/* ==================================================================== *
 * Professional layout polish for the bulk-order block
 * ==================================================================== */

.cect-bulk-form {
	margin: 24px 0;
}

/* The size table: soft card */
.cect-bulk-table {
	border: 1px solid #e6e9ec;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.cect-bulk-table th {
	background: #f8f9fa;
	padding: 12px 16px;
	font-size: 11px;
	letter-spacing: 0.6px;
	color: #5f6b76;
	border-bottom: 1px solid #e6e9ec;
}

.cect-bulk-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #f0f2f4;
}

.cect-bulk-table tbody tr:nth-child(even) td {
	background: #fcfcfd;
}

.cect-bulk-table tbody tr:hover td {
	background: #f6f8fa;
}

.cect-bulk-table tbody tr:last-child td {
	border-bottom: none;
}

.cect-bulk-label {
	color: #1d2327;
}

/* Stepper: crisper, red accent on hover */
.cect-qty-stepper {
	border-color: #d6dade;
	border-radius: 8px;
	box-shadow: 0 1px 1px rgba(16, 24, 40, 0.04);
}

.cect-qty-stepper .cect-qty-minus,
.cect-qty-stepper .cect-qty-plus {
	background: #fff;
	color: #50575e;
	font-weight: 600;
	transition: background 0.12s ease, color 0.12s ease;
}

.cect-qty-stepper .cect-qty-minus:hover,
.cect-qty-stepper .cect-qty-plus:hover {
	background: #D31212;
	color: #fff;
}

.cect-bulk-qty {
	font-weight: 600;
	font-size: 14px;
}

/* Total units: a summary strip instead of a floating line */
.cect-bulk-summary {
	margin: 14px 0;
	padding: 11px 16px;
	background: #f8f9fa;
	border: 1px solid #e6e9ec;
	border-radius: 8px;
	font-size: 14px;
	color: #3c434a;
}

.cect-bulk-summary .cect-bulk-total {
	font-weight: 700;
}

/* Option / notes / date cards: consistent solid cards */
.cect-bulk-form .cect-addons,
.cect-bulk-form .cect-order-notes.cect-addon-notes,
.cect-bulk-form .cect-presentation-date,
.cect-bulk-form .cect-design-upload {
	margin: 14px 0;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e6e9ec;
	border-radius: 10px;
	border-top: 1px solid #e6e9ec;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.cect-addons-title,
.cect-bulk-form .cect-order-notes.cect-addon-notes label,
.cect-presentation-date label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #5f6b76;
	margin-bottom: 10px;
}

.cect-bulk-form .cect-order-notes.cect-addon-notes label small,
.cect-addons-title small {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	color: #8c8f94;
}

.cect-addon {
	padding: 3px 0;
}

.cect-addon-label {
	color: #1d2327;
}

.cect-bulk-form .cect-order-notes.cect-addon-notes {
	padding-top: 16px;
}

.cect-bulk-form .cect-order-notes.cect-addon-notes textarea {
	background: #fcfcfd;
}

/* Add to Cart: confident, full-width call to action */
.cect-bulk-form .cect-bulk-submit {
	width: 100%;
	min-height: 50px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(211, 18, 18, 0.25);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cect-bulk-form .cect-bulk-submit:not(:disabled):not(.disabled):hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(211, 18, 18, 0.3);
}

.cect-bulk-form .cect-bulk-submit:disabled,
.cect-bulk-form .cect-bulk-submit.disabled {
	box-shadow: none;
}

/* Short description under an option's name */
.cect-addon-desc {
	display: block;
	margin: 2px 0 0 26px;
	font-size: 12.5px;
	line-height: 1.45;
	color: #8c8f94;
	font-weight: 400;
}

/* Label-only (informational) rows */
.cect-addon-info {
	padding: 6px 0;
}

.cect-addon-info .cect-addon-label {
	font-weight: 600;
	color: #1d2327;
}

.cect-addon-info .cect-addon-desc {
	margin-left: 0;
}

/* Collection availability badge (product page) */
.cect-collect-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 14px;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.cect-collect-now {
	background: #edfaef;
	color: #1a7f37;
	border: 1px solid #b8e6c1;
}

.cect-collect-wait {
	background: #fdf6ec;
	color: #b45309;
	border: 1px solid #f0d9b5;
}

.cect-collect-icon {
	flex: 0 0 auto;
}

/* ==================================================================== *
 * Simple-product form layout: injected blocks own full rows
 * ==================================================================== */

form.cart.cect-stack-form {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center;
	gap: 12px;
}

form.cart.cect-stack-form .cect-addons,
form.cart.cect-stack-form .cect-order-notes,
form.cart.cect-stack-form .cect-presentation-date,
form.cart.cect-stack-form .cect-design-upload {
	flex: 0 0 100% !important;
	width: 100% !important;
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
}

form.cart.cect-stack-form .quantity,
form.cart.cect-stack-form .single_add_to_cart_button {
	flex: 0 0 auto;
	height: auto;
	align-self: center;
}

form.cart.cect-stack-form .single_add_to_cart_button {
	min-height: 48px;
	padding: 0 28px;
	line-height: 48px;
}

/* CSS-only fallback (before the JS adds .cect-stack-form): any form.cart
   containing our blocks wraps, and the blocks always own a full row. */
form.cart:has(.cect-addons),
form.cart:has(.cect-order-notes),
form.cart:has(.cect-presentation-date),
form.cart:has(.cect-design-upload) {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center;
	gap: 12px;
}

form.cart .cect-addons,
form.cart .cect-order-notes,
form.cart .cect-presentation-date,
form.cart .cect-design-upload {
	flex: 0 0 100% !important;
	width: 100% !important;
	box-sizing: border-box;
}
