/*
 * Jehona Measurements & Size Guide — scoped styles.
 * All selectors are prefixed .jb- ; no global element overrides.
 */

/* =========================================================
   Product page — Measurements & Fit box
   ========================================================= */

.jb-measurements-box {
	background: #faf7f2;
	border: 1px solid #e6ddd1;
	border-radius: 10px;
	padding: 18px 20px;
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.5;
}

.jb-box-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-bottom: 6px;
}

.jb-box-title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #3d352c;
}

.jb-guide-link {
	font-size: 12.5px;
	color: #8a7358;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.jb-guide-link:hover,
.jb-guide-link:focus {
	color: #5f4e3a;
}

.jb-box-intro {
	margin: 0 0 12px;
	color: #6b6157;
	font-size: 13px;
}

/* Size Guide + Download action buttons */

.jb-box-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin: 0 0 16px;
}

.jb-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid #ddd2c3;
	border-radius: 6px;
	background: #ffffff;
	color: #3d352c;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.jb-action-btn:hover,
.jb-action-btn:focus {
	border-color: #c3a983;
	background: #fdfbf8;
	color: #3d352c;
}

.jb-action-btn:focus-visible {
	outline: 2px solid #c3a983;
	outline-offset: 2px;
}

.jb-action-btn svg {
	flex-shrink: 0;
	color: #8a7358;
}

/* Fields */

.jb-panel {
	margin-top: 0;
}

.jb-field {
	margin: 0 0 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.jb-field label {
	font-size: 12.5px;
	font-weight: 500;
	color: #4c443a;
}

.jb-req {
	color: #b0713f;
}

.jb-measurements-box .jb-field input[type="number"],
.jb-measurements-box .jb-field input[type="date"],
.jb-measurements-box .jb-field select,
.jb-measurements-box .jb-field textarea {
	width: 100%;
	border: 1px solid #ddd2c3;
	border-radius: 6px;
	background: #ffffff;
	padding: 8px 10px;
	font-size: 14px;
	color: #3d352c;
	box-sizing: border-box;
}

.jb-measurements-box .jb-field input:focus,
.jb-measurements-box .jb-field select:focus,
.jb-measurements-box .jb-field textarea:focus {
	outline: 2px solid #c3a983;
	outline-offset: 1px;
	border-color: #c3a983;
}

/* Two-column grid on desktop, single column on mobile */

.jb-field-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 14px;
}

@media (min-width: 600px) {
	.jb-field-grid {
		grid-template-columns: 1fr 1fr;
	}

	.jb-field-wide {
		grid-column: 1 / -1;
	}
}

/* Advanced accordion */

.jb-accordion {
	margin-top: 4px;
	border-top: 1px solid #e6ddd1;
	padding-top: 10px;
}

.jb-accordion-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: transparent;
	border: 0;
	padding: 6px 0;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #5f4e3a;
	letter-spacing: 0.02em;
}

.jb-accordion-toggle:focus-visible {
	outline: 2px solid #c3a983;
	outline-offset: 2px;
}

.jb-accordion-icon {
	font-size: 16px;
	line-height: 1;
	color: #8a7358;
	transition: transform 0.15s ease;
}

.jb-accordion-toggle[aria-expanded="true"] .jb-accordion-icon {
	transform: rotate(45deg);
}

.jb-accordion-panel {
	padding-top: 10px;
}

/* =========================================================
   Size guide page — [jb_size_guide]
   ========================================================= */

.jb-size-guide {
	max-width: 880px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	color: #3d352c;
	font-size: 15.5px;
	line-height: 1.65;
}

.jb-sg-hero {
	text-align: center;
	padding: 28px 0 8px;
}

.jb-sg-eyebrow {
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #8a7358;
	margin: 0 0 10px;
}

.jb-sg-title {
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 600;
	margin: 0 0 12px;
	color: #2e2822;
}

.jb-sg-subtitle {
	max-width: 560px;
	margin: 0 auto;
	color: #6b6157;
}

.jb-sg-intro {
	max-width: 680px;
	margin: 22px auto 0;
	text-align: center;
	color: #4c443a;
}

/* Image section */

.jb-sg-image-section {
	margin: 32px 0;
	text-align: center;
}

.jb-sg-image-note {
	font-size: 13.5px;
	color: #8a7358;
	margin: 0 0 14px;
}

.jb-sg-image {
	max-width: 820px;
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: 12px;
	border: 1px solid #e6ddd1;
	box-shadow: 0 6px 24px rgba(61, 53, 44, 0.08);
}

.jb-sg-image-placeholder {
	max-width: 680px;
	margin: 0 auto;
	background: #faf7f2;
	border: 1px dashed #d8ccba;
	border-radius: 12px;
	padding: 36px 24px;
	color: #6b6157;
	font-size: 14px;
}

/* Checklist */

.jb-sg-checklist-section,
.jb-sg-tips-section {
	margin: 36px 0;
}

.jb-size-guide h2 {
	font-size: 20px;
	font-weight: 600;
	color: #2e2822;
	margin: 0 0 14px;
	text-align: center;
}

.jb-sg-checklist {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 720px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px 24px;
}

@media (min-width: 560px) {
	.jb-sg-checklist {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 780px) {
	.jb-sg-checklist {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.jb-sg-checklist li {
	background: #faf7f2;
	border: 1px solid #ece4d8;
	border-radius: 8px;
	padding: 9px 12px 9px 32px;
	font-size: 14px;
	position: relative;
}

.jb-sg-checklist li::before {
	content: "✓";
	position: absolute;
	left: 12px;
	color: #8a7358;
	font-weight: 700;
}

/* Tips */

.jb-sg-tips {
	list-style: none;
	max-width: 560px;
	margin: 0 auto;
	padding: 0;
}

.jb-sg-tips li {
	padding: 7px 0 7px 26px;
	position: relative;
	color: #4c443a;
	font-size: 14.5px;
	border-bottom: 1px solid #f0e9de;
}

.jb-sg-tips li:last-child {
	border-bottom: 0;
}

.jb-sg-tips li::before {
	content: "•";
	position: absolute;
	left: 8px;
	color: #c3a983;
	font-weight: 700;
}

/* CTA */

.jb-sg-cta {
	margin-top: 44px;
	text-align: center;
	background: #faf7f2;
	border: 1px solid #e6ddd1;
	border-radius: 14px;
	padding: 34px 22px;
}

.jb-sg-cta p {
	color: #6b6157;
	margin: 0 0 18px;
}

.jb-sg-cta-button {
	display: inline-block;
	background: #3d352c;
	color: #ffffff;
	padding: 12px 28px;
	border-radius: 999px;
	font-size: 14px;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: background 0.15s ease;
}

.jb-sg-cta-button:hover,
.jb-sg-cta-button:focus {
	background: #5f4e3a;
	color: #ffffff;
}

.jb-sg-cta-button:focus-visible {
	outline: 2px solid #c3a983;
	outline-offset: 3px;
}
