/* Matches want2catchmoretrout.co.nz / Avada theme primary palette */
.wpof-wrap {
	--wpof-primary: #e73e17;
	--wpof-primary-hover: #c93512;
	--wpof-error: #dc3232;
	--wpof-text: #747474;
	--wpof-heading: #333333;
	--wpof-border: #d2d2d2;
	--wpof-border-focus: #aaa;
	--wpof-bg-disabled: #f5f5f5;

	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 1rem;
	font-family: inherit;
	color: var(--wpof-heading);
}

.wpof-title {
	text-align: center;
	font-size: clamp(1.5rem, 4vw, 1.75rem);
	font-weight: 600;
	margin: 0 0 1rem;
	color: var(--wpof-heading);
}

.wpof-intro {
	text-align: center;
	color: var(--wpof-text);
	margin: 0 0 2rem;
	line-height: 1.6;
	font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.wpof-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.wpof-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
.mt-3{
	margin-top: 1.25rem;
}

.wpof-row--2 {
	grid-template-columns: repeat(2, 1fr);
}

.wpof-row--add {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

.wpof-add-note {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	color: var(--wpof-text);
	line-height: 1.5;
}

.wpof-delivery-note {
	font-size: 0.85rem;
	font-weight: normal;
	color: var(--wpof-text);
}

.wpof-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wpof-label {
	font-size: 0.9rem;
	color: var(--wpof-text);
}

.wpof-required {
	color: var(--wpof-primary);
}

.wpof-input,
.wpof-select,
.wpof-textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--wpof-border);
	border-radius: 0;
	font-size: 13px;
	font-family: inherit;
	color: var(--wpof-text);
	background-color: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.wpof-select {
	padding-right: 2.75rem;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23747474' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
}

.wpof-input:focus,
.wpof-select:focus,
.wpof-textarea:focus {
	outline: none;
	border-color: var(--wpof-border-focus);
}

.wpof-input.wpof-input--error,
.wpof-select.wpof-input--error {
	border-color: var(--wpof-error);
}

.wpof-select:disabled {
	background-color: var(--wpof-bg-disabled);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aaaaaa' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
	color: #999;
	cursor: not-allowed;
}

.wpof-textarea {
	resize: vertical;
	min-height: 150px;
}

.wpof-field-error {
	display: none;
	font-size: 0.8rem;
	color: var(--wpof-error);
	line-height: 1.4;
}

.wpof-field-error:not(:empty) {
	display: block;
}

.wpof-order-section {
	border: none;
	margin: 0;
	padding: 0;
}

.wpof-section-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	color: var(--wpof-heading);
}

.wpof-selectors-row {
	grid-template-columns: repeat(2, 1fr);
}

.wpof-selectors-row #wpof-color-wrap[hidden] + .wpof-field--qty {
	grid-column: 1 / -1;
	max-width: 220px;
}

.wpof-field--qty {
	max-width: 220px;
}

.wpof-btn {
	display: inline-block;
	padding: 11px 23px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 16px;
	border: none;
	border-radius: 0;
	cursor: pointer;
	font-family: inherit;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.wpof-btn--primary {
	background: var(--wpof-primary);
	color: #fff;
}

.wpof-btn--primary:hover {
	background: var(--wpof-primary-hover);
}

.wpof-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.wpof-btn--submit {
	align-self: flex-start;
	min-width: 160px;
}

.wpof-btn--remove {
	background: transparent;
	color: var(--wpof-primary);
	border: 1px solid var(--wpof-primary);
	padding: 6px 12px;
	font-size: 12px;
	text-transform: none;
	letter-spacing: 0;
}

.wpof-btn--remove:hover {
	background: var(--wpof-primary);
	color: #fff;
}

.wpof-items-section {
	border-top: 1px solid #e9eaee;
	padding-top: 1.25rem;
}

.wpof-items-section.wpof-items-section--error {
	border-top-color: var(--wpof-error);
}

.wpof-items-empty {
	color: var(--wpof-text);
	font-size: 0.9rem;
	margin: 0 0 0.25rem;
}

.wpof-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wpof-items-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	margin-top: 0.5rem;
	font-size: 0.9rem;
}

.wpof-items-total-row td {
	border-top: 2px solid #e9eaee;
	padding-top: 0.75rem;
}

.wpof-items-table th,
.wpof-items-table td {
	padding: 0.65rem 0.5rem;
	text-align: left;
	border-bottom: 1px solid #e9eaee;
	vertical-align: middle;
}

.wpof-items-table th {
	font-weight: 600;
	color: var(--wpof-text);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wpof-payment-note {
	font-size: 0.875rem;
	color: var(--wpof-text);
	line-height: 1.6;
	margin: 0;
}

.wpof-payment-note strong {
	color: var(--wpof-heading);
}

.wpof-feedback {
	padding: 0.75rem 1rem;
	border-radius: 0;
	font-size: 0.9rem;
}

.wpof-feedback--success {
	background: #eafaf1;
	color: #1e7e34;
	border: 1px solid #b7e4c7;
}

.wpof-feedback--error {
	background: #fdf0ef;
	color: var(--wpof-error);
	border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
	.wpof-wrap {
		padding: 1.5rem 1rem;
	}

	.wpof-row--2,
	.wpof-selectors-row {
		grid-template-columns: 1fr;
	}

	.wpof-field--qty,
	.wpof-selectors-row #wpof-color-wrap[hidden] + .wpof-field--qty {
		max-width: 100%;
	}

	.wpof-btn--submit {
		width: 100%;
		text-align: center;
	}

	.wpof-row--add .wpof-btn {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.wpof-form {
		gap: 1rem;
	}

	.wpof-input,
	.wpof-select,
	.wpof-textarea {
		font-size: 16px;
	}
}
