/* ==========================================================================
   Sweet Prints Variations — Product Page Styles
   Mobile-first. Integrates cleanly with WooCommerce default / GeneratePress.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */

.spv-options {
	margin: 1.5rem 0 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e5e7eb;
}

/* --------------------------------------------------------------------------
   Field groups
   -------------------------------------------------------------------------- */

.spv-field-group {
	margin-bottom: 1rem;
}

.spv-field-group:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Labels
   -------------------------------------------------------------------------- */

.spv-label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1f2937;
}

.spv-optional {
	font-weight: 400;
	font-size: 0.8rem;
	color: #6b7280;
	margin-left: 0.25rem;
}

.spv-hint {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.8rem;
	color: #6b7280;
}

/* --------------------------------------------------------------------------
   Inputs, selects, textareas
   -------------------------------------------------------------------------- */

.spv-input,
.spv-select,
.spv-textarea {
	display: block;
	width: 100%;
	padding: 0.55rem 0.75rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #1f2937;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.spv-input:focus,
.spv-select:focus,
.spv-textarea:focus {
	outline: none;
	border-color: #A8DADC;
	box-shadow: 0 0 0 3px rgba(5, 96, 107, 0.2);
}

/* Narrower number input */
.spv-input--number {
	max-width: 150px;
}

/* Custom dropdown arrow */
.spv-select {
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	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 d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2.25rem;
}

.spv-textarea {
	resize: vertical;
	min-height: 80px;
}

/* --------------------------------------------------------------------------
   Checkboxes
   -------------------------------------------------------------------------- */

.spv-checkbox-group {
	margin-bottom: 0.75rem;
}

.spv-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #1f2937;
}

.spv-checkbox {
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.2rem;
	cursor: pointer;
	accent-color: #7BBFC2;
}

/* --------------------------------------------------------------------------
   Nested fields (text-mod sub-fields)
   -------------------------------------------------------------------------- */

.spv-nested-fields {
	margin-top: 0.75rem;
	padding: 1rem;
	background: #FFFFFF;
	border: 1px solid #A8DADC;
	border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */

.spv-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	padding: 0.6rem 0.9rem;
	margin: 0.5rem 0 0.75rem;
	border-radius: 5px;
	font-size: 0.875rem;
	line-height: 1.5;
}

.spv-notice--info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

.spv-notice--warning {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

/* Cookie cutter "one cutter" note */
.spv-cutter-notice {
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 5px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #166534;
}

/* --------------------------------------------------------------------------
   Live price summary
   -------------------------------------------------------------------------- */

.spv-price-summary {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.25rem;
	padding: 0.75rem 1rem;
	background: #FFFFFF;
	border: 1px solid #A8DADC;
	border-radius: 6px;
}

.spv-price-label {
	font-size: 0.9rem;
	color: #6b7280;
	white-space: nowrap;
}

.spv-price-amount {
	font-size: 1.4rem;
	font-weight: 700;
	color: #7BBFC2;
	letter-spacing: -0.02em;
	line-height: 1;
}

/* --------------------------------------------------------------------------
   Spacing between conditional blocks
   -------------------------------------------------------------------------- */

.spv-conditional + .spv-conditional,
.spv-conditional + .spv-field-group,
.spv-field-group + .spv-conditional {
	margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   "Other size" contact notice
   -------------------------------------------------------------------------- */

.spv-notice--contact {
	display: block;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 6px;
	padding: 1rem 1.1rem;
	color: #9a3412;
}

.spv-contact-intro {
	margin: 0 0 0.6rem;
	font-size: 0.95rem;
	font-weight: 600;
}

.spv-contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.spv-contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.9rem;
	border-radius: 5px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.spv-contact-link:hover {
	opacity: 0.85;
	text-decoration: none;
}

.spv-contact-link--fb {
	background: #1877f2;
	color: #fff;
}

.spv-contact-link--ig {
	background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
	color: #fff;
}

/* --------------------------------------------------------------------------
   Sheet Builder banner link
   -------------------------------------------------------------------------- */

.spv-sheet-builder-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.9rem;
	padding: 0.75rem 1rem;
	background: #FFFFFF;
	border: 1px dashed #A8DADC;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	color: #4A4A4A;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.spv-sheet-builder-banner:hover {
	background: #EAF6FF;
	border-color: #A8DADC;
	text-decoration: none;
	color: #4A4A4A;
}

.spv-sheet-builder-banner .spv-arrow {
	font-size: 1.1rem;
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Mobile overrides (< 480 px)
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
	.spv-input--number {
		max-width: 100%;
	}

	.spv-price-amount {
		font-size: 1.2rem;
	}

	.spv-price-summary {
		flex-wrap: wrap;
	}

	.spv-contact-links {
		flex-direction: column;
	}

	.spv-sheet-builder-banner {
		font-size: 0.85rem;
	}
}
