.gb-wenskaart-designer {
	max-width: 800px;
}

.gb-wenskaart-template-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
	margin-top: 2rem;
}

.gb-wenskaart-template-thumb {
	background-color: white !important;
	color: #000 !important;
	font-weight: 500 !important;
	padding: 1px !important;
	border-radius: 17px !important;
	transition: all 200ms ease !important;
	font-size: 1rem !important;
	text-align: center !important;
	border: solid 2px #ccc !important;
}

.gb-wenskaart-template-thumb:hover {
	cursor: pointer !important;
	border: solid 2px #D5652D !important;
}

.gb-wenskaart-template-thumb-image-wrapper{
	width: 100%;
	aspect-ratio: 376/281;
	border-radius: 15px 15px 0 0 !important;
	background-color: #cecece;
}

.gb-wenskaart-template-thumb-image-wrapper img{
	width: 100%;
	height: 100%;
	border-radius: 15px 15px 0 0;
	object-fit: cover;
}

.gb-wenskaart-template-thumb span {
	display: block;
	padding: 16px;
	font-size: 16px;
}

#gb-wenskaart-canvas {
	border: 1px solid #ddd;
	max-width: 100%;
}

.gb-wenskaart-controls {
	margin-top: 12px;
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.gb-wenskaart-submit {
	margin-top: 16px;
}

.gb-wenskaart-optin {
	display: flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}

.gb-wenskaart-optin input[type="checkbox"] {
	accent-color: #D5652D; /* zelfde als de productopties in het thema */
	margin: 0 .5rem 0 0;
	cursor: pointer;
}

.gb-wenskaart-modal {
    border: none;
    border-radius: 10px;
    padding: 2rem;
    max-width: 760px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-gutter: stable both-edges; /* breedte verandert niet als de scrollbalk verschijnt, anders klopt de canvasmaat niet */
	background-color: #F9F4ED;
}

.gb-wenskaart-modal h3{
	margin-bottom: 1rem;
	font-size: 24px;
}

.gb-wenskaart-modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.gb-wenskaart-modal-close {
    position: absolute;
    top: 32px;
    right: 32px;
    background: none;
    border: solid 1px #cecece !important;
	width: 26px;
	height: 26px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
	background-color: white;
	border-radius: 100%;
	transition: all 200ms ease;
}

.gb-wenskaart-modal-close:hover{
	background-color: #efb8b8;
}

.gb-wenskaart-reopen {
    margin-left: 8px;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
	transition: all 200ms ease;
}

.gb-wenskaart-reopen:hover{
	color: #D5652D;
}

.gb-wenskaart-text-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

.gb-wenskaart-text-field label{
	font-weight: 700;
}

.gb-wenskaart-text-field textarea {
	width: 100%;
	resize: none;
	font-family: inherit;
	padding: .5rem;
	border: solid 1px #cecece;
}

.gb-wenskaart-font-field,
.gb-wenskaart-color-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

.gb-wenskaart-color-swatches {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: space-evenly;
}

.gb-wenskaart-color-swatch {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	padding: 0;
	border: solid 2px #cecece;
}

.gb-wenskaart-color-swatch.is-active {
	border-color: #000;
	box-shadow: 0 0 0 2px #fff inset;
}

.gb-wenskaart-font-select{
	height: 36px;
	padding: 0 .5rem;
	border: solid 1px #cecece;
}

.gb-text-controls-wrapper{
	display: flex;
	flex-direction: column;
	gap: 2rem;
	width: 100%;
	margin-bottom: 2rem;
}

.gb-text-controls-wrapper label{
	font-weight: 700;
}

@media screen and (min-width: 768px){
	.gb-text-controls-wrapper{
		flex-direction: row;
		align-items: center;
	}
}

.gb-wenskaart-bottom-wrapper{
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: 2rem;
}

@media screen and (min-width: 768px){
	.gb-wenskaart-bottom-wrapper{
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.gb-wenskaart-bottom-wrapper .back-save-wrapper{
		display: flex;
		width: 100%;
		justify-content: end;
		gap: 1rem;
	}
}

button.gb-wenskaart-back{
	background-color: white !important;
	color: #000 !important;
	font-weight: 500 !important;
	padding: .9rem 1.4rem !important;
	border-radius: 2rem !important;
	border: solid 1px #cecece !important;
	transition: all 200ms ease !important;
}

button.gb-wenskaart-back:hover{
	color: white !important;
	background-color: black !important;
}

button.gb-wenskaart-done{
	background-color: #efb8b8 !important;
	color: #000 !important;
	font-weight: 500 !important;
	padding: .9rem 1.4rem !important;
	border-radius: 2rem !important;
	transition: all 200ms ease !important;
}

button.gb-wenskaart-done:hover{
	color: white !important;
	background-color: black !important;
}

::file-selector-button {
	background-color: white !important;
	color: #000 !important;
	font-weight: 500 !important;
	padding: .5rem 1.4rem !important;
	border-radius: 2rem !important;
	border: solid 1px #cecece !important;
	transition: all 200ms ease !important;
}

::file-selector-button:hover{
	cursor: pointer !important;
	color: white !important;
	background-color: black !important;
}