/* Trade Accordion - стили на основе testtable */

.trade-accordion {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.trade-accordion *,
.trade-accordion *::before,
.trade-accordion *::after {
	box-sizing: border-box;
}

.trade-accordion__item {
	border-radius: 20px;
	overflow: hidden;
	transition: box-shadow 0.25s ease;
}

.trade-accordion__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f5f5f5;
	color: #1E2E3A;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s ease;
}

.trade-accordion__header:hover {
	background: #eee;
}

.trade-accordion__title {
	flex: 1;
	min-width: 0;
}

.trade-accordion__toggle {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	margin-left: 12px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #1DBFBA;
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease, background-color 0.2s ease;
}

.trade-accordion__item.is-open .trade-accordion__toggle {
	transform: rotate(45deg);
}

.trade-accordion__toggle:hover {
	background: #19a8a4;
}

.trade-accordion__icon {
	display: block;
	line-height: 1;
}

.trade-accordion__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease-out;
}

.trade-accordion__item.is-open .trade-accordion__content {
	max-height: 5000px;
	transition: max-height 0.4s ease-in;
}

.trade-accordion__content-inner p:first-child {
	margin-top: 0;
}

.trade-accordion__content-inner p:last-child {
	margin-bottom: 0;
}
