/**
 * Size Guide Frontend Styles & Modal Popup
 * 100% RTL & Responsive
 */

.nexashop-sg-btn-wrap {
	display: inline-flex;
	margin: 10px 0 16px 0;
}

.nexashop-sg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	color: #1e293b;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nexashop-sg-btn:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
	color: #0f172a;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nexashop-sg-btn-icon {
	display: flex;
	align-items: center;
	color: #ef394e;
}

.nexashop-sg-btn-icon svg {
	width: 18px;
	height: 18px;
}

/* Modal Popup Overlay */
.nexashop-sg-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.nexashop-sg-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.nexashop-sg-modal-dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 760px;
	max-height: 88vh;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	direction: rtl;
	text-align: right;
	animation: nexashopSgZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nexashopSgZoom {
	from {
		opacity: 0;
		transform: scale(0.94) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* Modal Header */
.nexashop-sg-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.nexashop-sg-modal-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nexashop-sg-modal-icon {
	color: #ef394e;
	display: flex;
	align-items: center;
}

.nexashop-sg-modal-title {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
}

.nexashop-sg-modal-close {
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 4px;
	border-radius: 6px;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
}

.nexashop-sg-modal-close:hover {
	color: #ef4444;
	background: #fee2e2;
}

/* Modal Body */
.nexashop-sg-modal-body {
	padding: 24px;
	overflow-y: auto;
	font-size: 14px;
	line-height: 1.8;
	color: #334155;
}

.nexashop-sg-text-above,
.nexashop-sg-text-below {
	margin-bottom: 16px;
}

.nexashop-sg-text-above img,
.nexashop-sg-text-below img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Responsive Table */
.nexashop-sg-table-responsive {
	overflow-x: auto;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	margin: 20px 0;
	background: #ffffff;
}

.nexashop-sg-table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	font-size: 14px;
}

.nexashop-sg-table thead th {
	background: #0f172a;
	color: #ffffff;
	padding: 12px 16px;
	font-weight: 700;
	border-bottom: 2px solid #334155;
	white-space: nowrap;
}

.nexashop-sg-table thead th:first-child {
	border-top-right-radius: 10px;
}

.nexashop-sg-table thead th:last-child {
	border-top-left-radius: 10px;
}

.nexashop-sg-table tbody td {
	padding: 12px 16px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
	white-space: nowrap;
}

.nexashop-sg-table tbody tr:nth-child(even) {
	background-color: #f8fafc;
}

.nexashop-sg-table tbody tr:hover {
	background-color: #f1f5f9;
}

.nexashop-sg-table tbody tr:last-child td {
	border-bottom: none;
}

/* Lock body scroll when modal open */
body.nexashop-modal-open {
	overflow: hidden !important;
}

/* Sticky Edge Floating Tab matching media_1789986343383.png */
.nexashop-sg-sticky-side-tab {
	position: fixed;
	z-index: 9999;
	display: flex;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s;
}

.nexashop-sg-sticky-side-tab.nexashop-sg-edge-right {
	right: 0;
}

.nexashop-sg-sticky-side-tab.nexashop-sg-edge-left {
	left: 0;
}

.nexashop-sg-sticky-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 14px 7px 16px 7px;
	background: #ffffff;
	cursor: pointer;
	border: none;
	outline: none;
	transition: all 0.22s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nexashop-sg-edge-right .nexashop-sg-sticky-btn {
	border-radius: 12px 0 0 12px;
	border: 1.5px solid #ef4444;
	border-right: none;
}

.nexashop-sg-edge-left .nexashop-sg-sticky-btn {
	border-radius: 0 12px 12px 0;
	border: 1.5px solid #ef4444;
	border-left: none;
}

.nexashop-sg-sticky-side-tab:hover {
	box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.nexashop-sg-edge-right:hover {
	transform: translateX(-4px);
}

.nexashop-sg-edge-left:hover {
	transform: translateX(4px);
}

.nexashop-sg-sticky-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ef4444;
}

.nexashop-sg-sticky-icon svg {
	width: 18px;
	height: 18px;
}

.nexashop-sg-sticky-label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 12px;
	font-weight: 700;
	color: #ef4444;
	letter-spacing: -0.2px;
	white-space: nowrap;
	text-orientation: mixed;
	line-height: 1;
}

@media (max-width: 480px) {
	.nexashop-sg-sticky-btn {
		padding: 10px 5px 12px 5px;
		gap: 6px;
	}
	.nexashop-sg-sticky-label {
		font-size: 11px;
	}
	.nexashop-sg-sticky-icon svg {
		width: 15px;
		height: 15px;
	}
}
