/* Size Guide & Fit Assistant — frontend styles */

.sg-trigger {
	display: inline-flex; align-items: center; gap: 6px;
	background: none; border: none; padding: 0; margin: 0 0 14px;
	color: #0f766e; font-weight: 700; font-size: 13px; text-decoration: underline;
	cursor: pointer;
}
.sg-trigger:hover { color: #115e59; }
.sg-trigger__icon { font-size: 15px; text-decoration: none; }

.sg-modal { position: fixed; inset: 0; z-index: 100000; display: none; }
.sg-modal.is-open { display: block; }
.sg-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); }
.sg-modal__panel {
	position: relative; max-width: 600px; width: 92%; margin: 5vh auto; max-height: 90vh; overflow-y: auto;
	background: #fff; border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.sg-modal__close {
	position: absolute; top: 14px; right: 16px; background: #f1f5f9; border: none;
	width: 30px; height: 30px; border-radius: 50%; font-size: 18px; cursor: pointer; color: #334155;
}
.sg-modal__close:hover { background: #e2e8f0; }

.sg-tabs { display: flex; gap: 6px; margin: 4px 0 18px; }
.sg-tab { background: #f0fdfa; border: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; color: #115e59; cursor: pointer; }
.sg-tab.is-active { background: #0f766e; color: #fff; }

.sg-size-table { width: 100%; border-collapse: collapse; }
.sg-size-table th, .sg-size-table td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: center; font-size: 13px; }
.sg-size-table thead th { background: #f0fdfa; color: #115e59; }
.sg-size-table tr.sg-highlight td { background: #fef3c7; font-weight: 700; }

.sg-quiz-intro { margin: 0 0 14px; color: #374151; font-size: 14px; }
.sg-quiz-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.sg-quiz-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #6b7280; font-weight: 600; }
.sg-quiz-row input { border: 2px solid #ccfbf1; border-radius: 8px; padding: 9px 10px; font-size: 15px; width: 130px; }
.sg-quiz-row input:focus { outline: none; border-color: #0f766e; }

.sg-btn { background: #0f766e; color: #fff; border: none; border-radius: 10px; padding: 10px 20px; font-weight: 700; cursor: pointer; font-size: 14px; }
.sg-btn:hover { background: #115e59; }
.sg-btn--outline { background: #fff; color: #0f766e; border: 2px solid #0f766e; padding: 8px 16px; }
.sg-btn--outline:hover { background: #f0fdfa; }

.sg-quiz-result { margin-top: 14px; font-size: 14px; }
.sg-quiz-result .sg-result-size { display: inline-block; background: #d97706; color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: 16px; }
.sg-quiz-result .sg-result-note { color: #6b7280; font-size: 12px; margin-top: 6px; }
.sg-quiz-result.is-error { color: #b91c1c; }

/* My Account — return requests */
.sg-returns-section { margin-top: 30px; }
.sg-returns-section h2 { font-size: 17px; margin-bottom: 12px; }
.sg-return-row {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}
.sg-return-row__name { flex: 1; min-width: 180px; font-weight: 600; color: #111827; }
.sg-return-form { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.sg-return-form select, .sg-return-form textarea { border-radius: 8px; border: 1px solid #d1d5db; padding: 8px 10px; font-size: 13px; }
.sg-return-form textarea { flex: 1; min-width: 220px; min-height: 38px; resize: vertical; }
.sg-msg { font-size: 12px; font-weight: 600; }
.sg-msg.is-error { color: #dc2626; }
.sg-msg.is-ok { color: #16a34a; }
.sg-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #e5e7eb; color: #374151; }
.sg-chip.is-ok { background: #dcfce7; color: #166534; }

.sg-shortcode-table-wrap { margin: 20px 0; }
