/**
 * KRAIT Size Chart - Frontend Styles
 */

/* Product Summary Action Buttons Alignment (Ask Question, Social Share, Size Guide) */
.summary .ask-questions,
.summary .krait-social,
.summary .size-guide {
	display: inline-flex !important;
	align-items: center;
	vertical-align: middle;
	margin-right: 25px !important;
	margin-bottom: 10px;
	padding: 0 !important;
}

/* Remove margin from last visible element */
.summary .size-guide:last-child,
.summary .ask-questions:last-child,
.summary .krait-social:last-child {
	margin-right: 0 !important;
}

/* Ensure all icons and text are aligned */
.summary .ask-questions .leading-6,
.summary .krait-social a.flex,
.summary .size-guide .leading-6 {
	display: inline-flex;
	align-items: center;
	height: 24px;
	line-height: 24px;
}

/* Uniform icon styling */
.summary .ask-questions i,
.summary .krait-social i,
.summary .size-guide i {
	font-size: 16px;
	width: 16px;
	text-align: center;
	margin-right: 10px;
	padding-right: 0 !important;
}

/* Size Guide Button */
.size-guide {
	display: inline-flex;
	align-items: center;
}

.size-guide a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s;
}

.size-guide a:hover {
	color: var(--krait-general-secondary-color, #dec970);
}

.size-guide i {
	transition: transform 0.3s;
}

.size-guide a:hover i {
	transform: scale(1.1);
}

/* Modal Content */
.ksc-modal .ksc-modal-content {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	max-width: 800px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
}

.ksc-modal-title {
	margin: 0 0 15px;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--krait-general-heading-color, #333);
}

.ksc-modal-description {
	margin-bottom: 20px;
	color: #666;
	line-height: 1.6;
}

.ksc-modal-description p:last-child {
	margin-bottom: 0;
}

/* Size Chart Table - Modal & Tab */
.ksc-size-chart-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ksc-size-chart-table th,
.ksc-size-chart-table td {
	border: 1px solid #e5e5e5;
	padding: 12px 16px;
	text-align: center;
}

.ksc-size-chart-table th {
	background: var(--krait-general-primary-color, #333);
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}

.ksc-size-chart-table tbody tr:nth-child(odd) {
	background: #f9f9f9;
}

.ksc-size-chart-table tbody tr:nth-child(even) {
	background: #fff;
}

.ksc-size-chart-table tbody tr:hover {
	background: rgba(222, 201, 112, 0.1);
}

.ksc-size-chart-table td:first-child {
	font-weight: 600;
	background: #f5f5f5;
}

/* Tab Content */
.ksc-tab-content {
	padding: 20px 0;
}

.ksc-chart-section {
	margin-bottom: 30px;
}

.ksc-chart-section:last-child {
	margin-bottom: 0;
}

.ksc-chart-title {
	margin: 0 0 15px;
	font-size: 1.25rem;
	font-weight: 600;
}

.ksc-chart-description {
	margin-bottom: 20px;
	color: #666;
	line-height: 1.6;
}

.ksc-chart-description p:last-child {
	margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.ksc-modal .ksc-modal-content {
		padding: 20px;
		width: 95%;
	}

	.ksc-modal-title {
		font-size: 1.25rem;
	}

	.ksc-size-chart-table {
		font-size: 12px;
	}

	.ksc-size-chart-table th,
	.ksc-size-chart-table td {
		padding: 8px 10px;
	}

	/* Horizontal scroll for table on mobile */
	.ksc-modal-table,
	.ksc-chart-table {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ksc-size-chart-table {
		min-width: 400px;
	}
}
