/**
 * Mini quote popup styles.
 */

.wcof-mini-quote-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999999;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wcof-mini-quote-popup.active {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}

.wcof-mini-quote-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	cursor: pointer;
}

.wcof-mini-quote-content-wrapper {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 640px;
	max-width: calc(100vw - 4rem);
	max-height: calc(100vh - 4rem);
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.wcof-mini-quote-header {
	background: #4a4a4a;
	padding: 0.75rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: none;
}

.wcof-mini-quote-header h2 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #000;
	line-height: 1.5;
	font-family: inherit;
}

.wcof-mini-quote-close {
	background: none;
	border: none;
	padding: 0.5rem;
	cursor: pointer;
	color: #000;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
}

.wcof-mini-quote-close:hover {
	color: #000;
	background-color: rgba(0, 0, 0, 0.05);
}

.wcof-mini-quote-content {
	flex: 1;
	overflow-y: auto;
	padding: 0;
}

.wcof-mini-quote-empty {
	text-align: center;
	padding: 3rem 1rem;
}

.wcof-mini-quote-empty p {
	margin-bottom: 1.5rem;
	color: #666;
}

.wcof-mini-quote-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcof-mini-quote-item {
	display: flex;
	gap: 1rem;
	padding: 1rem 1.5rem;
	border-bottom: 1px dashed #d0d0d0;
	position: relative;
	align-items: flex-start;
	background: #fff;
}

.wcof-mini-quote-item:last-child {
	border-bottom: none;
}

.wcof-mini-quote-item-thumbnail {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 4px;
}

.wcof-mini-quote-item-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wcof-mini-quote-item-details {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wcof-mini-quote-item-name {
	font-weight: 700;
	color: #000;
	text-decoration: none;
	display: block;
	font-size: 14px;
	line-height: 1.4;
}

.wcof-mini-quote-item-name:hover {
	text-decoration: underline;
}

.wcof-mini-quote-item-name-suffix {
	font-weight: 400;
}

.wcof-mini-quote-item-variation {
	font-size: 14px;
	color: #000;
}

.wcof-mini-quote-item-custom-data {
	font-size: 12px;
	color: #666;
	margin-top: 0.25rem;
}

.wcof-mini-quote-item-qty {
	font-size: inherit;
	color: inherit;
	font-weight: 400;
}

.wcof-mini-quote-item-price {
	font-size: 14px;
	color: #000;
	font-weight: 400;
	margin-top: 0.25rem;
}

.wcof-mini-quote-item-remove {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	text-decoration: none;
	font-size: 24px;
	line-height: 1;
	transition: color 0.3s ease;
	border-radius: 50%;
	font-weight: 300;
}

.wcof-mini-quote-item-remove:hover {
	color: #d32f2f;
	background-color: rgba(211, 47, 47, 0.1);
}

.wcof-mini-quote-footer {
	padding: 1.5rem;
	border-top: none;
	background: #fff;
}

.wcof-mini-quote-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	font-size: 14px;
	padding: 0 0.5rem;
}

.wcof-mini-quote-subtotal-label {
	color: #000;
	font-weight: 400;
}

.wcof-mini-quote-subtotal-amount {
	font-weight: 700;
	color: #000;
}

.wcof-mini-quote-button {
	width: 100%;
	text-align: center;
	padding: 1rem 1.5rem;
	background-color: #7dba00;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none;
	display: block;
	transition: background-color 0.3s ease;
	text-transform: uppercase;
	font-size: 14px;
	letter-spacing: 0.5px;
	margin-top: 0.5rem;
}

.wcof-mini-quote-button:hover {
	background-color: #6ba000;
	color: #fff;
	text-decoration: none;
}

/* Shortcode version */
.wcof-mini-quote-shortcode {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
}

.wcof-mini-quote-shortcode .wcof-mini-quote-header {
	background: #4a4a4a;
	padding: 0.75rem 1.5rem;
	border-bottom: none;
}

.wcof-mini-quote-shortcode .wcof-mini-quote-header h2 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #000;
	line-height: 1.5;
}

.wcof-mini-quote-shortcode .wcof-mini-quote-content {
	padding: 0;
}

.wcof-mini-quote-shortcode .wcof-mini-quote-footer {
	padding: 1.5rem;
	border-top: none;
	background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
	.wcof-mini-quote-content-wrapper {
		width: calc(100vw - 2rem);
		max-height: calc(100vh - 2rem);
	}

	.wcof-mini-quote-header {
		padding: 0.75rem 1rem;
	}

	.wcof-mini-quote-header h2 {
		font-size: 12px;
	}

	.wcof-mini-quote-content {
		padding: 0;
	}

	.wcof-mini-quote-item {
		padding: 0.875rem 1rem;
	}

	.wcof-mini-quote-item-thumbnail {
		width: 60px;
		height: 60px;
	}

	.wcof-mini-quote-footer {
		padding: 1rem;
	}

	.wcof-mini-quote-shortcode .wcof-mini-quote-content {
		padding: 0;
	}

	.wcof-mini-quote-shortcode .wcof-mini-quote-header {
		padding: 0.75rem 1rem;
	}

	.wcof-mini-quote-shortcode .wcof-mini-quote-header h2 {
		font-size: 12px;
	}

	.wcof-mini-quote-shortcode .wcof-mini-quote-footer {
		padding: 1rem;
	}
}
