/* NS Price List — netsteps.gr */

.nspl-wrap {
	--nspl-container-bg: #ffffff;
	--nspl-header-bg: #131c4b;
	--nspl-header-text: #ffffff;
	--nspl-row-bg: #ffffff;
	--nspl-row-alt-bg: #f8f8f8;
	--nspl-row-text: #1f2a44;
	--nspl-border: #e3e5ea;
	--nspl-btn-color: #1f2a44;
	--nspl-btn-hover: #3a4bb8;
	--nspl-btn-bg: #131c4b;
	--nspl-btn-bg-text: #ffffff;
	--nspl-radius: 16px;

	box-sizing: border-box;
	width: 100%;
	padding: 10px;
	background: var(--nspl-container-bg);
	border-radius: var(--nspl-radius);
	color: var(--nspl-row-text);
	font-size: 16px;
	line-height: 1.4;
}

.nspl-wrap *,
.nspl-wrap *::before,
.nspl-wrap *::after {
	box-sizing: border-box;
}

/* Search */
.nspl-wrap .nspl-toolbar {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 12px;
}

.nspl-wrap input.nspl-search {
	width: 100%;
	max-width: 380px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--nspl-border);
	border-radius: 8px;
	background: #fff;
	color: var(--nspl-row-text);
	font: inherit;
	font-size: 15px;
	box-shadow: none;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.nspl-wrap input.nspl-search:focus {
	border-color: var(--nspl-header-bg);
	box-shadow: 0 0 0 3px rgba(19, 28, 75, .12);
}

/* Table */
.nspl-wrap .nspl-table-scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.nspl-wrap table.nspl-table {
	width: 100%;
	margin: 0;
	border: 1px solid var(--nspl-border);
	border-collapse: collapse;
	border-spacing: 0;
	background: var(--nspl-row-bg);
	color: var(--nspl-row-text);
	font-size: inherit;
}

.nspl-wrap .nspl-table thead th {
	padding: 22px 20px;
	border: 0;
	background: var(--nspl-header-bg);
	color: var(--nspl-header-text);
	font-weight: 700;
	text-align: left;
	vertical-align: middle;
	text-transform: none;
	letter-spacing: 0;
}

.nspl-wrap .nspl-table tbody td {
	padding: 26px 20px;
	border: 0;
	border-top: 1px solid var(--nspl-border);
	background: var(--nspl-row-bg);
	color: var(--nspl-row-text);
	vertical-align: middle;
	text-align: left;
}

.nspl-wrap .nspl-table tbody td + td {
	border-left: 1px solid var(--nspl-border);
}

.nspl-wrap .nspl-table tbody tr.nspl-row-alt td {
	background: var(--nspl-row-alt-bg);
}

.nspl-wrap .nspl-table tr[hidden] {
	display: none !important;
}

.nspl-wrap .nspl-table .nspl-col-code {
	width: 13%;
	white-space: nowrap;
}

.nspl-wrap .nspl-table .nspl-col-actions {
	width: 20%;
	text-align: right;
	white-space: nowrap;
}

.nspl-wrap.nspl-align-left .nspl-table .nspl-col-title { text-align: left; }
.nspl-wrap.nspl-align-center .nspl-table .nspl-col-title { text-align: center; }
.nspl-wrap.nspl-align-right .nspl-table .nspl-col-title { text-align: right; }

/* "Show price" — text style (default) */
.nspl-wrap .nspl-table button.nspl-show-price {
	display: inline-block;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--nspl-btn-color);
	font: inherit;
	line-height: 1.3;
	text-align: right;
	text-decoration: none;
	text-transform: none;
	letter-spacing: .01em;
	cursor: pointer;
	transition: color .15s ease, background-color .15s ease, opacity .15s ease;
}

.nspl-wrap .nspl-table button.nspl-show-price:hover,
.nspl-wrap .nspl-table button.nspl-show-price:focus-visible {
	background: transparent;
	color: var(--nspl-btn-hover);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nspl-wrap .nspl-table button.nspl-show-price:focus-visible {
	outline: 2px solid var(--nspl-btn-hover);
	outline-offset: 3px;
}

/* "Show price" — button style */
.nspl-wrap.nspl-btn-style-button .nspl-table button.nspl-show-price {
	padding: 10px 18px;
	border-radius: 6px;
	background: var(--nspl-btn-bg);
	color: var(--nspl-btn-bg-text);
	font-size: .875em;
	font-weight: 600;
	text-align: center;
}

.nspl-wrap.nspl-btn-style-button .nspl-table button.nspl-show-price:hover,
.nspl-wrap.nspl-btn-style-button .nspl-table button.nspl-show-price:focus-visible {
	background: var(--nspl-btn-hover);
	color: var(--nspl-btn-bg-text);
	text-decoration: none;
}

.nspl-wrap .nspl-table button.nspl-show-price.is-loading {
	opacity: .55;
	cursor: progress;
}

/* No results */
.nspl-wrap .nspl-no-results {
	margin: 0;
	padding: 28px 20px;
	border: 1px solid var(--nspl-border);
	border-top: 0;
	text-align: center;
	color: var(--nspl-row-text);
	opacity: .8;
}

.nspl-wrap .nspl-no-results[hidden] {
	display: none;
}

/* Pagination */
.nspl-wrap .nspl-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 16px 0 6px;
}

.nspl-wrap .nspl-pagination:empty {
	display: none;
}

.nspl-wrap .nspl-pagination button,
.nspl-wrap .nspl-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--nspl-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: var(--nspl-row-text);
	font: inherit;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.nspl-wrap .nspl-pagination span {
	border-color: transparent;
	background: transparent;
	cursor: default;
}

.nspl-wrap .nspl-pagination button:hover:not(:disabled) {
	border-color: var(--nspl-header-bg);
	background: #fff;
	color: var(--nspl-header-bg);
}

.nspl-wrap .nspl-pagination button.is-current {
	border-color: var(--nspl-header-bg);
	background: var(--nspl-header-bg);
	color: var(--nspl-header-text);
	cursor: default;
}

.nspl-wrap .nspl-pagination button:disabled:not(.is-current) {
	opacity: .4;
	cursor: default;
}

/* Mobile: stacked rows */
@media (max-width: 640px) {
	.nspl-wrap .nspl-table thead {
		display: none;
	}

	.nspl-wrap .nspl-table,
	.nspl-wrap .nspl-table tbody,
	.nspl-wrap .nspl-table tr,
	.nspl-wrap .nspl-table td {
		display: block;
		width: 100% !important;
	}

	.nspl-wrap table.nspl-table {
		border: 0;
		background: transparent;
	}

	.nspl-wrap .nspl-table tbody tr {
		margin: 0 0 10px;
		border: 1px solid var(--nspl-border);
		border-radius: 10px;
		overflow: hidden;
		background: var(--nspl-row-bg);
	}

	.nspl-wrap .nspl-table tbody td,
	.nspl-wrap .nspl-table tbody td + td {
		padding: 12px 16px;
		border: 0;
		text-align: left !important;
		white-space: normal;
	}

	.nspl-wrap .nspl-table tbody td + td {
		border-top: 1px solid var(--nspl-border);
	}

	.nspl-wrap .nspl-table tbody td[data-label]::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .04em;
		opacity: .6;
	}

	.nspl-wrap .nspl-table tbody td.nspl-col-code {
		background: var(--nspl-header-bg) !important;
		color: var(--nspl-header-text);
		font-weight: 700;
	}

	.nspl-wrap .nspl-table tbody td.nspl-col-code::before {
		display: none;
	}

	.nspl-wrap .nspl-no-results {
		border-top: 1px solid var(--nspl-border);
		border-radius: 10px;
	}

	.nspl-wrap .nspl-toolbar {
		justify-content: stretch;
	}

	.nspl-wrap input.nspl-search {
		max-width: none;
	}
}

/* Popup */
html.nspl-modal-open {
	overflow: hidden;
}

.nspl-modal {
	--nspl-popup-bg: #ffffff;
	--nspl-popup-text: #1f2a44;
	--nspl-price-color: #131c4b;
	--nspl-overlay: rgba(11, 16, 38, .6);

	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: var(--nspl-overlay);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility 0s linear .2s;
}

.nspl-modal.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .2s ease;
}

.nspl-modal *,
.nspl-modal *::before,
.nspl-modal *::after {
	box-sizing: border-box;
}

.nspl-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	padding: 34px 28px 26px;
	border-radius: 18px;
	background: var(--nspl-popup-bg);
	color: var(--nspl-popup-text);
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	outline: none;
	transform: translateY(14px) scale(.98);
	transition: transform .22s ease;
}

.nspl-modal.is-open .nspl-modal__dialog {
	transform: none;
}

.nspl-modal button.nspl-modal__x {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--nspl-popup-text);
	font-size: 26px;
	line-height: 36px;
	cursor: pointer;
	opacity: .55;
	transition: opacity .15s ease, background-color .15s ease;
}

.nspl-modal button.nspl-modal__x:hover,
.nspl-modal button.nspl-modal__x:focus-visible {
	background: rgba(0, 0, 0, .06);
	color: var(--nspl-popup-text);
	opacity: 1;
}

.nspl-modal .nspl-modal__heading {
	margin: 0 0 14px;
	color: var(--nspl-popup-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	opacity: .65;
}

.nspl-modal .nspl-modal__code {
	display: inline-block;
	margin: 0 0 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--nspl-header-bg, #131c4b);
	color: var(--nspl-header-text, #fff);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
}

.nspl-modal .nspl-modal__name {
	margin: 0 0 22px;
	color: var(--nspl-popup-text);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.nspl-modal .nspl-modal__box {
	margin: 0 0 22px;
	padding: 18px 16px;
	border-radius: 12px;
	background: rgba(127, 127, 127, .08);
}

.nspl-modal .nspl-modal__label {
	display: block;
	margin: 0 0 4px;
	color: var(--nspl-popup-text);
	font-size: 13px;
	opacity: .7;
}

.nspl-modal .nspl-modal__price {
	display: block;
	min-height: 1.2em;
	color: var(--nspl-price-color);
	font-size: 40px;
	font-weight: 800;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.nspl-modal.is-loading .nspl-modal__price,
.nspl-modal.is-error .nspl-modal__price {
	font-size: 16px;
	font-weight: 500;
	line-height: 48px;
}

.nspl-modal.is-loading .nspl-modal__price::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	vertical-align: -3px;
	animation: nspl-spin .7s linear infinite;
}

@keyframes nspl-spin {
	to { transform: rotate(360deg); }
}

.nspl-modal button.nspl-modal__close {
	display: inline-block;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 11px 26px;
	border: 0;
	border-radius: 8px;
	background: var(--nspl-header-bg, #131c4b);
	box-shadow: none;
	color: var(--nspl-header-text, #fff);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity .15s ease;
}

.nspl-modal button.nspl-modal__close:hover,
.nspl-modal button.nspl-modal__close:focus-visible {
	background: var(--nspl-header-bg, #131c4b);
	color: var(--nspl-header-text, #fff);
	opacity: .88;
}

@media (prefers-reduced-motion: reduce) {
	.nspl-modal,
	.nspl-modal__dialog {
		transition: none;
	}
}
