/* Optinovate Quotes — product-page button and the quote list page. Buttons inherit the theme's button style. */

.optq-price-on-request {
	font-weight: 600;
}

/* ---------- Product page ---------- */

.optq-add {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px 14px;
	margin: 16px 0 0;
}

.optq-add__hint {
	flex-basis: 100%;
	margin: 0;
	font-size: 14px;
	opacity: 0.8;
}

.optq-add__qty {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}

.optq-add .optq-add__qty input {
	width: 90px;
	height: auto;
	padding: 12px;
	border: 1px solid #c9ced6;
	border-radius: 4px;
	color: #111;
	text-align: center;
}

/* Matches WooLentor's dark "Add to basket": outlined next to it, filled when it's the only way to order. */
.optq-add .optq-add__button.button {
	padding: 14px 28px;
	border: 2px solid #111;
	border-radius: 4px;
	background: #fff;
	background-image: none;
	color: #111;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none;
}

.optq-add .optq-add__button.button:hover,
.optq-add .optq-add__button.button:focus-visible {
	background: #111;
	color: #fff;
}

.optq-add--only .optq-add__button.button {
	background: #111;
	color: #fff;
}

.optq-add--only .optq-add__button.button:hover,
.optq-add--only .optq-add__button.button:focus-visible {
	border-color: #2f80ed;
	background: #2f80ed;
}

.optq-add .optq-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 22px;
	border: 2px solid #1faa53;
	border-radius: 4px;
	background: #25d366;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.optq-add .optq-whatsapp:hover,
.optq-add .optq-whatsapp:focus-visible {
	background: #1faa53;
	color: #fff;
}

.optq-add__promise {
	flex-basis: 100%;
	margin: 0;
	font-size: 13px;
	opacity: 0.75;
}

/* ---------- Quote list page ---------- */

.optq {
	max-width: 1000px;
	margin: 0 auto;
}

.optq-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 16px;
}

.optq-table th,
.optq-table td {
	padding: 12px 8px;
	border-bottom: 1px solid #e5e8ec;
	text-align: left;
	vertical-align: middle;
}

.optq-table__image img {
	width: 64px;
	height: auto;
	display: block;
}

.optq-table__product a {
	font-weight: 600;
}

.optq-table__product textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	margin-top: 6px;
	font-size: 14px;
	resize: vertical;
}

.optq-table__qty input {
	width: 80px;
}

/* The theme styles every <button> as a large gradient pill; the remove cross opts out. */
.optq .optq-remove {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef1f5;
	background-image: none;
	color: #333;
	font-size: 20px;
	line-height: 32px;
	box-shadow: none;
	cursor: pointer;
}

.optq .optq-remove:hover,
.optq .optq-remove:focus-visible {
	background: #d8dee6;
}

.optq-list-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 32px;
}

.optq .optq-secondary,
.optq-cart-to-quote .optq-secondary {
	background: transparent;
	background-image: none;
	border: 1px solid currentColor;
	color: inherit;
	box-shadow: none;
}

/* ---------- Cart ---------- */

.optq-cart-to-quote {
	margin: 16px 0 0;
	text-align: center;
}

.optq-cart-to-quote__hint {
	margin: 0 0 8px;
	font-size: 14px;
	opacity: 0.8;
}

.optq-cart-to-quote .optq-secondary {
	width: 100%;
}

.optq-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px 20px;
}

.optq-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 12px;
}

.optq-field--wide {
	grid-column: 1 / -1;
}

.optq-field input,
.optq-field select,
.optq-field textarea {
	width: 100%;
}

.optq-field small {
	opacity: 0.75;
}

.optq-consent label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.optq-consent input {
	width: auto;
	margin-top: 4px;
}

.optq .required {
	color: #c00;
	text-decoration: none;
	border: 0;
}

.optq-honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.optq-submit {
	margin-top: 8px;
}

.optq-small {
	font-size: 14px;
	opacity: 0.75;
}

.optq-done,
.optq-empty,
.optq-decline {
	padding: 32px;
	border-radius: 12px;
	background: #f3f7fd;
	text-align: center;
}

.optq-decline {
	text-align: left;
}

.optq-decline textarea {
	width: 100%;
	margin: 6px 0 16px;
}

.optq-decline__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

@media (max-width: 640px) {
	.optq-fields {
		grid-template-columns: 1fr;
	}

	.optq-table thead {
		display: none;
	}

	.optq-table tr {
		display: grid;
		grid-template-columns: 64px 1fr auto;
		gap: 4px 12px;
		padding: 12px 0;
		border-bottom: 1px solid #e5e8ec;
	}

	.optq-table td {
		padding: 0;
		border: 0;
	}

	.optq-table__image {
		grid-column: 1;
		grid-row: 1 / span 3;
	}

	.optq-table__product {
		grid-column: 2;
		grid-row: 1;
	}

	.optq-table__price {
		grid-column: 2;
		grid-row: 2;
	}

	.optq-table__qty {
		grid-column: 2;
		grid-row: 3;
	}

	.optq-table__price::before,
	.optq-table__qty::before {
		content: attr(data-title) ": ";
		font-size: 13px;
		opacity: 0.7;
	}

	.optq-table__remove {
		grid-column: 3;
		grid-row: 1;
	}
}
