.wc-ipof-wrapper {
	--wc-ipof-primary-start: #06b6d4;
	--wc-ipof-primary-end: #0f766e;
	--wc-ipof-primary-text: #ffffff;
	--wc-ipof-secondary-bg: #ffffff;
	--wc-ipof-secondary-text: #0f172a;
	--wc-ipof-secondary-border: #cbd5e1;
	--wc-ipof-button-radius: 999px;
	margin-top: 1.5rem;
	padding: 1.5rem;
	border: 1px solid rgba(17, 24, 39, 0.1);
	border-radius: 18px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.wc-ipof-form {
	display: grid;
	gap: 1rem;
}

.wc-ipof-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.wc-ipof-field {
	display: grid;
	gap: 0.45rem;
}

.wc-ipof-field label {
	font-weight: 600;
	color: #0f172a;
}

.wc-ipof-field input,
.wc-ipof-field select {
	width: 100%;
	min-height: 48px;
	padding: 0.85rem 0.95rem;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #ffffff;
	color: #0f172a;
}

.wc-ipof-field input:focus,
.wc-ipof-field select:focus {
	outline: none;
	border-color: #0ea5e9;
	box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.wc-ipof-summary {
	padding: 1rem 1.1rem;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
}

.wc-ipof-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	color: #334155;
}

.wc-ipof-summary-row strong {
	color: #0f172a;
}

.wc-ipof-summary-total {
	margin-top: 0.35rem;
	padding-top: 0.85rem;
	border-top: 1px solid #e2e8f0;
	font-size: 1.05rem;
}

.wc-ipof-feedback {
	display: none;
	padding: 0.95rem 1rem;
	border-radius: 12px;
	font-weight: 600;
}

.wc-ipof-feedback.is-success,
.wc-ipof-feedback.is-error {
	display: block;
}

.wc-ipof-feedback.is-success {
	background: #dcfce7;
	color: #166534;
}

.wc-ipof-feedback.is-error {
	background: #fee2e2;
	color: #991b1b;
}

.wc-ipof-actions {
	display: grid;
	gap: 0.85rem;
}

.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-submit.button.alt,
.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-submit.button,
.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-add-to-cart.button,
.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-add-to-cart.button.alt {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	min-height: 56px !important;
	padding: 0.95rem 1.5rem !important;
	margin: 0 !important;
	border-radius: var(--wc-ipof-button-radius) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em !important;
	line-height: 1.2 !important;
	text-align: center !important;
	text-transform: uppercase !important;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-submit.button.alt,
.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-submit.button {
	border: 0 !important;
	background: linear-gradient(135deg, var(--wc-ipof-primary-start) 0%, var(--wc-ipof-primary-end) 100%) !important;
	color: var(--wc-ipof-primary-text) !important;
}

.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-add-to-cart.button,
.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-add-to-cart.button.alt {
	border: 1px solid var(--wc-ipof-secondary-border) !important;
	background: var(--wc-ipof-secondary-bg) !important;
	color: var(--wc-ipof-secondary-text) !important;
}

.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-submit.button.alt:hover,
.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-submit.button:hover {
	filter: brightness(0.97);
}

.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-add-to-cart.button:hover,
.single-product .wc-ipof-wrapper .wc-ipof-actions .wc-ipof-add-to-cart.button.alt:hover {
	background: #f8fafc !important;
}

.wc-ipof-submit[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
}

.wc-ipof-add-to-cart[disabled] {
	opacity: 0.65;
	cursor: not-allowed;
}

@media (max-width: 767px) {
	.wc-ipof-wrapper {
		padding: 1rem;
		border-radius: 14px;
	}

	.wc-ipof-fields {
		grid-template-columns: 1fr;
	}
}
