/* Size Guide YMF — frontend */

.ymf-trigger-wrap {
	margin: 14px 0;
}

.ymf-open-modal {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	background: #fff;
	border: 1px solid #1d2327;
	color: #1d2327;
	text-decoration: none;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 2px;
	cursor: pointer;
	transition: all 0.18s ease;
}
.ymf-open-modal:hover {
	background: #1d2327;
	color: #fff;
}

.ymf-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
}
.ymf-modal .ymf-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}
.ymf-modal .ymf-modal-inner {
	position: relative;
	max-width: 640px;
	width: calc(100% - 32px);
	max-height: calc(100vh - 64px);
	overflow-y: auto;
	background: #fff;
	padding: 36px 32px 28px;
	border-radius: 6px;
	margin: 32px auto;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	z-index: 1;
}
.ymf-modal .ymf-close {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #666;
	cursor: pointer;
}

.ymf-modal-title {
	margin: 0 0 20px;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.ymf-unit-tabs {
	display: flex;
	gap: 6px;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 18px;
}
.ymf-unit-tab {
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 13px;
	color: #555;
	margin-bottom: -1px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.ymf-unit-tab.active {
	border-bottom-color: #1d2327;
	color: #1d2327;
	font-weight: 600;
}

.ymf-unit-pane {
	display: none;
}
.ymf-unit-pane.active {
	display: block;
}

.ymf-pane-name {
	margin: 0 0 10px;
	font-size: 14px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.ymf-pane-desc {
	margin: 0 0 14px;
	font-size: 13px;
	color: #555;
	line-height: 1.55;
}

.ymf-table {
	width: 100%;
	border-collapse: collapse;
	margin: 8px 0 16px;
	font-size: 13px;
}
.ymf-table th,
.ymf-table td {
	border: 1px solid #e5e5e5;
	padding: 9px 10px;
	text-align: center;
	background: #fff;
}
.ymf-table th {
	background: #f8f8f8;
	font-weight: 600;
}
.ymf-table tr td:first-child,
.ymf-table tr th:first-child {
	text-align: left;
	font-weight: 500;
}

.ymf-pane-info {
	margin-top: 12px;
	font-size: 12px;
	color: #777;
	line-height: 1.6;
}

body.ymf-modal-open {
	overflow: hidden;
}

/* When rendered inside the WC product tab — looser, no boxing */
.ymf-tab-content {
	padding: 6px 0;
}
.ymf-tab-content h2 {
	margin: 0 0 16px;
	font-size: 18px;
}

@media (max-width: 480px) {
	.ymf-modal .ymf-modal-inner {
		padding: 28px 18px 20px;
	}
	.ymf-table th,
	.ymf-table td {
		padding: 7px 6px;
		font-size: 12px;
	}
	.ymf-modal-title {
		font-size: 17px;
	}
}
