/* WC Customer Queries - Phase 5 customer UI */
.wcq-list {
	width: 100%;
	border-collapse: collapse;
}
.wcq-list th,
.wcq-list td {
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	text-align: left;
}
.wcq-status-badge {
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	line-height: 1.3;
	text-transform: uppercase;
	display: inline-block;
	font-weight: 700;
}
.wcq-status-open { background: #ffe5e5; color: #a00; }
.wcq-status-in_progress { background: #fff5cc; color: #7a5800; }
.wcq-status-awaiting_customer { background: #d9eaff; color: #003a8c; }
.wcq-status-resolved { background: #d4f4d4; color: #1a6e1a; }
.wcq-status-closed { background: #eee; color: #555; }
.wcq-thread { max-width: 760px; }
.wcq-msg {
	margin: 12px 0;
	padding: 14px 16px;
	border-radius: 14px;
	border-left: 4px solid #ccc;
	background: #fafafa;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.wcq-msg-customer { border-left-color: #2563eb; }
.wcq-msg-admin { border-left-color: #16a34a; background: #f0fdf4; }
.wcq-msg-meta { font-size: 12px; color: #666; margin-bottom: 6px; }
.wcq-msg-meta strong { color: #333; margin-right: 10px; }
.wcq-error,
.wcq-success {
	border-radius: 12px;
	padding: 12px 14px;
	margin: 12px 0;
	font-weight: 600;
}
.wcq-error { background: #fff0f0; border-left: 4px solid #c00; color: #8a1111; }
.wcq-success { background: #f0fff0; border-left: 4px solid #2a7; color: #0f6b3e; }
.wcq-attachments a { display: inline-block; margin-right: 10px; font-size: 13px; }
.wcq-deadline,
.wcq-field-note { color: #64748b; font-size: 13px; margin: 7px 0 0; }

.wcq-public-shell {
	max-width: 980px;
	margin: 24px auto;
	background: #fff;
	border: 1px solid rgba(148, 163, 184, .22);
	border-radius: 24px;
	box-shadow: 0 20px 60px rgba(15, 23, 42, .10);
	overflow: hidden;
}
.wcq-form-modal {
	margin: 0;
	max-width: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.wcq-form-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(210px, .7fr);
	gap: 18px;
	align-items: center;
	padding: 26px 28px;
	background: linear-gradient(135deg, #0f172a, #2563eb);
	color: #fff;
}
.wcq-form-hero h3 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 28px;
	line-height: 1.15;
}
.wcq-form-hero p {
	margin: 0;
	color: rgba(255,255,255,.86);
	font-size: 15px;
}
.wcq-form-hero-card {
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 18px;
	padding: 16px;
	backdrop-filter: blur(6px);
}
.wcq-form-hero-card strong {
	display: block;
	color: #fff;
	font-size: 15px;
	margin-bottom: 6px;
}
.wcq-form-hero-card span {
	display: block;
	color: rgba(255,255,255,.84);
	font-size: 13px;
}
.wcq-form {
	padding: 26px 28px 30px;
}
.wcq-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}
.wcq-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.wcq-field-full {
	grid-column: 1 / -1;
}
.wcq-form label,
.wcq-field-label {
	display: block;
	margin: 0;
	font-weight: 700;
	color: #0f172a;
	font-size: 14px;
}
.wcq-form input[type=text],
.wcq-form input[type=file],
.wcq-form select,
.wcq-form textarea {
	width: 100%;
	max-width: none;
	padding: 12px 13px;
	border: 1px solid #d7dee9;
	border-radius: 13px;
	background: #fff;
	color: #0f172a;
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.wcq-form input[type=file] { padding: 11px; }
.wcq-form textarea { min-height: 140px; resize: vertical; }
.wcq-form input:focus,
.wcq-form select:focus,
.wcq-form textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .13);
}
.wcq-captcha-box {
	display: grid;
	grid-template-columns: minmax(130px, auto) minmax(120px, 180px);
	gap: 12px;
	align-items: center;
	background: #f8fafc;
	border: 1px dashed #94a3b8;
	border-radius: 16px;
	padding: 14px;
}
.wcq-captcha-question {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	color: #0f172a;
}
.wcq-captcha-question::before {
	content: "✓";
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #e0f2fe;
	color: #0369a1;
}
.wcq-form-actions {
	margin-top: 22px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.wcq-form .button,
.wcq-submit-button,
.wcq-login-prompt .button {
	border: 0;
	border-radius: 999px;
	background: #2563eb;
	color: #fff;
	padding: 12px 22px;
	font-weight: 800;
	text-decoration: none;
	line-height: 1.2;
	box-shadow: 0 12px 28px rgba(37, 99, 235, .25);
	cursor: pointer;
}
.wcq-form .button:hover,
.wcq-submit-button:hover,
.wcq-login-prompt .button:hover {
	background: #1d4ed8;
	color: #fff;
}
.wcq-login-prompt {
	max-width: 760px;
	margin: 24px auto;
	border: 1px solid #e2e8f0;
	padding: 24px;
	border-radius: 18px;
	background: #f8fafc;
	box-shadow: 0 12px 35px rgba(15, 23, 42, .07);
}

.wcq-floating-bubble {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99998;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: #2563eb;
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	box-shadow: 0 18px 45px rgba(37, 99, 235, .34);
	cursor: pointer;
}
.wcq-floating-bubble:hover { background: #1d4ed8; color: #fff; }
.wcq-floating-icon {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,.18);
	font-size: 18px;
}
.wcq-modal[hidden] { display: none !important; }
.wcq-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	place-items: center;
	padding: 18px;
}
.wcq-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .62);
	backdrop-filter: blur(4px);
}
.wcq-modal-window {
	position: relative;
	width: min(980px, calc(100vw - 36px));
	max-height: min(88vh, 880px);
}
.wcq-modal-panel {
	position: relative;
	width: 100%;
	max-height: min(88vh, 880px);
	overflow: auto;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 28px 80px rgba(15, 23, 42, .35);
}
.wcq-modal-close {
	position: absolute;
	top: -16px;
	right: -16px;
	z-index: 3;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid rgba(148, 163, 184, .28) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #0f172a !important;
	font-size: 0 !important;
	line-height: 1 !important;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
	box-sizing: border-box;
}
.wcq-modal-close::before {
	content: "×";
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-1px);
}
.wcq-modal-close:hover,
.wcq-modal-close:focus {
	background: #f8fafc !important;
	color: #111827 !important;
	outline: none;
}
body.wcq-modal-open { overflow: hidden; }


/* Hard overrides for theme styles that compress native selects. */
.wcq-form select {
	min-height: 48px !important;
	height: 48px !important;
	padding: 0 42px 0 14px !important;
	line-height: 48px !important;
	vertical-align: middle !important;
	appearance: auto;
	-webkit-appearance: menulist;
	background-clip: padding-box;
}
.wcq-form input[type=text] {
	min-height: 48px;
}
.wcq-form select option {
	color: #0f172a;
	background: #fff;
}
.wcq-form textarea {
	line-height: 1.55;
}

@media (max-width: 782px) {
	.wcq-form-hero,
	.wcq-form-grid,
	.wcq-captcha-box {
		grid-template-columns: 1fr;
	}
	.wcq-form-hero,
	.wcq-form {
		padding: 22px 18px;
	}
	.wcq-form-hero h3 { font-size: 24px; }
	.wcq-floating-bubble {
		right: 16px;
		bottom: 16px;
		min-height: 54px;
		padding: 0 16px;
	}
	.wcq-floating-text { display: none; }
	.wcq-floating-icon { background: transparent; width: 30px; }
	.wcq-modal { padding: 10px; }
	.wcq-modal-window { width: calc(100vw - 20px); max-height: 92vh; }
	.wcq-modal-panel { max-height: 92vh; }
	.wcq-modal-close { top: 8px; right: 8px; width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; max-width: 40px !important; max-height: 40px !important; }
}
