/**
 * Amrod Branding Options - Frontend Styles
 */

.amrod-branding-section {
	margin: 20px 0;
	padding: 20px;
	background: #f8f9fa;
	border: 1px solid #e0e3e5;
	border-radius: 6px;
	width: 100%;
	clear: both;
	display: block;
}

.amrod-branding-header h3 {
	margin: 0 0 12px;
	font-size: 1.15em;
	font-weight: 600;
}

.amrod-branding-pdf {
	margin: 0 0 16px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #d5d8dc;
	border-radius: 4px;
}

.amrod-branding-pdf-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #0071a1;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s;
}

.amrod-branding-pdf-btn:hover,
.amrod-branding-pdf-btn:focus {
	background: #005177;
	color: #fff !important;
	text-decoration: none;
}

.amrod-branding-pdf-icon {
	font-size: 1.2em;
}

.amrod-branding-pdf-help {
	margin: 8px 0 0;
	font-size: 0.9em;
	color: #555;
}

.amrod-branding-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 12px;
}

.amrod-branding-card {
	background: #fff;
	border: 1px solid #d5d8dc;
	border-radius: 4px;
	padding: 14px;
}

.amrod-branding-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.amrod-branding-card-label {
	font-weight: 600;
	font-size: 0.95em;
}

.amrod-branding-card-remove {
	background: none;
	border: 1px solid transparent;
	width: 28px;
	height: 28px;
	border-radius: 4px;
	font-size: 1.3em;
	line-height: 1;
	color: #888;
	cursor: pointer;
	padding: 0;
	transition: all 0.15s;
}

.amrod-branding-card-remove:hover {
	background: #fee;
	color: #c00;
	border-color: #fbb;
}

.amrod-branding-card-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.amrod-branding-field {
	display: flex;
	flex-direction: column;
}

.amrod-branding-artwork-field,
.amrod-branding-cost {
	grid-column: 1 / -1;
}

.amrod-branding-field label {
	font-size: 0.85em;
	font-weight: 600;
	margin-bottom: 4px;
	color: #333;
}

.amrod-branding-field select,
.amrod-branding-field input[type="file"] {
	padding: 8px 10px;
	border: 1px solid #c5c8cc;
	border-radius: 4px;
	background: #fff;
	font-size: 0.95em;
	width: 100%;
	box-sizing: border-box;
}

.amrod-branding-field select:disabled {
	background: #f3f4f5;
	color: #888;
	cursor: not-allowed;
}

.amrod-branding-field select:focus {
	outline: none;
	border-color: #0071a1;
	box-shadow: 0 0 0 2px rgba(0, 113, 161, 0.15);
}

.amrod-branding-artwork-controls {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.amrod-branding-artwork-status {
	min-height: 1.2em;
	font-size: 0.9em;
}

.amrod-branding-artwork-status.is-progress {
	color: #666;
	font-style: italic;
}

.amrod-branding-artwork-status.is-success {
	color: #0a7d28;
}

.amrod-branding-artwork-status.is-error {
	color: #c00;
	font-weight: 500;
}

.amrod-branding-artwork-ok {
	display: inline-block;
	padding: 2px 6px;
	background: #e6f5ea;
	border-radius: 3px;
}

.amrod-branding-artwork-clear {
	background: none;
	border: none;
	color: #c00;
	cursor: pointer;
	font-size: 0.85em;
	text-decoration: underline;
	margin-left: 6px;
}

.amrod-branding-prev-artwork {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #e0e3e5;
}

.amrod-branding-prev-artwork label {
	font-size: 0.8em;
	color: #666;
	font-weight: 500;
}

.amrod-branding-cost {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid #eee;
	font-size: 0.95em;
}

.amrod-branding-cost-label {
	color: #555;
}

.amrod-branding-cost-value {
	font-weight: 600;
	color: #111;
}

.amrod-branding-free {
	color: #0a7d28;
	font-weight: 600;
}

.amrod-branding-section .amrod-branding-add-position {
	display: block;
	width: 100%;
	box-sizing: border-box;
	float: none;
	position: static;
	margin: 0 0 12px;
	padding: 10px;
	background: #fff;
	border: 1px dashed #0071a1;
	color: #0071a1;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s;
}

.amrod-branding-add-position:hover:not(:disabled) {
	background: #f0f7fb;
}

.amrod-branding-add-position:disabled,
.amrod-branding-add-position.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	border-style: solid;
}

.amrod-branding-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 14px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #c0e4d4;
	border-radius: 4px;
	font-size: 1.05em;
	font-weight: 600;
}

.amrod-branding-total-label {
	color: #555;
}

.amrod-branding-total-value {
	color: #0a7d28;
	font-size: 1.1em;
}

.amrod-branding-quote-note {
	margin-top: 14px;
	padding: 10px 14px;
	background: #fff8e1;
	border: 1px solid #f4d780;
	border-radius: 4px;
	font-size: 0.9em;
	color: #664d03;
}

/* When our section is above the qty+button row, restore natural layout */
.amrod-branding-section ~ .single_variation_wrap .variations_button,
.amrod-branding-section + .variations_button {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	justify-content: flex-start;
	margin-top: 18px;
	width: 100%;
}

.amrod-branding-section ~ .single_variation_wrap .quantity,
.amrod-branding-section + .variations_button .quantity {
	flex: 0 0 auto;
}

.amrod-branding-section ~ .single_variation_wrap .single_add_to_cart_button,
.amrod-branding-section ~ .single_variation_wrap .yith-ywraq-add-to-quote,
.amrod-branding-section + .variations_button .single_add_to_cart_button,
.amrod-branding-section + .variations_button .yith-ywraq-add-to-quote {
	flex: 1 1 auto;
	min-width: 180px;
}

/* Mobile */
@media (max-width: 768px) {
	.amrod-branding-card-body {
		grid-template-columns: 1fr;
	}
	.amrod-branding-pdf-btn {
		width: 100%;
		justify-content: center;
	}
}
