/* Trade Packaging pricing table: added a "Quantity" column (was 5 columns, now 6).
   style.css's .pricing-row grid-template-columns still assumes 5, which pushes
   the 6th cell (Action) onto its own implicit row. Override the column tracks
   at every breakpoint style.css defines them at. */
.pricing-row {
	grid-template-columns: 100px minmax(240px, 1.2fr) minmax(150px, .8fr) 135px 110px 120px;
}

.quantity-cell {
	justify-content: center;
}

.substrate-select,
.quantity-select {
	width: 100%;
	padding: 6px 26px 6px 10px;
	border: 1px solid var(--jp-border);
	border-radius: 4px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172033' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 8px center;
	background-size: 12px;
	color: var(--jp-text);
	font-size: 13px;
	line-height: 1.3;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
}

.substrate-select:focus,
.quantity-select:focus {
	outline: none;
	border-color: var(--jp-purple);
}

@media (max-width: 1399px) {
	.pricing-row {
		grid-template-columns: 95px minmax(240px, 1.2fr) minmax(150px, .8fr) 120px 95px 120px;
	}
}

@media (max-width: 991px) {
	.pricing-table {
		min-width: 1200px;
	}
	.pricing-menu {
		overflow-x: auto;
	}
	.pricing-row {
		grid-template-columns: 120px minmax(260px, 1.25fr) minmax(150px, .8fr) 140px 130px 125px;
	}
}

/* 404.php: theme's 404 page had no styling (plain default WordPress markup).
   Styled it to match the rest of the site — Poppins font, purple/navy brand
   colors and .btn classes already defined in css/style.css, gradient "404"
   treatment like the .ps-title gradient text used elsewhere on the site. */
.error-404-section {
	min-height: 65vh;
	display: flex;
	align-items: center;
	padding: 90px 0;
}

.error-404-section .error-code {
	display: block;
	font-size: clamp(90px, 18vw, 170px);
	font-weight: 800;
	line-height: 1;
	background: linear-gradient(90deg, var(--jp-purple), #1689d8);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.error-404-section h1 {
	font-size: clamp(24px, 3.3vw, 36px);
	margin: 10px 0 15px;
	color: var(--jp-navy);
}

.error-404-section p {
	max-width: 520px;
	margin: 0 auto 30px;
	color: var(--jp-text);
	font-size: 17px;
}

.error-404-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 35px;
}

@media (max-width: 991px) {
	.error-404-section {
		min-height: 55vh;
		padding: 60px 0;
	}
}

/* Checkout order summary: remove (×) button injected by
   helper/checkout-order-summary-remove.php into each cart line item. */
.wc-block-components-order-summary-item {
	position: relative;
	padding-right: 26px;
}

.jp-order-summary-remove {
	position: absolute;
	top: 0;
	right: 0;
	width: 22px;
	height: 22px;
	line-height: 20px;
	padding: 0;
	border: 1px solid var(--jp-border);
	border-radius: 50%;
	background: #fff;
	color: var(--jp-navy);
	font-size: 16px;
	text-align: center;
	cursor: pointer;
	transition: .2s ease;
}

.jp-order-summary-remove:hover {
	background: #e63946;
	border-color: #e63946;
	color: #fff;
}

.jp-order-summary-remove:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* Checkout: small helper note injected under the "Additional order information"
   heading by helper/checkout-design-file-url-field.php. */
.jp-additional-order-info-note {
	margin: -8px 0 16px;
	font-size: 13px;
	color: var(--jp-text);
	opacity: .8;
}

/* contact.php: "Request a Custom Quote" form — page has no styling of its own
   in style.css, built here using the site's existing brand variables/fonts. */
.quote-section {
	padding: 90px 0;
	background: #fff;
}

.quote-form {
	max-width: 900px;
	margin: 50px auto 0;
	background: #fff;
	border: 1px solid var(--jp-border);
	border-radius: 20px;
	box-shadow: var(--shadow);
	padding: 45px;
}

.quote-form-block {
	padding-bottom: 35px;
	margin-bottom: 35px;
	border-bottom: 1px solid var(--jp-border);
}

.quote-form-block:last-of-type {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}

.quote-form-block-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}

.quote-form-block-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--jp-purple);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
}

.quote-form-block-heading h2 {
	font-size: 20px;
	margin: 0;
	color: var(--jp-navy);
}

.quote-form .form-label {
	font-weight: 500;
	color: var(--jp-navy);
	margin-bottom: 6px;
}

.quote-form .required {
	color: #d62828;
}

.quote-form .optional {
	font-weight: 400;
	color: var(--jp-text);
	opacity: .65;
	font-size: 13px;
}

.quote-form .form-control,
.quote-form .form-select {
	border: 1px solid var(--jp-border);
	border-radius: 4px;
	padding: 11px 14px;
	font-size: 15px;
	font-family: inherit;
	color: var(--jp-text);
}

.quote-form .form-control:focus,
.quote-form .form-select:focus {
	border-color: var(--jp-purple);
	box-shadow: 0 0 0 3px rgba(144, 63, 149, .12);
	outline: none;
}

.quote-form .form-control::placeholder {
	color: #9aa3af;
}

.quote-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px 20px;
	margin-top: 8px;
}

.quote-form .form-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-left: 0;
}

.quote-form .form-check-input {
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid var(--jp-border);
	cursor: pointer;
}

.quote-form .form-check-input:checked {
	background-color: var(--jp-purple);
	border-color: var(--jp-purple);
}

.quote-form .form-check-label {
	color: var(--jp-text);
	font-size: 15px;
	cursor: pointer;
}

.quote-form-note {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--jp-text);
	opacity: .75;
}

.quote-form-note a {
	color: var(--jp-purple);
	font-weight: 500;
}

.quote-form-submit {
	text-align: center;
	margin-top: 10px;
}

@media (max-width: 767px) {
	.quote-form {
		padding: 28px 20px;
		margin-top: 30px;
	}
	.quote-checkbox-grid {
		grid-template-columns: 1fr;
	}
}

/* The form is now rendered by Contact Form 7 (not our own markup), so the
   .form-check / .form-check-input rules above don't match anything real —
   CF7's own checkbox output uses .wpcf7-checkbox / .wpcf7-list-item, and its
   submit button is a plain <input class="wpcf7-submit">. Style those instead. */
.quote-form .wpcf7-checkbox {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 24px;
	margin-top: 10px;
}

.quote-form .wpcf7-list-item {
	margin: 0;
}

.quote-form .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--jp-text);
	font-size: 15px;
	line-height: 1.4;
	cursor: pointer;
}

.quote-form .wpcf7-list-item input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex-shrink: 0;
	accent-color: var(--jp-purple);
	cursor: pointer;
}

.quote-form input.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	border: 1px solid var(--jp-purple);
	border-radius: 4px;
	background: var(--jp-purple);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: .25s ease;
}

.quote-form input.wpcf7-submit:hover {
	background: #000;
	border-color: #000;
}

.quote-form input.wpcf7-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
}

@media (max-width: 575px) {
	.quote-form .wpcf7-checkbox {
		grid-template-columns: 1fr;
	}
}
