.tribe-editor__container-panel__header {

	.tribe-editor__rsvp & {
		display: flex;
		align-items: center;
	}
}

.tribe-editor__rsvp--selected {

	&.tribe-editor__rsvp--add-edit-open {
		.tribe-editor__rsvp-container .tribe-editor__container-panel__content {
			display: block;
		}
	}

	.tribe-editor__rsvp-container .tribe-editor__container-panel__content {
		background-color: var(--tec-color-background-secondary);
		border: 1px solid var(--tec-color-border-secondary);
		border-bottom: none;
		display: none;

		.tribe-editor__container-panel__content {
			border-top: none;
		}
	}
}

.tribe-editor__rsvp-container-header__header-details {
	flex: auto;
}

/* extra classes to override gutenberg styles */
.tribe-editor__rsvp .tribe-editor__rsvp-container {

	.tribe-editor__rsvp-container-header__title {
		color: #141827;
		margin: 0;
		padding-top: 3px;
		font-weight: bold;
		font-size: 21px;
		line-height: 25px;
		letter-spacing: 0.16px;
	}

	.tribe-editor__rsvp-container--disabled .tribe-editor__rsvp-container-header__title {
		color: #AEB4BB;
	}
}

.tribe-editor__rsvp-container-header__title-input-wrapper {
	align-items: baseline;
	display: flex;

	svg {
		flex: none;
		margin: 6px 0 0 10px;
		fill: #8d949b;
	}
}

/* extra class to override gutenberg styles */
.tribe-editor__rsvp {

	.tribe-editor__rsvp-container-header__title-input {
		background-color: transparent;
		border: none;
		color: #000;
		font-family: 'Helvetica Neue', Helvetica, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
		font-size: 21px;
		font-weight: bold;
		letter-spacing: 0.16px;
		line-height: 25px;
		margin: 3px 0 0;
		padding: 0;
		resize: none;
		width: calc(95% - 26px);

		&:hover,
		&:focus {
			background-color: #fff;
		}

		&:disabled {

			&,
			&:hover,
			&:focus {
				background-color: transparent;
				color: #aeb4bb;
			}
		}
	}

	#edit-rsvp {
		margin-top: auto;
	}
}

.tribe-editor__rsvp-container-header__description {
	display: block;
	color: #545D66;
	padding-top: 7px;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: 0.04px;

	.tribe-editor__rsvp-container--disabled & {
		color: #AEB4BB;
	}
}

/* extra class to override gutenberg styles */
.tribe-editor__rsvp {

	.tribe-editor__rsvp-container-header__description-input {
		display: flex;
		width: 95%;
		background-color: transparent;
		color: #5d5d5d;
		margin: 0;
		padding: 0;
		border: none;
		font-family: 'Helvetica Neue', Helvetica, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
		font-size: 12px;
		line-height: 18px;
		letter-spacing: 0.04px;
		max-height: 108px;

		&:hover,
		&:focus {
			background-color: transparent;
			box-shadow: none;
		}

		&:disabled {

			&,
			&:hover,
			&:focus {
				background-color: transparent;
				color: #AEB4BB;
			}
		}

		& > * {
			flex: none;
		}
	}
}

.tribe-editor__numeric-label.tribe-editor__rsvp-container-header__capacity-label {
	color: var(--tec-color-text-secondary);
	display: flex;
	font-size: var(--tec-font-size-1);
	line-height: var(--tec-line-height-2);
	padding-top: var(--tec-spacer-4);

	.tribe-editor__rsvp-container--disabled & {
		color: #AEB4BB;
	}
}

.tribe-editor__numeric-label--count {

	.tribe-editor__rsvp-container-header__capacity-label & {
		font-size: var(--tec-font-size-1);
		font-weight: var(--tec-font-weight-bold);
		line-height: var(--tec-line-height-2);
	}
}

.tribe-editor__numeric-label--after {

	.tribe-editor__rsvp-container-header__capacity-label & {
		flex: none;
		margin-left: 2px;
		font-size: 12px;
		letter-spacing: 0.04px;
		white-space: pre;
	}
}

.tribe-editor__rsvp-container-header__capacity-label-fallback {
	display: block;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: 0.04px;
	color: #545D66;
	padding-top: 15px;

	.tribe-editor__rsvp-container--disabled & {
		color: #AEB4BB;
	}
}

.tribe-editor__inactive-block--rsvp.tribe-editor__rsvp-container-header {
	padding: var(--tec-spacer-9) 0;

	.tribe-editor__rsvp-details-wrapper {
		padding: 0;
	}
}