/**
 * Front-end styles for the Polaris Sections-Entry block
 * 
 * @since 1.1.0
 * @author Designs and Codes, LLC
 */

/*
 * "Normal"
 */
.wp-block-polaris-sections-entry {
	margin: 15px 0;
}

.wp-block-polaris-accordion > .wp-block-polaris-sections-entry {
	border: 1px solid #686868;
	border-radius: 0;
}

.wp-block-polaris-accordion > .wp-block-polaris-sections-entry:first-child {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.wp-block-polaris-accordion > .wp-block-polaris-sections-entry:last-child {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

.wp-block-polaris-sections-entry-heading,
.wp-block-polaris-sections-entry-content {
	margin: 10px 0;
}

.wp-block-polaris-sections-entry-content {
	padding-left: 15px;
}

/* iOS doesn't support :is() until v14 */
.wp-block-polaris-sections-entry-heading:first-child,
.wp-block-polaris-sections-entry-content:first-child,
.wp-block-polaris-sections-entry-content > :first-child {
	margin-top: 0 !important;
}

/* iOS doesn't support :is() until v14 */
.wp-block-polaris-sections-entry-heading:last-child,
.wp-block-polaris-sections-entry-content:last-child,
.wp-block-polaris-sections-entry-content > :last-child {
	margin-bottom: 0 !important;
}

dt.wp-block-polaris-sections-entry-heading {
	font-weight: bold;
}

/*
 * Accordion
 */

details.wp-block-polaris-sections-entry {
	border: 1px solid #686868;
	padding: 0;
}

details.wp-block-polaris-sections-entry + details.wp-block-polaris-sections-entry {
	margin-top: -15px;
	border-top: none;
}

details.wp-block-polaris-sections-entry > * {
	margin: 0 !important;
}

details.wp-block-polaris-sections-entry[open] > .wp-block-polaris-sections-entry-heading {
	border-bottom: 1px solid #686868;
}

summary.wp-block-polaris-sections-entry-heading {
	cursor: pointer;
	padding: 10px;
}

details.wp-block-polaris-sections-entry > .wp-block-polaris-sections-entry-content {
	padding: 15px 30px;
}
