/**
 * WooCommerce Quick Order - Frontend Stylesheet
 * Modern COD Landing Page Style & Arabic Typography
 *
 * @package WooCommerceQuickOrder
 * @version 1.4.0
 */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   1. Container Card & Base Layout
   ========================================================================== */
.wc-qo-card {
	max-width: 580px;
	margin: 24px auto;
	background: #ffffff;
	padding: 24px 20px;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
	border: 1px solid #e5e7eb;
	direction: rtl;
	text-align: right;
	box-sizing: border-box;
	font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, 'Cairo', sans-serif;
	position: relative;
	overflow: hidden;
}

.wc-quick-order-form {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	box-sizing: border-box;
	width: 100%;
}

.wc-qo-card *,
.wc-quick-order-form * {
	box-sizing: border-box;
}

/* ==========================================================================
   2. Product Media Showcase (Main Image & Gallery Strip)
   ========================================================================== */
.wc-qo-media-showcase {
	margin-bottom: 22px;
	background: #f9fafb;
	border-radius: 12px;
	padding: 12px;
	border: 1px solid #f3f4f6;
}

.wc-qo-main-image-wrapper {
	position: relative;
	width: 100%;
	max-height: 380px;
	overflow: hidden;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	border: 1px solid #f3f4f6;
}

.wc-qo-main-image-wrapper img {
	width: 100%;
	height: auto;
	max-height: 360px;
	object-fit: contain;
	transition: opacity 0.25s ease, transform 0.25s ease;
	display: block;
}

.wc-qo-thumb-strip {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.wc-qo-thumb-strip::-webkit-scrollbar {
	height: 5px;
}

.wc-qo-thumb-strip::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 10px;
}

.wc-qo-thumb-item {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: #ffffff;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wc-qo-thumb-item:hover {
	border-color: #10b981;
	transform: translateY(-1px);
}

.wc-qo-thumb-item.active {
	border-color: #10b981;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.wc-qo-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ==========================================================================
   3. Header & Trust Delivery Badge
   ========================================================================== */
.wc-quick-order-header {
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px dashed #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.wc-quick-order-header h3 {
	margin: 0;
	font-size: 21px;
	font-weight: 800;
	color: #111827;
	line-height: 1.35;
	font-family: inherit;
}

.wc-qo-badge-delivery {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
	padding: 6px 14px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 700;
}

/* ==========================================================================
   4. Feedback Messages & Notice
   ========================================================================== */
.wc-qo-message {
	padding: 13px 16px;
	margin-bottom: 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	display: none;
}

.wc-qo-message-success {
	background-color: #ecfdf5;
	color: #065f46;
	border: 1.5px solid #a7f3d0;
}

.wc-qo-message-error {
	background-color: #fef2f2;
	color: #991b1b;
	border: 1.5px solid #fecaca;
}

/* ==========================================================================
   5. Tiered Discounts & Offer Cards
   ========================================================================== */
.wc-qo-offers-block {
	margin-bottom: 22px;
	background: #fffbeb;
	border: 1.5px solid #fef3c7;
	border-radius: 12px;
	padding: 14px 16px;
}

.wc-qo-offers-title {
	font-weight: 800;
	font-size: 14px;
	color: #92400e;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.wc-qo-offers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
	gap: 10px;
}

.wc-qo-offer-card {
	background: #ffffff;
	border: 2px solid #fde68a;
	border-radius: 10px;
	padding: 10px 8px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
}

.wc-qo-offer-card:hover {
	border-color: #f59e0b;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
}

.wc-qo-offer-card.active {
	background: #fef3c7;
	border-color: #d97706;
	box-shadow: 0 0 0 2px #d97706;
}

.wc-qo-offer-qty {
	font-weight: 800;
	font-size: 15px;
	color: #1e293b;
}

.wc-qo-offer-badge {
	display: inline-block;
	margin-top: 5px;
	background: #dc2626;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 6px;
	letter-spacing: 0.2px;
}

/* ==========================================================================
   6. Variations & Swatches (Radio Cards with Checkmark Badge)
   ========================================================================== */
.wc-qo-variation-block {
	margin-bottom: 22px;
	background: #f9fafb;
	border-radius: 12px;
	padding: 16px;
	border: 1px solid #f3f4f6;
}

.wc-qo-attribute-group {
	margin-bottom: 14px;
}

.wc-qo-attribute-group:last-child {
	margin-bottom: 0;
}

.wc-qo-attr-title {
	font-weight: 700;
	font-size: 14px;
	color: #1f2937;
	margin-bottom: 9px;
}

.wc-qo-card-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wc-qo-card-option {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1.5px solid #d1d5db;
	border-radius: 10px;
	background: #ffffff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wc-qo-card-option:hover {
	border-color: #10b981;
	background: #f9fafb;
	transform: translateY(-1px);
}

.wc-qo-card-option.active {
	border-color: #10b981;
	background: #f0fdf4;
	color: #065f46;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 2px 6px rgba(16, 185, 129, 0.15);
	padding-left: 28px; /* space for checkmark badge */
}

/* Checkmark Badge for Active Swatch */
.wc-qo-card-option.active::after {
	content: "✓";
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	font-weight: 900;
	color: #10b981;
	background: #d1fae5;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.wc-qo-card-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.wc-qo-swatch-thumb {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	object-fit: cover;
	display: block;
	border: 1px solid #e5e7eb;
}

.wc-qo-card-label {
	display: inline-block;
}

/* ==========================================================================
   7. Typography & Form Fields (Inputs, Selects, Textareas)
   ========================================================================== */
.wc-qo-field-group {
	margin-bottom: 16px;
}

.wc-qo-field-group label,
.wc-quick-order-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 15px;
	color: #1f2937;
	line-height: 1.4;
}

.wc-quick-order-form .required {
	color: #ef4444;
	margin-right: 3px;
}

.wc-quick-order-form input[type="text"],
.wc-quick-order-form input[type="tel"],
.wc-quick-order-form input[type="email"],
.wc-quick-order-form input[type="number"],
.wc-quick-order-form input[type="date"],
.wc-quick-order-form input[type="time"],
.wc-quick-order-form select,
.wc-quick-order-form textarea,
.wc-qo-input,
.wc-qo-select,
.wc-qo-textarea {
	width: 100% !important;
	padding: 12px 14px !important;
	font-size: 15px !important;
	border: 1.5px solid #d1d5db !important;
	border-radius: 10px !important;
	background-color: #f9fafb !important;
	color: #111827 !important;
	font-family: inherit !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
	line-height: 1.5 !important;
}

.wc-quick-order-form select:disabled,
.wc-qo-select:disabled {
	background-color: #f3f4f6 !important;
	cursor: not-allowed !important;
	color: #9ca3af !important;
	border-color: #e5e7eb !important;
}

.wc-quick-order-form input[type="text"]:focus,
.wc-quick-order-form input[type="tel"]:focus,
.wc-quick-order-form input[type="email"]:focus,
.wc-quick-order-form input[type="number"]:focus,
.wc-quick-order-form input[type="date"]:focus,
.wc-quick-order-form input[type="time"]:focus,
.wc-quick-order-form select:focus,
.wc-quick-order-form textarea:focus,
.wc-qo-input:focus,
.wc-qo-select:focus,
.wc-qo-textarea:focus {
	border-color: #10b981 !important;
	background-color: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
	outline: none !important;
}

/* Radio Cards / Pills */
.wc-qo-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

.wc-qo-radio-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1.5px solid #d1d5db;
	border-radius: 10px;
	background: #ffffff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wc-qo-radio-pill:hover {
	border-color: #10b981;
	background: #f9fafb;
	transform: translateY(-1px);
}

.wc-qo-radio-pill.active,
.wc-qo-radio-pill:has(input:checked) {
	border-color: #10b981;
	background: #f0fdf4;
	color: #065f46;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 2px 6px rgba(16, 185, 129, 0.15);
}

.wc-qo-radio-pill input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.wc-qo-radio-pill-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid #9ca3af;
	background: #ffffff;
	display: inline-block;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.wc-qo-radio-pill.active .wc-qo-radio-pill-dot,
.wc-qo-radio-pill:has(input:checked) .wc-qo-radio-pill-dot {
	border-color: #10b981;
	background: #10b981;
	box-shadow: inset 0 0 0 3px #ffffff;
}

/* Checkbox Single Card */
.wc-qo-checkbox-card {
	background: #f9fafb;
	border: 1.5px solid #d1d5db;
	border-radius: 10px;
	padding: 12px 14px;
	transition: all 0.2s ease;
	cursor: pointer;
}

.wc-qo-checkbox-card:hover {
	border-color: #10b981;
	background: #ffffff;
}

.wc-qo-checkbox-card:has(input:checked) {
	border-color: #10b981;
	background: #f0fdf4;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.wc-qo-checkbox-label {
	display: flex !important;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	margin: 0 !important;
	font-weight: 600;
	font-size: 14px;
	color: #1f2937;
	user-select: none;
}

.wc-qo-custom-checkbox {
	width: 18px !important;
	height: 18px !important;
	cursor: pointer;
	accent-color: #10b981;
	flex-shrink: 0;
	margin: 0 !important;
}

/* ==========================================================================
   8. Quantity Selector (Sleek Counter with Pill Style)
   ========================================================================== */
.wc-qo-field-quantity {
	margin-top: 18px;
	margin-bottom: 20px;
}

.wc-qo-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid #d1d5db;
	border-radius: 9999px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	position: relative;
	z-index: 5;
}

.wc-qo-qty-btn {
	width: 44px;
	height: 44px;
	border: none;
	background: #f9fafb;
	color: #1f2937;
	font-size: 20px;
	font-weight: 800;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	font-family: inherit;
	pointer-events: auto !important;
	position: relative;
	z-index: 10;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}

.wc-qo-qty-btn:hover {
	background: #10b981;
	color: #ffffff;
}

.wc-qo-qty-btn:active {
	transform: scale(0.94);
}

.wc-qo-qty-input {
	width: 65px !important;
	height: 44px !important;
	border: none !important;
	border-left: 1px solid #e5e7eb !important;
	border-right: 1px solid #e5e7eb !important;
	text-align: center !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	color: #111827 !important;
	background: #ffffff !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	-moz-appearance: textfield;
}

.wc-qo-qty-input::-webkit-outer-spin-button,
.wc-qo-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ==========================================================================
   9. Summary Box (Card Style with Highlighted Grand Total)
   ========================================================================== */
.wc-qo-summary-box {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	padding: 16px;
	margin: 20px 0;
}

.wc-qo-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 15px;
	color: #374151;
	margin-bottom: 8px;
}

.wc-qo-summary-row:last-child {
	margin-bottom: 0;
}

.wc-qo-summary-value {
	font-weight: 700;
	color: #111827;
}

.wc-qo-discount-row {
	color: #dc2626 !important;
	font-weight: 700;
}

.wc-qo-discount-val {
	color: #dc2626 !important;
	font-weight: 800;
}

.wc-qo-summary-divider {
	height: 1px;
	background: #bbf7d0;
	margin: 12px 0;
}

.wc-qo-summary-total {
	font-size: 17px;
	font-weight: 800;
	color: #111827;
}

.wc-qo-total-price {
	font-size: 22px;
	font-weight: 800;
	color: #15803d;
	letter-spacing: -0.3px;
}

/* ==========================================================================
   10. CTA Order Button & Trust Notes
   ========================================================================== */
.wc-qo-submit-group {
	margin-top: 22px;
}

.wc-qo-submit-btn {
	width: 100% !important;
	padding: 16px 20px !important;
	background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
	color: #ffffff !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	border-radius: 12px !important;
	border: none !important;
	cursor: pointer !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
	box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35) !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 10px !important;
	font-family: inherit !important;
	line-height: 1.3 !important;
}

.wc-qo-submit-btn:hover {
	background: linear-gradient(135deg, #15803d 0%, #166534 100%) !important;
	box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45) !important;
	transform: translateY(-2px);
}

.wc-qo-submit-btn:active {
	transform: translateY(0);
}

.wc-qo-submit-btn:disabled {
	opacity: 0.75;
	cursor: not-allowed;
	transform: none;
}

.wc-qo-btn-icon {
	font-size: 20px;
}

.wc-qo-guarantee-note {
	text-align: center;
	font-size: 13.5px;
	color: #6b7280;
	margin-top: 12px;
	font-weight: 500;
	line-height: 1.4;
}

/* Loading Spinner */
.wc-qo-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: wc-qo-spin 0.7s linear infinite;
}

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

/* ==========================================================================
   11. Mobile Responsiveness
   ========================================================================== */
@media (max-width: 640px) {
	.wc-qo-card {
		margin: 12px auto;
		padding: 18px 14px;
		border-radius: 12px;
	}

	.wc-quick-order-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.wc-quick-order-header h3 {
		font-size: 19px;
	}

	.wc-qo-offers-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.wc-qo-total-price {
		font-size: 20px;
	}

	.wc-qo-submit-btn {
		font-size: 17px !important;
		padding: 15px 16px !important;
	}

	.wc-qo-main-image-wrapper {
		max-height: 300px;
	}

	.wc-qo-main-image-wrapper img {
		max-height: 280px;
	}

	.wc-qo-thumb-item {
		width: 56px;
		height: 56px;
	}

	.wc-qo-product-description {
		padding: 14px 16px;
		margin-top: 18px;
		border-radius: 12px;
	}

	.wc-qo-desc-title {
		font-size: 14px;
	}

	.wc-qo-desc-content {
		font-size: 13.5px;
		line-height: 1.65;
	}
}

/* ==========================================================================
   12. Product & Variation Description Box (After Submit)
   ========================================================================== */
.wc-qo-product-description {
	margin-top: 24px;
	padding: 18px 20px;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	text-align: right;
	direction: rtl;
	transition: all 0.25s ease;
}

.wc-qo-desc-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px dashed #cbd5e1;
}

.wc-qo-desc-icon {
	font-size: 18px;
	line-height: 1;
}

.wc-qo-desc-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.wc-qo-desc-content {
	font-size: 14px;
	line-height: 1.75;
	color: #334155;
	transition: opacity 0.2s ease;
}

.wc-qo-desc-content p {
	margin: 0 0 10px 0;
}

.wc-qo-desc-content p:last-child {
	margin-bottom: 0;
}

.wc-qo-desc-content ul,
.wc-qo-desc-content ol {
	margin: 8px 18px 10px 0;
	padding: 0;
}

.wc-qo-desc-content li {
	margin-bottom: 6px;
}

.wc-qo-desc-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 8px 0;
}

.wc-qo-desc-content strong,
.wc-qo-desc-content b {
	color: #1e293b;
}

/* More Details Button (Triggers Full Description Modal) */
.wc-qo-desc-actions {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed #e2e8f0;
	display: flex;
	justify-content: flex-start;
}

.wc-qo-more-details-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	color: #0f172a;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.wc-qo-more-details-btn:hover {
	background: #ffffff;
	border-color: #3b82f6;
	color: #2563eb;
	box-shadow: 0 3px 8px rgba(59, 130, 246, 0.15);
	transform: translateY(-1px);
}

.wc-qo-more-details-btn:active {
	transform: translateY(0);
}

.wc-qo-more-icon {
	font-size: 15px;
	line-height: 1;
}

.wc-qo-more-arrow {
	transition: transform 0.2s ease;
}

.wc-qo-more-details-btn:hover .wc-qo-more-arrow {
	transform: translateX(-4px);
}

/* ==========================================================================
   13. Full Product Description Modal Dialog
   ========================================================================== */
body.wc-qo-modal-open {
	overflow: hidden !important;
}

.wc-qo-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(15, 23, 42, 0.68);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
	box-sizing: border-box;
}

.wc-qo-modal-backdrop.wc-qo-modal-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.wc-qo-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: 85vh;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	direction: rtl;
	text-align: right;
	transform: scale(0.92) translateY(20px);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.wc-qo-modal-backdrop.wc-qo-modal-active .wc-qo-modal-dialog {
	transform: scale(1) translateY(0);
}

.wc-qo-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 24px;
	background: #ffffff;
	border-bottom: 1px solid #f1f5f9;
	flex-shrink: 0;
}

.wc-qo-modal-header-title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.wc-qo-modal-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.wc-qo-modal-title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wc-qo-modal-close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #64748b;
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.22s ease;
	flex-shrink: 0;
	outline: none;
	-webkit-tap-highlight-color: transparent;
	padding: 0;
}

.wc-qo-modal-close:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #ef4444;
	transform: scale(1.08) rotate(90deg);
}

.wc-qo-modal-body {
	padding: 24px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1 1 auto;
	max-height: calc(85vh - 140px);
	box-sizing: border-box;
}

.wc-qo-modal-body::-webkit-scrollbar {
	width: 6px;
}

.wc-qo-modal-body::-webkit-scrollbar-track {
	background: #f8fafc;
	border-radius: 3px;
}

.wc-qo-modal-body::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}

.wc-qo-modal-body::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

.wc-qo-modal-content {
	font-size: 14.5px;
	line-height: 1.85;
	color: #334155;
	word-wrap: break-word;
}

.wc-qo-modal-content h1,
.wc-qo-modal-content h2,
.wc-qo-modal-content h3,
.wc-qo-modal-content h4,
.wc-qo-modal-content h5,
.wc-qo-modal-content h6 {
	color: #0f172a;
	font-weight: 700;
	margin: 20px 0 10px 0;
	line-height: 1.4;
}

.wc-qo-modal-content p {
	margin: 0 0 14px 0;
}

.wc-qo-modal-content p:last-child {
	margin-bottom: 0;
}

.wc-qo-modal-content ul,
.wc-qo-modal-content ol {
	margin: 12px 24px 14px 0;
	padding: 0;
}

.wc-qo-modal-content li {
	margin-bottom: 8px;
}

.wc-qo-modal-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 14px 0;
	box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.08);
}

.wc-qo-modal-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 18px 0;
	font-size: 13.5px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}

.wc-qo-modal-content th,
.wc-qo-modal-content td {
	border: 1px solid #e2e8f0;
	padding: 10px 14px;
	text-align: right;
}

.wc-qo-modal-content th {
	background: #f8fafc;
	font-weight: 700;
	color: #0f172a;
}

.wc-qo-modal-content blockquote {
	margin: 16px 0;
	padding: 12px 18px;
	border-right: 4px solid #3b82f6;
	background: #f8fafc;
	border-radius: 4px 8px 8px 4px;
	color: #475569;
	font-style: italic;
}

.wc-qo-modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 16px 24px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.wc-qo-modal-btn-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 24px;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
	transition: all 0.22s ease;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.wc-qo-modal-btn-close:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.wc-qo-modal-btn-close:active {
	transform: translateY(0);
}

.wc-qo-btn-return-icon {
	font-size: 15px;
	line-height: 1;
}

@media (max-width: 640px) {
	.wc-qo-modal-backdrop {
		padding: 12px;
	}

	.wc-qo-modal-dialog {
		max-height: 92vh;
		border-radius: 16px;
	}

	.wc-qo-modal-header {
		padding: 14px 18px;
	}

	.wc-qo-modal-title {
		font-size: 15px;
	}

	.wc-qo-modal-body {
		padding: 18px;
		max-height: calc(92vh - 125px);
		font-size: 14px;
	}

	.wc-qo-modal-footer {
		padding: 12px 18px;
	}

	.wc-qo-modal-btn-close {
		width: 100%;
	}
}
