// core/table
//
// @version  2.0.5

@import '../_tools/_index';
@import '../_setup/_index';

.wp-block-table {

	th,
	td {
		border-color: inherit;
	}

	&.is-style-stripes {
		border-width: 0;
		border-color: inherit;

		tbody tr:not(:last-child) {

			th,
			td {
				border-block-end: var(--wp--custom--border-width--item-separator) solid;
				border-block-end-color: inherit;
			}
		}

		&.is-style-stripes tbody tr {

			&:nth-child( odd ) {
				background: color-mix( in srgb, currentColor 7%, transparent );
			}
		}
	}
}
