/* Frontend Styles: WC Paired Products Manager */

.wc-ppm-paired-block-wrapper,
.wc-ppm-paired-badge,
.wc-ppm-main-badge {
	font-family: "Noto Sans Armenian", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wc-ppm-hidden {
	display: none !important;
}

/* === Paired Item Row (Single Product Page) === */
.wc-ppm-paired-item-row {
	display: flex;
	gap: 15px;
	margin-top: 15px;
	padding: 12px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fafafa;
	align-items: center;
	transition: border-color 0.2s ease;
}

.wc-ppm-paired-item-row:hover {
	border-color: #ccc;
}

.wc-ppm-paired-item-image {
	flex: 0 0 70px;
}

.wc-ppm-paired-item-image img {
	width: 70px;
	height: auto;
	border-radius: 4px;
	border: 1px solid #eee;
}

.wc-ppm-paired-item-details {
	flex: 1;
}

.wc-ppm-item-label {
	font-size: 11px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
	font-weight: 600;
}

.wc-ppm-item-title {
	margin: 0 0 5px 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.wc-ppm-item-title a {
	color: #333;
	text-decoration: none;
}

.wc-ppm-item-title a:hover {
	color: #e53935;
}

.wc-ppm-item-price {
	font-weight: 600;
	font-size: 14px;
	color: #e53935;
}

/* === Matched Variation Attributes === */
.wc-ppm-item-attrs {
	margin: 6px 0 8px 0;
}

.wc-ppm-attr-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 3px;
	font-size: 13px;
	line-height: 1.4;
}

.wc-ppm-attr-label {
	font-weight: 700;
	color: #333;
}

.wc-ppm-attr-value {
	color: #555;
}

/* === Size Selector === */
.wc-ppm-size-selector {
	margin: 8px 0;
}

.wc-ppm-size-label {
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
	display: flex;
	gap: 6px;
	align-items: center;
}

.wc-ppm-size-selected-label {
	font-weight: 400;
	color: #555;
}

.wc-ppm-size-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.wc-ppm-size-btn {
	padding: 4px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s ease;
	color: #333;
	font-family: inherit;
}

.wc-ppm-size-btn:hover {
	border-color: #888;
	background: #f5f5f5;
}

.wc-ppm-size-btn.wc-ppm-size-active {
	background: #222;
	border-color: #222;
	color: #fff;
}

/* === Combined Price Total === */
.wc-ppm-total-row {
	margin-top: 10px;
	padding: 10px 12px;
	background: #f0f0f0;
	border-radius: 6px;
	text-align: right;
}

.wc-ppm-combined-price {
	font-size: 15px;
}

.wc-ppm-combined-label {
	font-weight: 600;
	color: #333;
}

.wc-ppm-combined-amount {
	font-weight: 700;
	font-size: 17px;
	color: #e53935;
}

/* === Placeholder (auto-match, before selection) === */
.wc-ppm-auto-match-placeholder {
	border: 1px dashed #ccc;
	background: #f9f9f9;
	opacity: 0.7;
}

.wc-ppm-placeholder-img {
	background: #eee;
	height: 70px;
	width: 70px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
	font-size: 28px;
}

.wc-ppm-placeholder-title {
	color: #666 !important;
	font-weight: 500 !important;
}

/* === Loading state === */
.wc-ppm-loading-row {
	display: flex;
	gap: 15px;
	margin-top: 15px;
	padding: 12px;
	border: 1px dashed #ccc;
	border-radius: 6px;
	background: #f9f9f9;
	align-items: center;
}

.wc-ppm-loading-img {
	flex: 0 0 70px;
	height: 70px;
	background: #eee;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #aaa;
	animation: wc-ppm-spin 1s linear infinite;
}

@keyframes wc-ppm-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* === Cart / Mini Cart Badges === */
.wc-ppm-paired-badge,
.wc-ppm-main-badge {
	display: block;
	font-size: 0.85em;
	color: #666;
	margin-top: 4px;
}

.wc-ppm-paired-badge {
	color: #e53e3e;
}

.wc-ppm-main-badge {
	color: #3182ce;
}
