#certificate-browser .lp-certificates-new.themes {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(287px, 287px));
	gap: 16px;
	align-items: stretch;
	justify-content: flex-start;
}

#certificate-browser .lp-certificates-new {
	.theme {
		display: flex;
		flex-direction: column;
		width: 100% !important;
		min-height: 330px;
		margin: 0 !important;
		border: 1px solid #e1e1e1;
		border-radius: 16px;
		background: #fff;
		box-shadow: none;
		overflow: hidden;

		&:hover,
		&.active {
			border-color: var(--color-primary-500, #7067ed);
			box-shadow: 0 0 0 1px var(--color-primary-500, #7067ed);
		}

		.theme-screenshot {
			display: flex;
			align-items: center;
			justify-content: center;
			height: 100%;
			padding: 12px 12px 0;
			background: #fff;

			img {
				width: 100%;
				height: 100%;
				object-fit: contain;
				border-radius: 8px;
				padding: 5px;
			}
		}

		&:hover .theme-screenshot:after {
			display: none;
		}

	}

	.theme-id-container {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		min-height: 56px;
		padding: 12px 14px;
		border-top: 1px solid #e1e1e1;
		background: #fff;
	}

	.theme-name {
		flex: 1;
		height: auto;
		margin: 0;
		padding: 0;
		overflow: hidden;
		color: #1e1e1e;
		font-size: 14px;
		font-weight: 500;
		line-height: 1.5;
		white-space: nowrap;
		text-overflow: ellipsis;
		background: transparent;
		box-shadow: none;
	}

	.theme.active .theme-name {
		background: transparent;
		color: #1e1e1e;
		box-shadow: none;

		> span {
			display: none;
		}
	}

	.theme-actions {
		position: static;
		top: auto;
		left: auto;
		right: auto;
		transform: none;
		display: flex;
		align-items: center;
		gap: 4px;
		margin-left: auto;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;

		.button {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			height: 32px;
			min-height: 32px;
			margin: 0;
			padding: 4px 12px;
			border-radius: 8px;
			border: 1px solid var(--color-primary-500, #7067ed);
			background: #fff;
			box-shadow: none;
			color: var(--color-primary-500, #7067ed);
			font-size: 14px;
			font-weight: 600;
			line-height: 1.5;

			&:hover,
			&:focus {
				border-color: var(--color-primary-500, #7067ed);
				background: #fff;
				color: var(--color-primary-500, #7067ed);
				box-shadow: none;
			}
		}

		.button-primary,
		.button-primary:hover,
		.button-primary:focus {
			background: var(--color-primary-500, #7067ed);
			border-color: var(--color-primary-500, #7067ed);
			color: #fff;
		}
	}

	.theme.active .theme-actions {
		position: static;
		top: auto;
		left: auto;
		right: auto;
		transform: none;
		background: transparent;
		border-left: 0;
		box-shadow: none;
	}

	.theme .button-remove-certificate,
	.theme .button-assign-certificate {
		display: none;
	}

	.theme.active .button-remove-certificate {
		display: inline-flex;
	}

	.theme:not(.active):hover .button-assign-certificate {
		display: inline-flex;
	}

	.add-new-theme {
		border-style: dashed;
		background: transparent;

		> a:after,
		.theme-screenshot:after,
		.theme-screenshot span:after {
			display: none !important;
			content: none !important;
		}

		&:hover {
			border-color: var(--color-primary-500, #7067ed);
			box-shadow: none;
		}

		> a {
			display: flex;
			flex: 1;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			gap: 18px;
			padding: 24px;
			color: #1e1e1e;
			text-decoration: none;
		}

		.theme-screenshot {
			height: auto;
			padding: 0;

			span {
				display: flex;
				align-items: center;
				justify-content: center;
				width: 56px;
				height: 56px;
				border: 2px solid var(--color-primary-500, #7067ed);
				border-radius: 50%;

				&:before {
					content: '+';
					color: var(--color-primary-500, #7067ed);
					font-size: 30px;
					font-weight: 300;
					line-height: 1;
				}
			}
		}

		.theme-name {
			flex: none;
			text-align: center;
			white-space: normal;
			font-size: 16px;
			line-height: 1.4;
		}
	}
}

.lp-cert-course-info__separator {
	margin: 20px 0 0;
	border: none;
	border-top: 1px solid #e1e1e1;
}

.lp-cert-course-info {
	margin-top: 0;
	background: #fff;
	overflow: hidden;
}

.lp-course-cert-browser-new {
	.lp-cert-primary-btn,
	.lp-cert-primary-btn.button,
	.lp-cert-primary-btn.button.button-primary,
	#lp-cert-info-save-btn,
	#lp-cert-info-save-btn.button,
	#lp-cert-info-save-btn.button.button-primary {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		padding: 12px 20px;
		gap: 8px;
		border: 0;
		border-radius: 16px;
		background: var(--color-primary-500, #7067ed);
		box-shadow: none;
		color: #fff;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.5;
		text-decoration: none;
		white-space: nowrap;
	}

	.lp-cert-primary-btn:hover,
	.lp-cert-primary-btn:focus,
	#lp-cert-info-save-btn:hover,
	#lp-cert-info-save-btn:focus {
		background: var(--color-primary-500, #7067ed);
		color: #fff;
		filter: brightness(0.96);
		box-shadow: none;
	}

	.lp-cert-primary-btn[disabled],
	#lp-cert-info-save-btn[disabled] {
		cursor: not-allowed;
		opacity: 0.72;
	}
}

.lp-cert-load-more-wrap {
	margin: 16px 0 0;
}

.lp-cert-info-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.lp-cert-course-info__row {
	display: flex;
	align-items: flex-start;
	padding: 15px 0;
	flex-wrap: wrap;

	&:last-child {
		border-bottom: none;
	}

	&--toggle {
		align-items: flex-start;
		gap: 8px;
		padding: 18px 0;
		flex-wrap: wrap;

		input[type="checkbox"] {
			margin: 3px 0 0 3px;
			flex-shrink: 0;
		}

		.lp-cert-toggle-text__sub {
			flex-basis: 100%;
			margin-top: 0;
			padding-left: 20px;
		}
	}
}

.lp-cert-course-info__label {
	width: 180px;
	min-width: 180px;
	max-width: 180px;
	padding: 0;
	color: #23282d;
	font-size: 0.875rem;
	font-weight: 600;
	flex: 0 0 auto;
}

.lp-cert-course-info__field {
	flex: 1;

	input[type="text"],
	textarea {
		width: 100%;
		margin: 0;
		padding: 10px;
		border: 1px solid #dcdcde;
		border-radius: 10px;
		box-shadow: none;
		outline: none;

		&:focus {
			border-color: var(--color-primary-500, #7067ed);
			box-shadow: none;
			outline: none;
		}
	}

	textarea {
		min-height: 100px;
		resize: vertical;
	}
}

.lp-cert-course-info__hint {
	font-size: 0.875rem;
	color: #666;
	margin-top: 5px;
}

.lp-cert-toggle-text {
	font-size: 0.875rem;
	color: #23282d;
	font-weight: 600;
	line-height: 1.5;
}

.lp-cert-toggle-text__sub {
	font-size: 0.875rem;
	color: #666;
	font-weight: 400;
	margin-top: 2px;
}

.lp-option-disabled {
	pointer-events: none;
	opacity: 0.5;
}

.lp-cert-info-upload-area {
	width: 269px;
	height: 176px;
	border: 1px dashed var(--color-primary-500, #7067ed);
	border-radius: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
	overflow: hidden;
	max-width: 100%;
	box-sizing: border-box;

	&:hover {
		border-color: var(--color-primary-500, #7067ed);
		box-shadow: 0 0 0 1px rgba(112, 103, 237, 0.16);
	}

	&__placeholder {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 12px;
		width: 100%;
		height: 100%;
		text-align: center;
		padding: 24px;
		pointer-events: none;
		box-sizing: border-box;

		.lp-cert-info-upload-area__icon {
			width: 24px;
			height: 24px;
			max-width: 24px;
			max-height: 24px;
		}
	}

	&__icon {
		display: block;
		width: 24px;
		height: 24px;
		object-fit: contain;
		flex: 0 0 24px;
	}

	&__text {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		column-gap: 6px;
		row-gap: 2px;
	}

	&__link,
	&__drag {
		font-size: 14px;
		line-height: 1.5;
	}

	&__link {
		color: var(--color-primary-500, #7067ed);
		font-weight: 500;
	}

	&__drag {
		color: #111111;
		font-weight: 500;
	}

	&__hint {
		color: #898989;
		font-size: 12px;
		font-weight: 400;
		line-height: 1.6;
	}

	img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}
}

.lp-cert-info-upload-wrap {
	position: relative;
	display: inline-block;

	&:hover .lp-cert-info-remove-image {
		opacity: 1;
	}
}

.lp-cert-info-remove-image {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	border: none;
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s;
}

#lp_cert_info_description {
	width: 100%;
}
