/* WC Size Inquiry — Frontend Styles */

:root {
	--wcsi-btn-bg:    #111111;
	--wcsi-btn-color: #ffffff;
}

/* ---- Trigger button ---- */
.wcsi-button-wrap {
	margin-top: 12px;
}

.wcsi-trigger {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border: 1px solid #cccccc;
	border-radius: 4px;
	background: transparent;
	font-size: 13px;
	color: #555555;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
	font-family: inherit;
	line-height: 1.4;
}

.wcsi-trigger:hover {
	border-color: #333333;
	color: #111111;
}

.wcsi-trigger svg {
	flex-shrink: 0;
}

/* ---- Overlay ---- */
.wcsi-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.50);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.wcsi-overlay[hidden] {
	display: none !important;
}

/* ---- Modal ---- */
.wcsi-modal {
	background: #ffffff;
	border-radius: 8px;
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 2rem;
	position: relative;
	box-sizing: border-box;
}

/* ---- Close button ---- */
.wcsi-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #888888;
	display: flex;
	align-items: center;
	border-radius: 4px;
	transition: color 0.15s;
}

.wcsi-close:hover {
	color: #111111;
}

/* ---- Language toggle ---- */
.wcsi-lang-toggle {
	display: flex;
	gap: 6px;
	margin-bottom: 1.25rem;
}

.wcsi-lang {
	padding: 3px 12px;
	border: 1px solid #cccccc;
	border-radius: 4px;
	font-size: 12px;
	background: transparent;
	cursor: pointer;
	color: #666666;
	font-family: inherit;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wcsi-lang.active {
	background: #111111;
	color: #ffffff;
	border-color: #111111;
}

/* ---- Body text ---- */
.wcsi-body h2 {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 0.6rem;
	color: #111111;
}

.wcsi-body p {
	font-size: 13.5px;
	line-height: 1.65;
	color: #444444;
	margin: 0 0 0.65rem;
}

/* ---- Form ---- */
.wcsi-form {
	margin-top: 1.25rem;
}

.wcsi-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 0.85rem;
}

.wcsi-field label {
	font-size: 13px;
	color: #555555;
	font-weight: 500;
}

.wcsi-field input,
.wcsi-field textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #dddddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	color: #111111;
	background: #ffffff;
	transition: border-color 0.15s ease;
	box-sizing: border-box;
}

.wcsi-field input:focus,
.wcsi-field textarea:focus {
	outline: none;
	border-color: #333333;
}

.wcsi-field textarea {
	resize: vertical;
	min-height: 75px;
}

/* ---- Submit button ---- */
.wcsi-submit {
	width: 100%;
	padding: 11px;
	background: var(--wcsi-btn-bg);
	color: var(--wcsi-btn-color);
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	margin-top: 0.25rem;
	transition: opacity 0.15s;
	font-weight: 500;
}

.wcsi-submit:hover {
	opacity: 0.82;
}

.wcsi-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ---- Error message ---- */
.wcsi-error {
	margin-top: 0.75rem;
	font-size: 13px;
	color: #c0392b;
	text-align: center;
}

/* ---- Success state ---- */
.wcsi-success {
	text-align: center;
	padding: 2rem 1rem;
}

.wcsi-success[hidden] {
	display: none;
}

.wcsi-success svg {
	stroke: #27ae60;
	display: block;
	margin: 0 auto 0.75rem;
}

.wcsi-success p {
	font-size: 14px;
	color: #333333;
	margin: 0;
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
	.wcsi-modal {
		padding: 1.5rem 1.25rem;
	}
}
