/* Price List Styles */
.hinnakiri-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: 'Manrope', sans-serif;
}

.hinnakiri-header {
	text-align: center;
	margin-bottom: 40px;
}

.hinnakiri-header h1 {
	font-size: 48px;
	font-weight: 700;
	color: #000;
	margin-bottom: 10px;
}

.hinnakiri-header p {
	font-size: 18px;
	color: #666;
}

.hinnakiri-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
	justify-content: flex-start;
}

.category-btn {
	background: #F5D5A8;
	border: 1px solid #E3A742;
	border-radius: 24px;
	padding: 12px 20px;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #000;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.category-btn:hover {
	background: #E3A742;
	color: #fff;
}

.category-btn.active {
	background: #E3A742;
	color: #fff;
}

.hinnakiri-table-container {
	overflow-x: auto;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hinnakiri-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	min-width: 1000px;
}

.hinnakiri-table th {
	background: #E3A742;
	color: #fff;
	padding: 20px 15px;
	text-align: center;
	font-weight: 700;
	font-size: 16px;
	border: none;
}

.hinnakiri-table th.duration-column {
	white-space: nowrap;
}

.hinnakiri-table th:first-child {
	border-top-left-radius: 12px;
}

.hinnakiri-table th:last-child {
	border-top-right-radius: 12px;
}

.hinnakiri-table td {
	padding: 20px 15px;
	border-bottom: 1px solid #E3DDD2;
	vertical-align: top;
}

.hinnakiri-table td.price-column {
	vertical-align: middle;
}

.hinnakiri-table td.duration-column {
	vertical-align: middle;
}

.hinnakiri-table tr:hover {
	background: #f9f9f9;
}

.service-column {
	width: 20%;
	text-align: left;
}

.description-column {
	width: 30%;
	text-align: left;
}

.price-column {
	width: 8%;
	text-align: center;
	vertical-align: middle;
}

/* Materjalide hinnad: hind paremas servas */
.price-column[colspan="4"],
td.price-column[colspan="4"] {
	width: auto;
	text-align: right !important;
	padding-right: 30px;
}

.price-column[colspan="4"] .price,
td.price-column[colspan="4"] .price {
	text-align: right;
	display: inline-block;
	width: 100%;
	color: #E3A742;
}

.material-price-column .price {
	color: #E3A742;
}

.hinnakiri-table th.material-price-header {
	background: #E3A742 !important;
	color: #fff !important;
}

/* Materjalide hinnad header: paremas servas */
th.price-column[colspan="4"] {
	text-align: right !important;
	padding-right: 30px;
}

.duration-column {
	width: 14%;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
}

.service-name {
	font-weight: 700;
	font-size: 16px;
	color: #E3A742;
	margin-bottom: 5px;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	text-align: left;
	width: 100%;
}

.service-name:hover {
	font-weight: 800;
	text-decoration: underline;
}

.service-description {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

/* Teenuse kirjelduse popup (desktop) */
.service-description-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.service-description-modal.is-visible {
	display: flex;
}

.service-description-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.service-description-dialog {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 24px 28px;
	max-width: 520px;
	width: 90%;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
	z-index: 1;
}

.service-description-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #000;
}

.service-description-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 12px;
	color: #000;
}

.service-description-text {
	font-size: 14px;
	line-height: 1.6;
	color: #444;
}

.price {
	font-weight: 700;
	font-size: 16px;
	color: #E3A742;
}

.duration {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 14px;
	color: #E3A742;
	font-weight: 500;
}

.duration-icon {
	width: 16px;
	height: 16px;
}

.loading {
	text-align: center;
	padding: 40px;
	color: #666;
}

.error {
	text-align: center;
	padding: 40px;
	color: #e74c3c;
}

/* Mobile Styles */
.hinnakiri-mobile {
	display: none;
}

.mobile-top {
	margin-bottom: 20px;
}

.category-select {
	width: 100%;
	padding: 12px 20px;
	border: 1px solid #E3A742;
	border-radius: 24px;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
}

.mobile-roles {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	overflow-x: auto;
	padding-bottom: 10px;
}

.role-btn {
	background: #F5D5A8;
	border: 1px solid #E3A742;
	border-radius: 24px;
	padding: 10px 16px;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #000;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.role-btn:hover {
	background: #E3A742;
	color: #fff;
}

.role-btn.active {
	background: #E3A742;
	color: #fff;
}

.mobile-price-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.mobile-service-card {
	background: #fff;
	border: 1px solid #E3A742;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ms-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 15px;
	gap: 15px;
}

.ms-title {
	font-weight: 700;
	font-size: 18px;
	color: #000;
	flex: 1;
}

.ms-price {
	font-weight: 700;
	font-size: 20px;
	color: #E3A742;
	flex-shrink: 0;
}

.ms-desc {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin-bottom: 15px;
}

.ms-duration {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.ms-duration img {
	width: 16px;
	height: 16px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Responsive */
/* Mobiili vaade alates tahvlist: kuni 1024px laiusel kasutame mobiilipaigutust */
@media (max-width: 1024px) {
	.hinnakiri-container {
		padding: 20px 10px;
	}

	.hinnakiri-header h1 {
		font-size: 32px;
	}

	/* Hide category buttons on mobile - only show dropdown */
	.hinnakiri-categories {
		display: none !important;
	}

	.hinnakiri-table th,
	.hinnakiri-table td {
		padding: 15px 10px;
		font-size: 14px;
	}

	.hinnakiri-desktop {
		display: none;
	}

	.hinnakiri-mobile {
		display: block;
	}
}

@media (min-width: 1025px) {
	.hinnakiri-mobile {
		display: none !important;
	}
}

