// Access Control tab + per-meeting Access Control section + denied page styles.

.goodmeet-access-control {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 0;

	.section-heading {
		font-size: 16px;
		font-weight: 700;
		color: #1f2937;
		margin: 16px 0 4px;
		padding-top: 16px;
		border-top: 1px solid #e5e7eb;

		&:first-of-type {
			border-top: none;
			padding-top: 0;
		}
	}
}

.goodmeet-plan-notice {
	background: #fff8e1;
	border: 1px solid #f5c542;
	border-radius: 8px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;

	p {
		margin: 0;
		font-size: 13px;
		color: #4b5563;
		line-height: 1.5;
	}

	.check-plan-btn {
		align-self: flex-start;
		padding: 6px 14px;
		background: #fff;
		color: #1f2937;
		border: 1px solid #d1d5db;
		border-radius: 6px;
		cursor: pointer;
		font-size: 13px;
		font-weight: 600;
		transition: all 0.2s ease;

		&:hover:not(:disabled) {
			background: #f3f4f6;
			border-color: #9ca3af;
		}

		&:disabled {
			opacity: 0.6;
			cursor: not-allowed;
		}
	}

	.plan-ok {
		color: #047857;
		font-weight: 600;
		font-size: 13px;
	}

	.plan-bad {
		color: #b91c1c;
		font-weight: 600;
		font-size: 13px;
	}
}

.goodmeet-select2-wrapper {
	position: relative;
	display: inline-block;
	min-width: 400px;
	max-width: 100%;

	&.disabled {
		opacity: 0.6;
		pointer-events: none;
	}

	.goodmeet-select2-field {
		width: 100%;
	}

	.goodmeet-disabled {
		position: absolute;
		inset: 0;
		cursor: pointer;
		pointer-events: auto;
		z-index: 2;
	}

	.goodmeet-pi-tag.select-pro {
		position: absolute;
		top: -10px;
		right: -10px;
		background: #997eff;
		color: #fff;
		font-size: 11px;
		padding: 2px 8px;
		border-radius: 12px;
		cursor: pointer;
		z-index: 3;
	}

	.goodmeet-select2__control {
		min-height: 46px;
	}
}

// Access-denied frontend page.
.goodmeet-wrapper.goodmeet-access-denied {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 360px;
	padding: 40px 20px;

	.goodmeet-access-denied__inner {
		max-width: 520px;
		text-align: center;
		background: #ffffff;
		border: 1px solid #e5e7eb;
		border-radius: 12px;
		padding: 40px 32px;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	}

	.goodmeet-access-denied__title {
		font-size: 22px;
		font-weight: 700;
		margin: 0 0 12px;
		color: #1f2937;
	}

	.goodmeet-access-denied__message {
		font-size: 15px;
		color: #4b5563;
		margin: 0 0 24px;
		line-height: 1.5;
	}

	.goodmeet-access-denied__action {
		margin: 0;

		.goodmeet-google-meet-button {
			display: inline-block;
			padding: 10px 24px;
			background: #00724a;
			color: #ffffff;
			text-decoration: none;
			border-radius: 8px;
			font-weight: 600;
			transition: background 0.2s ease;

			&:hover {
				background: #003b28;
			}
		}
	}
}
