/* --- Basic Setup --- */
.htc-wrapper {
	position: relative;
	font-size: 15px;
	--panel-width: 380px;
	--panel-color: #f9f9fa;
	--pannel-padding: 30px;
	min-height: 50vh;
}

.htc-wrapper form.ht-configurator {
	transition: opacity 200ms;
}

.htc-wrapper.htc-loading form.ht-configurator {
	opacity: 0.4;
	pointer-events: none;
}

/* --- Image Column --- */
.htc-left-column {
	padding-right: var(--panel-width);
	height: 100%;
}

.htc-image-wrapper {
	display: flex;
	height: 100%;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	background-image: url(/wp-admin/images/loading.gif);
	background-position: center;
	background-repeat: no-repeat;
}

.htc-image-wrapper img.htc-image {
	object-fit: contain;
	object-position: center;
	max-width: 100%;
	max-height: 100%;
	padding: 5vh;
	transition: opacity 200ms;
}

.htc-image-wrapper img.htc-image.htc-image-loading {
	opacity: 0.7;
}

/* --- Options Column --- */
.htc-right-column {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding-left: calc(100% - var(--panel-width));
	overflow-y: scroll;
	background: linear-gradient(to right, transparent calc(100% - var(--panel-width)), var(--panel-color) calc(100% - var(--panel-width)), var(--panel-color) 100%);
	display: none; /* will be shown on load */
}

.htc-right-column-wrapper input:focus-visible {
	outline: none;
}

.htc-options-wrapper {
	padding: var(--pannel-padding);
}

.htc-options-wrapper fieldset {
	border: none;
}

.htc-options-wrapper legend,
.htc-section-heading {
	font-weight: bold;
	font-size: 1.2em;
	opacity: 0.85;
}

/* --- Price section --- */
.htc-options-price-section {
	padding-top: 20px;
	border-top: 1px solid #ccc;
}

.htc-options-price-section .htc-total-price {
	font-size: 35px;
	font-weight: bold;
	font-family: serif;
	line-height: 1;
}

.htc-options-price-section .htc-coupon-wrapper {
	margin-top: 20px;
}

.htc-options-price-section .htc-coupon-field-wrapper {
	display: flex;
	margin-bottom: 5px;
}


.htc-options-price-section .htc-coupon-field-wrapper input {
	flex-grow: 1;
}

.htc-options-price-section input[name="coupon_code"] {
	margin-right: 6px;
	border: 2px solid #eee;
	padding: 6px 20px;
}

.htc-options-price-section button.htc-apply-coupon {
	/* background-color: #007dd1; */
	/* border: 2px solid transparent; */
	/* color: #fff; */
	background-color: #fff;
	border: 2px solid #007dd1;
	color: #007dd1;
	padding: 6px 20px;
	margin-right: 6px;
}

.htc-options-price-section button.htc-apply-coupon:focus,
.htc-options-price-section button.htc-apply-coupon:hover {
	background-color: #007dd1bd;
	color: #fff;
}
.htc-options-price-section .htc-coupon-message[data-status="ok"] {
	color: green;
}
.htc-options-price-section .htc-coupon-message[data-status="error"] {
	color: red;
}



/* --- Site Footer --- */
.site-footer {
	padding-block-start: 0 !important;
	padding-block-end: 0 !important;
}

/* --- Fieldset Options --- */
.htc-wrapper fieldset {
	margin-bottom: 30px;
	padding: 0;
}

.htc-wrapper fieldset input[type="radio"] {
	display: none;
}

.htc-wrapper fieldset label {
	display: block;
	padding: 15px 20px;
	margin: 6px 0;
	border: 2px solid #eee;
	border-radius: 5px;
	cursor: pointer;
	transition: border-color 250ms, background-color 250ms;
	background-color: #fff;
	box-shadow: 0px 30px 60px rgba(0,0,0,.05);
}

.htc-wrapper fieldset input[type="radio"]:checked + label {
	border: 2px solid #007dd1;
	background-color: #fff;
	box-shadow: 0px 30px 60px rgba(0,0,0,.05),0px 10px 20px #f2f9fd;
}

/* --- Additional Fieldset Options --- */
.htc-wrapper fieldset p.htc-fieldset-description {
	opacity: 0.8;
	line-height: 1.3;
}

.htc-wrapper fieldset .option-name {
	font-weight: bold;
	opacity: 0.85;
}

.htc-wrapper fieldset .option-description {
	font-size: 0.9em;
	opacity: 0.8;
	margin-top: 6px;
}

.htc-wrapper fieldset .option-price {
	text-align: right;
	font-size: 0.9em;
	margin-top: 6px;
}

/* --- Fieldset Popups --- */
.htc-fieldset-popup-open {
	font-size: 12px;
	color: #007dd1;
	text-decoration: underline !important;
}

.htc-fieldset-popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.1);
	z-index: 99;
}

.htc-fieldset-popup-wrapper {
	position: absolute;
	top: 50%;
	left: 50%;
	max-height: 70%;
	width: 600px;
	max-width: 80%;
	border-radius: 10px;
	background-color: #fff;
	transform: translate(-50%, -50%);
	padding: 30px;
	box-shadow: 0px 30px 60px rgba(0,0,0,.05);
	display: flex;
	flex-direction: column;
	margin-top: 50px;
}

.htc-fieldset-popup-heading {
	font-size: 1.2em;
	font-weight: bold;
	margin-bottom: 10px;
}

.htc-fieldset-popup-text {
	flex-grow: 1;
	overflow-y: scroll;
	margin-bottom: 10px;
}

.htc-fieldset-popup-ok {
	background-color: #007dd1;
	border-radius: 30px;
	border: none;
	color: #fff;
	font-weight: bold;
	align-self: flex-end;
}

.htc-fieldset-popup-ok:hover {
	background-color: #007dd1;
	opacity: 0.8
}

/* --- Media Query for Small Screens --- */
@media(max-width: 890px) {
	.htc-wrapper {
		display: grid;
		grid-template-columns: 100%;
		grid-template-rows: 40% 60%;
		font-size: 14px;
	}
	.htc-left-column {
		padding-right: 0;
		height: 100%;
		box-shadow: 0px 30px 60px rgba(0,0,0,.04);
		z-index: 2;
	}
	
	.htc-right-column {
		position: relative;
		padding-left: 0;
		overflow-y: scroll;
		background: var(--panel-color);
	}
}

/* --- Simple checkbox --- */
.htc-wrapper fieldset.htc-no-fieldset-styling label {
	display: block;
	padding: 5px 2px;
	margin: 6px 0;
	border: none;
	border-radius: 0px;
	cursor: pointer;
	transition: none;
	background-color: unset;
	box-shadow: none;
}
.htc-wrapper fieldset.htc-no-fieldset-styling label span {
	font-weight: bold;
	opacity: 0.85;
}
.htc-wrapper fieldset.htc-no-fieldset-styling label p {
	margin-left: 24px;
	opacity: 0.6;
	font-size: 0.9em;
	margin-top: 2px;
}
.htc-simple-checkbox input[type="checkbox"] {
	transform: scale(1.2); /* makes checkbox 50% larger */
	margin-right: 10px;
}

.htc-simple-checkbox input[type="checkbox"]:checked {
	background-color: #007dd1;
}




/* --- Form footer --- */
.htc-submit-wrapper {
	/* background-color: #445; */
	background-color: #183c51;
	padding: calc(var(--pannel-padding) + 2px);
}

.htc-submit-wrapper .htc-section-heading {
	color: #f9f9f9;
	opacity: 1;
}

.htc-submit-wrapper label {
	color: #f7f7f7;
	width: 100%;
	margin-top: 15px;
}

.htc-submit-wrapper input {
	color: var(--e-global-color-primary, #333);
	margin-top: 5px;
}


.htc-submit-wrapper .htc-tac-page-link {
	display: inline-block;
	margin-top: 4px;
	color: #fff;
	text-decoration: underline;
}

button.htc-submit {
	margin-top: 10px;
	width: 100%;
	background-color: #007dd1;
	color: #fff;
	font-weight: bold;
	padding: 6px 20px;
	border: none;
}

button.htc-submit:focus,
button.htc-submit:hover {
	background-color: #007dd1bd;
}
button.htc-submit.disabled {
	pointer-events: none;
	opacity: 0.3;
}



.htc-form-success-message {
	color: #fff;
	margin-top: 10px;
}
.htc-form-error-message {
	color: #ff8f8f;
	margin-top: 10px;
}