/* Plastic Depot Storefront Polish 1.0.0 -- style-only fixes. */

/* 1. Phones: the cart icon in the header was fully transparent. */
@media (max-width: 980px) {
	.et-l--header .et_pb_menu__cart-button,
	.et-l--header .et_pb_menu__cart-button::after {
		color: #fff !important;
	}
}

/* 2. Checkout / cart fields: typed text was the same light gray as the hint text. */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce .select2-container .select2-selection__rendered,
.woocommerce-cart table.cart td.actions .coupon .input-text {
	color: #1f2330 !important;
	font-size: 16px !important; /* 16px also stops iPhones zooming in on tap */
}
.woocommerce form .form-row input.input-text::placeholder,
.woocommerce form .form-row textarea::placeholder {
	color: #8a8f99 !important;
}

/* 3. Laptop and small desktop screens (981-1439px), updated in 1.3.2: keep the whole
   menu and the cart icon on one line. Uses less side space in the header, a slightly
   smaller logo and menu text, and keeps the logo clear of the "EN" language button. */
@media (min-width: 981px) and (max-width: 1439.98px) {
	.et-l--header .et_pb_row_0_tb_header {
		padding-left: max(96px, 10vw) !important;
		padding-right: clamp(20px, calc(100vw - 966px), 10vw) !important;
	}
	.et-l--header .et_pb_column_0_tb_header {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.et-l--header .et_pb_menu__wrap,
	.et-l--header .et_pb_menu .et-menu {
		flex-wrap: nowrap !important;
	}
	.et-l--header .et_pb_menu .et-menu > li > a {
		white-space: nowrap;
	}
	.et-l--header .et_pb_menu .et-menu > li {
		padding-left: 2px !important;
		padding-right: 2px !important;
	}
	.et-l--header .et_pb_menu__logo {
		max-width: 160px !important;
	}
}
@media (min-width: 981px) and (max-width: 1199.98px) {
	.et-l--header .et_pb_menu .et-menu > li > a {
		font-size: 14px !important;
	}
}
@media (min-width: 1200px) and (max-width: 1439.98px) {
	.et-l--header .et_pb_menu .et-menu > li > a {
		font-size: 15px !important;
	}
	.et-l--header .et_pb_menu .et-menu > li {
		padding-left: 3px !important;
		padding-right: 3px !important;
	}
	.et-l--header .et_pb_menu__logo {
		max-width: 190px !important;
	}
}

/* 4. Phones/tablets (1.3.1): the language choice lives in the phone menu,
   so hide the floating "EN" button once that menu line has been added. */
@media (max-width: 980px) {
	html.pdsfp-lang-in-menu body #gt_float_wrapper {
		display: none !important;
	}
}
/* The "Language" line in the phone menu. */
.et_mobile_menu li.pdsfp-lang-item {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
	padding: 12px 5% 14px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.et_mobile_menu li.pdsfp-lang-item .pdsfp-lang-label {
	flex-basis: 100%;
	color: #fff;
	opacity: 0.7;
	font-size: 0.85em;
}
.et_mobile_menu li.pdsfp-lang-item a.pdsfp-lang-link {
	display: inline-flex !important;
	flex: 1 1 0;
	min-width: 0;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 6px 6px !important;
	white-space: nowrap;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.25) !important;
	border-radius: 6px;
	width: auto !important;
}
.et_mobile_menu li.pdsfp-lang-item a.pdsfp-lang-link img {
	width: 20px;
	height: auto;
}
.et_mobile_menu li.pdsfp-lang-item a.pdsfp-lang-link.is-current {
	font-weight: 700;
	border-color: rgba(255, 255, 255, 0.7) !important;
}
@media (min-width: 981px) {
	li.pdsfp-lang-item {
		display: none !important;
	}
}

/* 5. Cart: bigger product pictures on desktop. */
@media (min-width: 769px) {
	.woocommerce-cart table.cart td.product-thumbnail {
		width: 84px;
	}
	.woocommerce-cart table.cart td.product-thumbnail img {
		width: 64px !important;
		min-width: 64px;
		height: auto !important;
		border-radius: 4px;
	}
}

/* 6. Phones: tidier cart lines -- details read left to right instead of squeezed to the right. */
@media (max-width: 768px) {
	.woocommerce-cart table.shop_table_responsive tr td.product-name {
		text-align: left !important;
	}
	.woocommerce-cart table.shop_table_responsive tr td.product-name::before {
		display: none !important;
	}
	.woocommerce-cart table.shop_table_responsive tr td.product-name > a {
		display: block;
		font-weight: 600;
		margin-bottom: 4px;
	}
	.woocommerce-cart td.product-name dl.variation {
		margin: 0;
	}
	.woocommerce-cart td.product-name dl.variation dt,
	.woocommerce-cart td.product-name dl.variation dd {
		display: inline !important;
		float: none !important;
		margin: 0 !important;
		text-align: left !important;
	}
	.woocommerce-cart td.product-name dl.variation dd::after {
		content: "";
		display: block;
	}
	.woocommerce-cart td.product-name dl.variation dd p {
		display: inline;
		margin: 0;
	}
}

/* 7. Desktop Cart & Checkout: smaller banner so the order shows without scrolling. */
@media (min-width: 768px) {
	body.woocommerce-cart .et_pb_section_0_tb_body .et_pb_row_1_tb_body,
	body.woocommerce-checkout .et_pb_section_0_tb_body .et_pb_row_1_tb_body {
		display: none !important;
	}
	body.woocommerce-cart .et_pb_section_0_tb_body,
	body.woocommerce-checkout .et_pb_section_0_tb_body {
		padding-top: 130px !important;
		padding-bottom: 30px !important;
		min-height: 0 !important;
	}
	body.woocommerce-cart .et_pb_section_0_tb_body .et_pb_row,
	body.woocommerce-checkout .et_pb_section_0_tb_body .et_pb_row {
		padding-top: 10px !important;
		padding-bottom: 10px !important;
	}
	body.woocommerce-cart .et_pb_section_1_tb_body,
	body.woocommerce-checkout .et_pb_section_1_tb_body {
		padding-top: 30px !important;
	}
}

/* 8. Phones: two materials / products per row in the Shop instead of one. */
@media (max-width: 600px) {
	.pd-shop-categories ul.products,
	body.woocommerce-shop .et_pb_shop ul.products,
	body.tax-product_cat .et_pb_shop ul.products {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 18px 14px;
	}
	.pd-shop-categories ul.products::before,
	.pd-shop-categories ul.products::after,
	body.woocommerce-shop .et_pb_shop ul.products::before,
	body.woocommerce-shop .et_pb_shop ul.products::after {
		display: none !important;
	}
	.pd-shop-categories ul.products li.product,
	body.woocommerce-shop .et_pb_shop ul.products li.product,
	body.tax-product_cat .et_pb_shop ul.products li.product {
		width: auto !important;
		margin: 0 !important;
		float: none !important;
	}
	.pd-shop-categories ul.products li.product .woocommerce-loop-product__title,
	body.woocommerce-shop .et_pb_shop ul.products li.product .woocommerce-loop-product__title {
		font-size: 15px !important;
		line-height: 1.3 !important;
	}
}

/* 9. Phone menu: the dropdown arrows sat in bright white boxes. */
.et_mobile_menu .parent_icon {
	background: transparent !important;
	color: #fff !important;
	border: 0 !important;
}
.et_mobile_menu .parent_icon::after,
.et_mobile_menu .parent_icon::before {
	color: #fff !important;
}

/* 10. Phones: full-width "Continue in Cut to Size" button. */
@media (max-width: 600px) {
	.pd-cts-handoff-btn {
		display: block !important;
		text-align: center;
	}
}

/* 11. Thickness-tolerance note: two lines plus "Read more" (see polish.js). */
.pd-tolerance-note.pdsfp-collapsed .pd-tolerance-note-text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pdsfp-wrap {
	flex: 1 1 auto;
	min-width: 0;
}
.pdsfp-more {
	display: block;
	background: none;
	border: 0;
	color: #01319d;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	margin: 4px 0 0;
	padding: 0;
	text-decoration: underline;
}

/* 12. Header menu: on some pages (Shop, Cart, Display Case builder) Divi's
   site-wide orange link colour was overriding the header's white menu links.
   Keep the top menu and cart icon white everywhere. */
.et-db #et-boc .et-l--header .et-menu > li > a,
.et-db #et-boc .et-l--header .et_pb_menu__cart-button,
.et-l--header .et-menu > li > a,
.et-l--header .et_pb_menu__cart-button {
	color: #fff !important;
}

/* 13. 1.1.0: custom-cut promise above "Place order". */
.pdsfp-policy {
	background: #f4f7fd;
	border: 1px solid #d6e0f5;
	border-radius: 8px;
	color: #1f2330;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 16px;
	padding: 14px 16px;
}
.pdsfp-policy p {
	margin: 0 0 8px;
	padding: 0;
}
.pdsfp-policy-title {
	font-size: 15px;
}
.pdsfp-policy ul {
	margin: 0 0 10px 18px;
	padding: 0;
}
.pdsfp-policy li {
	margin: 0 0 4px;
}
.pdsfp-policy .pdsfp-policy-check {
	margin: 8px 0 0 !important;
	padding: 0 !important;
}
.pdsfp-policy .pdsfp-policy-check label {
	font-weight: 600;
	cursor: pointer;
}
.pdsfp-policy .pdsfp-policy-check input {
	margin-right: 6px;
	transform: scale(1.2);
}

/* 1.2.0 -- screen-color note. */
.pdsfp-color-note {
	margin: 10px 0 14px !important;
	padding: 8px 12px !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
	color: #3b4150 !important;
	background: #f4f6fa;
	border-left: 3px solid #01319d;
	border-radius: 4px;
}
.pdsfp-color-note strong {
	color: #1f2330;
}
.pdsfp-color-note--tool {
	margin: 6px 0 12px !important;
	font-size: 12.5px !important;
}
.pdsfp-color-note--product {
	margin-top: 14px !important;
}

/* 1.3.2: "Remove" next to the x on each cart row. */
.woocommerce table.cart a.remove.pdsfp-remove,
.woocommerce-cart table.cart a.remove.pdsfp-remove {
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	width: auto !important;
	height: auto !important;
	padding: 3px 9px !important;
	border: 1px solid currentColor;
	border-radius: 999px !important;
	font-size: 16px !important;
	line-height: 1.2 !important;
	white-space: nowrap;
}
.woocommerce table.cart a.remove.pdsfp-remove .pdsfp-remove-text {
	font-size: 13px;
	font-weight: 600;
}
/* "Empty cart" button next to "Update cart" (1.3.3: styles the store's existing button). */
.woocommerce-cart table.cart td.actions .button.tm-clear-cart-button,
.woocommerce-cart table.cart td.actions .button.pdsfp-empty-cart {
	float: right;
	margin-left: 10px;
	background: #fff !important;
	color: #b3261e !important;
	border: 1px solid #b3261e !important;
}
.woocommerce-cart table.cart td.actions .button.tm-clear-cart-button:hover,
.woocommerce-cart table.cart td.actions .button.pdsfp-empty-cart:hover {
	background: #b3261e !important;
	color: #fff !important;
}
@media (max-width: 768px) {
	.woocommerce-cart table.cart td.actions .button.tm-clear-cart-button,
	.woocommerce-cart table.cart td.actions .button.pdsfp-empty-cart {
		float: none;
		display: block;
		width: 100%;
		margin: 10px 0 0;
		text-align: center;
	}
}

/* 1.3.4: consistent main headings. Two sizes: short page titles (64px) and
   full-sentence headlines (42px, same as the home page). */
body.page-id-234109 #main-content h1,
body.page-id-231432 #main-content h1 {
	font-size: clamp(40px, 5vw, 64px) !important;
	line-height: 1.1 !important;
}
body.page-id-2554 #main-content .pdm h1,
body.page-id-2724 #main-content h1 {
	font-size: clamp(30px, 3.2vw, 42px) !important;
	line-height: 1.15 !important;
}
/* 1.3.4: heading on shop category pages. */
.pdsfp-cat-title-row {
	padding: 0 0 8px !important;
}
.pdsfp-cat-title {
	font-size: clamp(32px, 4vw, 48px) !important;
	line-height: 1.15 !important;
	margin: 0 0 24px !important;
	padding: 0 !important;
	width: 100%;
}
/* 1.3.4: hide empty "No Results Found" boxes on small blog categories (CSS backup for polish.js). */
body.category .et-l--body .et_pb_blog:has(.not-found-title):not(:has(article)) {
	display: none !important;
}

/* 1.3.4: shop category pages and search results have no photo banner, so the
   see-through header (white menu text) disappeared into the light page.
   Give the header a solid dark background there. */
html body.tax-product_cat #page-container .et-l--header .et_pb_section.et_pb_section_0_tb_header,
html body.search #page-container .et-l--header .et_pb_section.et_pb_section_0_tb_header {
	background-color: #293241 !important;
	background-image: linear-gradient(#293241, #293241) !important;
	/* 1.3.5: sit above the page instead of floating over it, so it never
	   covers the heading (the header is taller on tablets). */
	position: relative !important;
	top: auto !important;
}
/* Shop category cards: products don't need a "posted on" date. */
body.tax-product_cat #main-content .et_pb_blog .post-meta .published {
	display: none;
}

/* 1.3.6: helpful links on the page-not-found page. */
.pdsfp-404-links {
	margin-top: 28px;
	color: #fff;
}
.pdsfp-404-links .pdsfp-404-lead {
	margin: 0 0 12px;
	font-size: 16px;
	opacity: 0.85;
}
.pdsfp-404-links .pdsfp-404-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.pdsfp-404-links .pdsfp-404-list a {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 8px;
	color: #fff !important;
	font-size: 15px;
	text-decoration: none;
}
.pdsfp-404-links .pdsfp-404-list a:hover {
	background: #c44e30;
	border-color: #c44e30;
}
.pdsfp-404-links .pdsfp-404-call {
	margin: 16px 0 0;
	font-size: 16px;
}
.pdsfp-404-links .pdsfp-404-call a {
	color: #ee6c4d !important;
	font-weight: 700;
}

/* 1.3.6: let the black 404 panel grow to fit the links (it was a fixed height). */
body.error404 .et-l--body .et_pb_section_0_tb_body {
	height: auto !important;
	min-height: 70vh;
	padding: 90px 0 80px !important;
}
body.error404 .et-l--body .et_pb_row_0_tb_body {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	transform: none !important;
	width: 80% !important;
	max-width: 1080px !important;
	margin: 0 auto !important;
}


/* 1.3.7 -- Phones: shipping choices in the cart and at checkout read left to right,
   one per line, with the price on the right (they were squeezed into a narrow
   right-aligned column). */
@media (max-width: 768px) {
	.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td,
	.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td,
	.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th {
		display: block !important;
		width: 100% !important;
		text-align: left !important;
		box-sizing: border-box;
	}
	.woocommerce-cart .cart_totals tr.woocommerce-shipping-totals td::before {
		display: block !important;
		float: none !important;
		margin: 0 0 6px !important;
		font-weight: 700;
		text-align: left !important;
	}
	.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th {
		border-bottom: 0 !important;
		padding-bottom: 0 !important;
	}
	#shipping_method {
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}
	#shipping_method li {
		display: flex !important;
		align-items: flex-start;
		gap: 10px;
		text-align: left !important;
		margin: 0 !important;
		padding: 10px 0 !important;
		border-top: 1px solid #e6e9ee;
		line-height: 1.4;
	}
	#shipping_method li:first-child {
		border-top: 0;
		padding-top: 0 !important;
	}
	#shipping_method li input.shipping_method {
		flex: 0 0 auto;
		margin: 3px 0 0 !important;
	}
	#shipping_method li label {
		flex: 1 1 auto;
		display: block !important;
		text-align: left !important;
		margin: 0 !important;
	}
	#shipping_method li label .woocommerce-Price-amount {
		float: right;
		margin-left: 10px;
		font-weight: 700;
	}
	#shipping_method li label small {
		clear: both;
	}
	.woocommerce-cart .woocommerce-shipping-destination,
	.woocommerce-cart .woocommerce-shipping-calculator,
	.woocommerce-checkout .woocommerce-shipping-destination {
		text-align: left !important;
	}
}

/* 1.3.7 -- Phones: shorter Cart / Checkout banner so the order shows on the first screen. */
@media (max-width: 767.98px) {
	body.woocommerce-cart .et_pb_section_0_tb_body .et_pb_row_1_tb_body,
	body.woocommerce-checkout .et_pb_section_0_tb_body .et_pb_row_1_tb_body {
		display: none !important;
	}
	body.woocommerce-cart .et_pb_section_0_tb_body,
	body.woocommerce-checkout .et_pb_section_0_tb_body {
		padding-top: 84px !important;
		padding-bottom: 8px !important;
		min-height: 0 !important;
	}
	body.woocommerce-cart .et_pb_section_0_tb_body .et_pb_row,
	body.woocommerce-checkout .et_pb_section_0_tb_body .et_pb_row {
		padding-top: 4px !important;
		padding-bottom: 4px !important;
	}
	body.woocommerce-cart .et_pb_section_0_tb_body h1,
	body.woocommerce-checkout .et_pb_section_0_tb_body h1 {
		font-size: 30px !important;
		line-height: 1.2 !important;
		padding-bottom: 0 !important;
	}
	body.woocommerce-cart .et_pb_section_1_tb_body,
	body.woocommerce-checkout .et_pb_section_1_tb_body {
		padding-top: 12px !important;
	}
}

/* 1.3.7 -- Phones: color note under the Add to cart button. */
.pdsfp-color-note--below-cart {
	margin-top: 16px !important;
}

/* 1.3.8 -- Phones: the checkout "Your order" box lays out as label + amount rows, and the
   Shipping choices use the full width (they were squeezed into the left column). */
@media (max-width: 768px) {
	.woocommerce-checkout .woocommerce-checkout-review-order-table,
	.woocommerce-checkout .woocommerce-checkout-review-order-table thead,
	.woocommerce-checkout .woocommerce-checkout-review-order-table tbody,
	.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot {
		display: block !important;
		width: 100% !important;
	}
	.woocommerce-checkout .woocommerce-checkout-review-order-table tr {
		display: flex !important;
		justify-content: space-between;
		align-items: flex-start;
		gap: 12px;
		width: 100%;
		border-bottom: 1px solid #e6e9ee;
	}
	.woocommerce-checkout .woocommerce-checkout-review-order-table tr > th,
	.woocommerce-checkout .woocommerce-checkout-review-order-table tr > td {
		display: block !important;
		border: 0 !important;
		width: auto !important;
	}
	.woocommerce-checkout .woocommerce-checkout-review-order-table tr > .product-name {
		flex: 1 1 auto;
	}
	.woocommerce-checkout .woocommerce-checkout-review-order-table tr > td:last-child {
		text-align: right;
		white-space: nowrap;
	}
	.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
		flex-direction: column;
		gap: 6px;
	}
	.woocommerce-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals > td {
		width: 100% !important;
		text-align: left !important;
		white-space: normal;
	}
}

/* 1.3.9 -- Home page on phones: "Show more of our work" button for the portfolio cards. */
@media (max-width: 767.98px) {
	.pdsfp-more-hidden {
		display: none !important;
	}
}
.pdsfp-more-wrap {
	text-align: center;
	padding: 10px 16px 30px;
}
.pdsfp-more-btn {
	display: inline-block;
	background: #293241;
	color: #fff;
	border: 0;
	border-radius: 30px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
}
.pdsfp-more-btn:hover,
.pdsfp-more-btn:focus {
	background: #c44e30;
}
@media (min-width: 768px) {
	.pdsfp-more-wrap {
		display: none;
	}
}

/* 1.4.2 -- FAQ lists (Supreme Modules): the open/close icons showed as the letters "L" and "K"
   because their icon font is missing. Show a plain + (closed) and − (open) instead. */
.dsm-faq-container .dsm_open_icon span,
.dsm-faq-container .dsm_close_icon span {
	font-size: 0 !important;
	font-family: inherit !important;
}
.dsm-faq-container .dsm_close_icon span::before,
.dsm-faq-container .dsm_open_icon span::before {
	font-size: 26px;
	font-weight: 600;
	line-height: 1;
	color: #c44e30;
}
.dsm-faq-container .dsm_close_icon span::before {
	content: "+";
}
.dsm-faq-container .dsm_open_icon span::before {
	content: "\2212";
}

/* 1.4.3 -- Darker brand orange (#c44e30) so white button text and orange text on white
   pass the accessibility contrast check. Covers the 3D print quote page and any Divi
   global-color use; the brighter orange stays only on black/dark panels. */
:root {
	--gcid-primary-color: #c44e30;
}
.pd3d {
	--orange: #c44e30 !important;
}
/* 1.4.3 -- The same darker orange for the few spots whose color is saved outside the
   page content (Divi button style preset, Shop template banner, contact form buttons,
   shop "request" price label). */
html body #page-container .et_pb_section .preset--module--divi-button--15e28211-d945-4683-9b6c-eaf2fd860d42 {
	border-color: #c44e30;
}
html body #page-container .et_pb_section .preset--module--divi-button--15e28211-d945-4683-9b6c-eaf2fd860d42:hover {
	color: #c44e30 !important;
}
html body button.et_pb_contact_submit.et_pb_button:hover,
html body span.et_pb_contact_submit.et_pb_button.et_pb_file_upload_button:hover {
	color: #c44e30;
}
html body #nf-field-8 {
	background-color: #c44e30 !important;
}
html body .woocommerce ul.products li.product .price.pd-cat-request {
	color: #c44e30 !important;
}
html body.woocommerce-shop .et-l--body > .et_builder_inner_content > .et_pb_section.et_pb_section_2_tb_body {
	background-color: #c44e30 !important;
}
