@import "variables";

.service-tabs {
	.service-nav {
		margin: 0 0 40px 0;
		padding: 0;
		list-style: none;
		display: flex;
		justify-content: center;
		a {
			font-weight: 500;
			font-size: 16px;
			padding: 9px 24px;
			border: 1px solid #DDDDDD;
			border-radius: 50px;
			background-color: #fff;
			display: block;
		}
		li {
			+ {
				li {
					margin-left: 24px;
				}
			}
		}
		a.active {
			background: $accent_color;
			border-color: $accent_color;
			color: #fff;
		}
	}
	.service-nav.underline {
		a {
			padding: 0 0 3px 0;
			background-color: transparent;
			border-top: 0;
			border-left: 0;
			border-right: 0;
			border-bottom: 1px solid transparent;
			border-radius: 0;
		}
		a.active {
			background-color: transparent;
			border-color: $accent_color;
			color: $accent_color;
		}
	}
	.service-tab-content {
		display: none;
	}
	.service-tab-content.active {
		display: block;
	}
}
@media (max-width: 576px) {
	.service-tabs {
		.service-nav {
			flex-direction: column;
			li {
				+ {
					li {
						margin: 20px 0 0 0;
					}
				}
				&:last-child {
					margin-bottom: 0;
				}
			}
			a {
				width: 100%;
				text-align: center;
			}
		}
	}
}
