/* Opt-in table styles. Apply gd-table and its modifiers to the table itself. */
table.gd-table {
	width: 100%;
	margin-block: 0 1rem;
	border-collapse: collapse;
	border-spacing: 0;
	border: 0;
	background: var(--gd-table-bg, transparent);
	color: inherit;
	font-size: 1em;
	text-align: start;
}

table.gd-table > :is(thead, tbody, tfoot) > tr > :is(th, td) {
	padding: 0.75rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--gd-table-border-color, #d8dde3);
	background: var(--gd-table-bg, transparent);
	color: inherit;
	font-size: inherit;
	line-height: 1.5;
	text-align: inherit;
	vertical-align: top;
}

/* Neutralize Hello Elementor's automatic striping and hover for these tables. */
table.gd-table > tbody > tr:nth-child(odd) > :is(th, td),
table.gd-table > tbody > tr:hover > :is(th, td) {
	background: var(--gd-table-bg, transparent);
}

table.gd-table > tbody + tbody {
	border-top: 2px solid var(--gd-table-border-color, #d8dde3);
}

table.gd-table > thead > tr > :is(th, td) {
	border-bottom-width: 2px;
	font-weight: 700;
	vertical-align: bottom;
}

table.gd-table > caption {
	padding-block: 0.75rem;
	color: inherit;
	font-size: inherit;
	font-style: normal;
	text-align: start;
	caption-side: top;
}

table.gd-table.gd-table-striped > tbody > tr:nth-child(odd) > :is(th, td) {
	background: var(--gd-table-striped-bg, #f5f6f8);
}

table.gd-table.gd-table-hover > tbody > tr:hover > :is(th, td) {
	background: var(--gd-table-hover-bg, #e9edf2);
}

table.gd-table.gd-table-bordered > :is(thead, tbody, tfoot) > tr > :is(th, td) {
	border: 1px solid var(--gd-table-border-color, #d8dde3);
}

table.gd-table.gd-table-borderless > :is(thead, tbody, tfoot) > tr > :is(th, td),
table.gd-table.gd-table-borderless > tbody + tbody {
	border: 0;
}

table.gd-table.gd-table-sm > :is(thead, tbody, tfoot) > tr > :is(th, td) {
	padding: 0.375rem 0.5rem;
}

.gd-table-responsive {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-block-end: 1rem;
	overflow-x: auto;
}

.gd-table-responsive > table.gd-table {
	min-width: var(--gd-table-min-width, 36rem);
	margin-block-end: 0;
}

.gd-table-responsive:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
