:root {
	--fsdp-color-first: #3d11f9;
	--fsdp-color-second: #F3F1F9;
}

#fsdpe-events-settings {
	max-width: 1000px;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
	background: #fff;

	h1 {
		padding-block: 8px;
	}

	.components-base-control:has(textarea) {
		flex-basis: 400px;
	}

	.components-notice {
		&, &__content {
			margin: 0;
		}
	}

	.components-notice-list {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin-block-end: 16px;
	}

	.components-panel {
		margin-block-end: 8px;

		&__body {
			&.is-opened {
				.components-panel__body-title {
					color: #FFFFFF;
					background-color: #DED8F9;
				}
			}

			&-title {
				background-color: var(--fsdp-color-second);
			}
		}
	}
}

.fsdpe-events-settings {
	.components-form-toggle.is-checked .components-form-toggle__track {
		background-color: var(--fsdp-color-first);
	}

	.components-button {
		&.is-primary {
			padding: 20px 30px;
			font-size: 16px;
			line-height: 1;
			border-radius: 9999px;
			background-color: var(--fsdp-color-first);
			border: 2px solid var(--fsdp-color-first);

			&:hover, &:focus {
				background-color: #FFFFFF;
				color: var(--fsdp-color-first);
			}
		}
	}

	&__duotone {
		.components-circular-option-picker__custom-clear-wrapper {
			display: none;
		}

		.components-color-list-picker__swatch-button {
			span:last-of-type {
				display: block;
				position: relative;
				width: 100%;

				&:before {
					position: absolute;
					display: block;
					width: 100%;
					height: 100%;
					content: 'Base color';
					text-align: left;
					background-color: white;
				}
			}

			&:last-of-type {
				span:last-of-type {
					&:before {
						content: 'Secondary color';
					}
				}
			}
		}
	}

	&__bottom {
		padding: 16px;
		display: flex;
		align-items: end;
		justify-content: space-between;
	}
}

#fsdpe_events_meta_box {
	h2 {
		font-size: 24px;
		margin-bottom: 16px;
		margin-top: 16px;
	}
}
#fsdpe_events_meta_box {
	.fsdpe-metaboxes {
		padding-top: 20px;
		&__dates {
			display: flex;
			align-items: center;
			gap: 10px;
			margin-bottom: 20px;
			flex-wrap: wrap;
		}
		&__textfields {
			display: flex;
			flex-direction: column;
			gap: 20px;
			input, textarea {
				width: 100%;
				margin-top: 8px;
			}
		}
	}
}