/* This stylesheet is used to style the public-facing components of the plugin. */

.wpec-product-item {
	display: block;
	border: 1px solid #E7E9EB;
	-webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
	margin-top: 10px;
	margin-bottom: 10px;
	padding: 15px;
}

.wpec-place-order-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 26px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, #ff7a1a, #ff5a36);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	box-shadow: 0 16px 32px rgba(255, 90, 54, 0.26);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wpec-place-order-btn:hover,
.wpec-place-order-btn:focus {
	background: linear-gradient(135deg, #ff6d0f, #f14d2d);
	color: #fff;
	box-shadow: 0 18px 36px rgba(241, 77, 45, 0.3);
	transform: translateY(-1px);
}

.wpec-place-order-btn:focus {
	outline: none;
}

.wpec-payment-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 24px;
	align-items: start;
}

.wpec-payment-options > [id^="wpec-manual-checkout-section-"] {
	display: contents;
}

.wpec-payment-option {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wpec-payment-option--paypal {
	justify-self: start;
}

.wpec-payment-option--manual {
	justify-self: end;
}

.wpec-payment-option__button-host {
	width: min(100%, 300px);
}

.wpec-payment-option__help {
	margin: 0;
	max-width: 300px;
	color: #64748b;
	font-size: 13px;
	line-height: 1.55;
}

.wpec-place-order-btn--manual-trigger {
	width: min(100%, 300px);
	min-height: 44px;
	padding: 0 24px;
	border-radius: 999px;
	background: linear-gradient(135deg, #4d7cff, #2453db);
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
	font-size: 15px;
	font-weight: 700;
}

.wpec-place-order-btn--manual-trigger:hover,
.wpec-place-order-btn--manual-trigger:focus {
	background: linear-gradient(135deg, #3d6ef7, #1e40af);
	box-shadow: 0 12px 24px rgba(30, 64, 175, 0.24);
}

.wpec-manual-checkout-form {
	grid-column: 1 / -1;
	margin-top: 8px;
}

.wpec-payment-options.wpec-payment-options--manual-open {
	grid-template-columns: 1fr;
}

.wpec-payment-options.wpec-payment-options--manual-open .wpec-payment-option {
	display: none;
}

.wpec-payment-options.wpec-payment-options--manual-open .wpec-manual-checkout-form {
	display: block;
	width: 100%;
	max-width: 100%;
	margin-top: 0;
}

#wp-ppdg-dialog-message.wpec-success-notice {
	position: relative;
	margin-top: 22px;
	padding: 24px 24px 24px 92px;
	border: 1px solid rgba(134, 239, 172, 0.9);
	border-radius: 24px;
	background:
		radial-gradient(circle at top left, rgba(134, 239, 172, 0.24), transparent 34%),
		linear-gradient(135deg, #f5fff7 0%, #ecfbf1 52%, #f8fffb 100%);
	color: #166534;
	box-shadow: 0 22px 44px rgba(22, 101, 52, 0.08);
	overflow: hidden;
}

#wp-ppdg-dialog-message.wpec-success-notice::before {
	content: "";
	position: absolute;
	top: 22px;
	left: 24px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	box-shadow: 0 12px 24px rgba(34, 197, 94, 0.22);
}

#wp-ppdg-dialog-message.wpec-success-notice::after {
	content: "\2713";
	position: absolute;
	top: 31px;
	left: 39px;
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

#wp-ppdg-dialog-message.wpec-success-notice .wpec-success-notice__title {
	margin: 0 0 8px;
	color: #14532d;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}

#wp-ppdg-dialog-message.wpec-success-notice #wp-ppdg-dialog-msg {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #166534;
	max-width: 720px;
}

#wp-ppdg-dialog-message.wpec-success-notice .wpec-success-notice__actions {
	margin-top: 18px;
}

#wp-ppdg-dialog-message.wpec-success-notice .wpec-success-notice__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(22, 101, 52, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.8);
	color: #166534;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 8px 18px rgba(22, 101, 52, 0.08);
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#wp-ppdg-dialog-message.wpec-success-notice .wpec-success-notice__close:hover,
#wp-ppdg-dialog-message.wpec-success-notice .wpec-success-notice__close:focus {
	background: #ffffff;
	color: #14532d;
	box-shadow: 0 12px 22px rgba(22, 101, 52, 0.12);
	transform: translateY(-1px);
}

@media (max-width: 767px) {
	.wpec-payment-options {
		grid-template-columns: 1fr;
	}

	.wpec-payment-option--manual {
		justify-self: start;
	}

	.wpec-payment-option__button-host,
	.wpec-place-order-btn--manual-trigger,
	.wpec-payment-option__help {
		max-width: 100%;
		width: 100%;
	}

	#wp-ppdg-dialog-message.wpec-success-notice {
		padding: 20px 18px 20px 18px;
	}

	#wp-ppdg-dialog-message.wpec-success-notice::before,
	#wp-ppdg-dialog-message.wpec-success-notice::after {
		display: none;
	}

	#wp-ppdg-dialog-message.wpec-success-notice .wpec-success-notice__title {
		font-size: 18px;
	}
}

.wpec-product-item-thumbnail img {
	width: 75px;
	height: 75px;
	float: left;
	margin-right: 10px;
}

.wpec-product-name {
	/* float: left; */
}

.wpec-product-name .wpec-entry-title {
	font-size: 24px;
	font-weight: bold;
	line-height: 75px;
	margin: 0;
}

.wpec-product-description {
	margin: 15px 0 15px 0;
	border-bottom: 1px solid #EEEEEE;
}

.wpec-price-container {
	font-weight: bold;
	margin: 5px 0px;
}

/* Post Item */

.wpec-post-item {
	width: 90%;
}

.wpec-post-item-top {
	display: block;
}

.wpec-post-thumbnail img {
	width: 100%;
	border: 1px solid #e8e4e3;
	padding: 5px;
}

.wpec-post-title {
	font-size: 26px;
	font-weight: bold;
	margin-bottom: 20px;
}

.wpec-error-message {
	color: red;
	font-weight: bold;
}

/* Spinner */

.wp-ppec-spinner {
	display: inline-block;
	position: relative;
	width: 64px;
	height: 64px;
}

.wp-ppec-spinner div {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	display: block;
	position: absolute;
	width: 51px;
	height: 51px;
	margin: 6px;
	border: 6px solid #005ea6;
	border-radius: 50%;
	-webkit-animation: wp-ppec-spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	animation: wp-ppec-spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	border-color: #005ea6 transparent transparent transparent;
}

.wp-ppec-spinner div:nth-child(1) {
	-webkit-animation-delay: -0.45s;
	animation-delay: -0.45s;
}

.wp-ppec-spinner div:nth-child(2) {
	-webkit-animation-delay: -0.3s;
	animation-delay: -0.3s;
}

.wp-ppec-spinner div:nth-child(3) {
	-webkit-animation-delay: -0.15s;
	animation-delay: -0.15s;
}

@-webkit-keyframes wp-ppec-spinner {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

@keyframes wp-ppec-spinner {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

.wp-ppec-overlay {
	z-index: 10000;
	display: none;
	background-color: white;
	width: 100%;
	opacity: 0.7;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	text-align: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
}

.wpec_billing_container, .wp-ppec-button-container {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.wp-ppec-form-error-msg {
	display: none;
	color: red;
}

.wpec_product_coupon_info > :not([hidden]) ~ :not([hidden]) {
	margin-right: calc(16px * 0);
	margin-left: calc(16px * calc(1 - 0));
}

.wpec_product_coupon_input_wrap > :not([hidden]) ~ :not([hidden]) {
	margin-right: calc(16px * 0);
	margin-left: calc(16px * calc(1 - 0));
}

.wpec_product_coupon_info, .wpec_product_coupon_input_wrap {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}

.wpec_coupon_apply_btn {
	background-color: transparent;
	border-color: rgba(37, 99, 235, 1);
	border-radius: 6px;
	border-style: solid;
	border-width: 2px;
	cursor: pointer;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	font-weight: 600;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 16px;
	padding-right: 16px;
	color: rgba(37, 99, 235, 1);
	white-space: nowrap;
}

.wpec_coupon_apply_btn:hover {
	color: rgba(37, 99, 235, 1);
}

.wpec_coupon_apply_btn:hover {
	background-color: rgba(37, 99, 235, 50);
	background-image: none;
	border-color: transparent;
	color: rgba(255, 255, 255, 1);
}
/*
.wpec_coupon_apply_btn:hover:hover {
	color: rgba(255, 255, 255, 1);
}
.wpec_coupon_apply_btn:hover:hover {
	background-color: rgba(37, 99, 235, 1);
}
*/
.wpec_coupon_apply_btn svg {
	display: none;
	-webkit-animation: wpec-spinner 1s linear infinite;
	animation: wpec-spinner 1s linear infinite;
	height: 20px;
	margin-right: 12px;
	margin-left: -4px;
	width: 20px;
}

.wpec_coupon_apply_btn svg circle {
	opacity: 0.25;
}

.wpec_coupon_apply_btn svg path {
	opacity: 0.75;
}

.wpec_coupon_code {
	background-color: rgba(254, 243, 199, 1);
	border-color: rgba(252, 211, 77, 1);
	border-radius: 4px;
	border-style: dashed;
	-webkit-box-flex: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 16px;
	padding-right: 16px;
}

.wpec_line_through {
	text-decoration: line-through;
}

.wpec-modal-open {
	background-color: #ff6428;
	border: 0;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
	min-height: 56px;
	padding-top: 18px;
	padding-bottom: 18px;
	padding-left: 30px;
	padding-right: 30px;
	color: #fff;
	box-shadow: 0 10px 24px rgba(255, 100, 40, 0.24);
	transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wpec-modal-open:hover {
	color: #fff;
}

.wpec-modal-open:hover {
	background-color: #e5531f;
}

.wpec-place-order-btn {
	background-color: rgba(37, 99, 235, 1);
	border-radius: 25px;
	font-weight: 700;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 16px;
	padding-right: 16px;
	color: rgba(255, 255, 255, 1);
}

.wpec-place-order-btn:hover {
	color: rgba(255, 255, 255, 1);
}

.wpec-place-order-btn:hover {
	background-color: rgba(37, 99, 235, 1);
}

.wpec-place-order-btn svg {
	display: none;
	-webkit-animation: wpec-spinner 1s linear infinite;
	animation: wpec-spinner 1s linear infinite;
	height: 20px;
	margin-right: 12px;
	margin-left: -4px;
	width: 20px;
}

.wpec-place-order-btn svg circle {
	opacity: 0.25;
  }

.wpec-modal-open:hover {
	background-color: #e5531f;
	background-image: none;
	color: #fff;
	box-shadow: 0 14px 28px rgba(229, 83, 31, 0.28);
	transform: translateY(-1px);
}

.wpec-modal-open:focus {
	background-color: #e5531f;
	background-image: none;
	color: #fff;
	outline: none;
	box-shadow: 0 0 0 4px rgba(255, 100, 40, 0.18);
}

/* .wpec-modal-open:hover:hover {
	color: rgba(255, 255, 255, 1);
}
.wpec-modal-open:hover:hover {
	background-color: rgba(29, 78, 216, 1);
} */

.wpec-place-order-btn:hover {
	background-color: rgba(29, 78, 216, 1);
	background-image: none;
	color: rgba(255, 255, 255, 1);
}
/*
.wpec-place-order-btn:hover:hover {
	color: rgba(255, 255, 255, 1);
}
.wpec-place-order-btn:hover:hover {
	background-color: rgba(29, 78, 216, 1);
}
*/

.wpec-modal {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	height: 100%;
	max-width: none;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	z-index: 99999999;
}

.wpec-modal-overlay {
	background-color: rgba(17, 24, 39, 1);
	height: 100%;
	opacity: 0.5;
	position: absolute;
	width: 100%;
}

.wpec-modal-container {
	background-color: rgba(255, 255, 255, 1);
	border-radius: 4px;
	margin-left: auto;
	margin-right: auto;
	max-height: 100%;
	overflow-y: auto;
	-webkit-box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	width: 91.666667%;
	z-index: 50;
}

@media (min-width: 768px) {
	.wpec-modal-container {
		max-width: 672px;
	}
}

.wpec-modal-content {
	padding-top: 16px;
	padding-bottom: 16px;
	padding-left: 24px;
	padding-right: 24px;
	text-align: left;
}

.wpec-modal-content-title {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	padding-bottom: 12px;
}

.wpec-modal-content-title p {
	font-weight: 700;
	font-size: 24px;
	line-height: 32px;
}

.wpec-modal-close {
	cursor: pointer;
	z-index: 50;
}

.wpec-modal-close svg {
	fill: currentColor;
	color: rgba(0, 0, 0, 1);
}

.wpec-modal-item-info-wrap > :not([hidden]) ~ :not([hidden]) {
	margin-right: calc(16px * 0);
	margin-left: calc(16px * calc(1 - 0));
}

.wpec-modal-item-info-wrap {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	font-size: 16px;
	line-height: 24px;
	padding-bottom: 12px;
}

.wpec-modal-item-thumbnail {
	-webkit-box-flex: 0;
	-ms-flex: none;
	flex: none;
}

.wpec-modal-item-thumbnail img {
	border-radius: 6px;
	object-fit: cover;
}

.wpec-modal-item-excerpt {
	display: none;
}

@media (min-width: 768px) {
	.wpec-modal-item-excerpt {
		display: block;
	}
}

.wpec-opacity-0 {
	opacity: 0;
}

.wpec-pointer-events-none {
	pointer-events: none;
}
.wpec-pointer-events-all{
	pointer-events: all !important;
}

.wpec-product-variations-wrapper {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.wpec-product-variations-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 640px) {
	 .wpec-product-variations-wrapper label, .wpec-product-variations-wrapper > div:last-child:nth-child(odd) {
		grid-column: span 2 / span 2;
	}
}

.wp-ppec-shortcode-container label.wpec_billing_label, .wp-ppec-shortcode-container label.wpec_shipping_label {
	font-size: 18px;
	line-height: 28px;
}

.wp-ppec-shortcode-container {
	display: grid;
	font-size: 16px;
	line-height: 24px;
	gap: 24px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.wp-ppec-shortcode-container [type='text'],
.wp-ppec-shortcode-container [type='email'],
.wp-ppec-shortcode-container [type='url'],
.wp-ppec-shortcode-container [type='number'],
.wp-ppec-shortcode-container [type='tel'],
.wp-ppec-shortcode-container [multiple],
.wp-ppec-shortcode-container textarea,
.wp-ppec-shortcode-container select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: #fff;
	border-color: #6b7280;
	border-width: 1px;
	border-radius: 0px;
	padding-top: 8px;
	padding-right: 12px;
	padding-bottom: 8px;
	padding-left: 12px;
	font-size: 16px;
	line-height: 24px;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.wp-ppec-shortcode-container input::-moz-placeholder, .wp-ppec-shortcode-container textarea::-moz-placeholder {
	color: #6b7280;
	opacity: 1;
}

.wp-ppec-shortcode-container input:-ms-input-placeholder, .wp-ppec-shortcode-container textarea:-ms-input-placeholder {
	color: #6b7280;
	opacity: 1;
}

.wp-ppec-shortcode-container input::-webkit-input-placeholder, .wp-ppec-shortcode-container textarea::-webkit-input-placeholder {
	color: #6b7280;
	opacity: 1;
}

.wp-ppec-shortcode-container input::-ms-input-placeholder, .wp-ppec-shortcode-container textarea::-ms-input-placeholder {
	color: #6b7280;
	opacity: 1;
}

.wp-ppec-shortcode-container input::placeholder, .wp-ppec-shortcode-container textarea::placeholder {
	color: #6b7280;
	opacity: 1;
}

.wp-ppec-shortcode-container ::-webkit-datetime-edit-fields-wrapper {
	padding: 0;
}

.wp-ppec-shortcode-container ::-webkit-date-and-time-value {
	min-height: 1.5em;
}

.wp-ppec-shortcode-container select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 8px center;
	background-repeat: no-repeat;
	background-size: 1.5em 1.5em;
	padding-right: 40px;
	-webkit-print-color-adjust: exact;
	color-adjust: exact;
}

.wp-ppec-shortcode-container [multiple] {
	background-image: initial;
	background-position: initial;
	background-repeat: unset;
	background-size: initial;
	padding-right: 12px;
	-webkit-print-color-adjust: unset;
	color-adjust: unset;
}

.wp-ppec-shortcode-container [type='checkbox'],
.wp-ppec-shortcode-container [type='radio'] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 0;
	-webkit-print-color-adjust: exact;
	color-adjust: exact;
	display: inline-block;
	vertical-align: middle;
	background-origin: border-box;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	height: 16px;
	width: 16px;
	color: #2563eb;
	background-color: #fff;
	border-color: #6b7280;
	border-width: 1px;
}

.wp-ppec-shortcode-container [type='checkbox'] {
	border-radius: 0px;
}

.wp-ppec-shortcode-container [type='radio'] {
	border-radius: 100%;
}

.wp-ppec-shortcode-container [type='checkbox']:checked,
.wp-ppec-shortcode-container [type='radio']:checked {
	border-color: transparent;
	background-color: currentColor;
	background-size: 100% 100%;
	background-position: center;
	background-repeat: no-repeat;
}

.wp-ppec-shortcode-container [type='checkbox']:checked {
	background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.wp-ppec-shortcode-container [type='radio']:checked {
	background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

.wp-ppec-shortcode-container [type='checkbox']:checked:hover,
.wp-ppec-shortcode-container [type='checkbox']:checked:focus,
.wp-ppec-shortcode-container [type='radio']:checked:hover,
.wp-ppec-shortcode-container [type='radio']:checked:focus {
	border-color: transparent;
	background-color: currentColor;
}

.wp-ppec-shortcode-container [type='checkbox']:indeterminate {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
	border-color: transparent;
	background-color: currentColor;
	background-size: 100% 100%;
	background-position: center;
	background-repeat: no-repeat;
}

.wp-ppec-shortcode-container [type='checkbox']:indeterminate:hover,
.wp-ppec-shortcode-container [type='checkbox']:indeterminate:focus {
	border-color: transparent;
	background-color: currentColor;
}

.wp-ppec-shortcode-container [type='file'] {
	background: unset;
	border-color: inherit;
	border-width: 0;
	border-radius: 0;
	padding: 0;
	font-size: unset;
	line-height: inherit;
}

.wp-ppec-shortcode-container [type='file']:focus {
	outline: 1px auto -webkit-focus-ring-color;
}

.wp-ppec-shortcode-container label {
	display: block;
	font-size: 16px;
	line-height: 24px;
}

.wp-ppec-shortcode-container select, .wp-ppec-shortcode-container input[type='text'], .wp-ppec-shortcode-container input[type='email'], .wp-ppec-shortcode-container input[type='number'], .wp-ppec-shortcode-container input[type='url'], .wp-ppec-shortcode-container input[type='tel'] {
	border-radius: 6px;
	border-style: solid;
	display: block;
	margin-top: 4px;
	width: 100%;
}

.wp-ppec-shortcode-container input[type='radio'],
.wp-ppec-shortcode-container input[type='checkbox'] {
	border-style: solid;
}

.wp-ppec-shortcode-container input[type='radio'] {
	color: rgba(37, 99, 235, 1);
}

.wp-ppec-shortcode-container input[type='checkbox'] {
	color: rgba(37, 99, 235, 1);
}

.wp-ppec-shortcode-container input[type='radio']:before, .wp-ppec-shortcode-container input[type='radio']:after,
.wp-ppec-shortcode-container input[type='checkbox']:before,
.wp-ppec-shortcode-container input[type='checkbox']:after {
	display: none;
}

.wp-ppec-shortcode-container input[type='checkbox'] {
	border-radius: 4px;
}

/* Small Spinner */

@-webkit-keyframes wpec-spinner {
	to {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

@keyframes wpec-spinner {
	to {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

.wpec-custom-number-input {
	background-color: transparent;
	border-radius: 8px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-ms-flex-direction: row;
	flex-direction: row;
	height: 40px;
	margin-top: 4px;
	position: relative;
	width: 144px;
}

.wpec-custom-number-input button {
	background-color: rgba(255, 255, 255, 1);
	border-color: rgba(107, 114, 128, 1);
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	border-style: solid;
	border-width: 1px;
	cursor: pointer;
	height: 100%;
	outline: 2px solid transparent;
	outline-offset: 2px;
	padding: 8px;
}

.wpec-custom-number-input button:hover {
	background-color: rgba(255, 255, 255, 1);
}

.wpec-custom-number-input button:hover {
	background-color: rgba(255, 255, 255, 1);
	background-image: none;
}
/*
.wpec-custom-number-input button:hover:hover {
	background-color: rgba(255, 255, 255, 1);
}
*/
.wpec-custom-number-input button:first-of-type {
	border-radius: 6px;
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	border-right-width: 0px;
}

.wpec-custom-number-input button:last-of-type {
	border-radius: 6px;
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
	border-left-width: 0px;
}

.wpec-custom-number-input button:focus {
	outline: none !important;
}

.wpec-custom-number-input button span {
	font-weight: 100;
	font-size: 24px;
	line-height: 32px;
	line-height: 24px;
	margin: auto;
}

.wpec-custom-number-input input[type='number'] {
	border-radius: 0px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	margin: 0px;
	outline: 2px solid transparent;
	outline-offset: 2px;
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.wpec-custom-number-input input[type='number']:focus {
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.wpec-custom-number-input input[type='number'] {
	text-align: center;
	width: 100%;
	-moz-appearance: textfield;
}

.wpec-custom-number-input input[type='number']::-webkit-inner-spin-button, .wpec-custom-number-input input[type='number']::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wpec-custom-number-input input[type='number']:focus {
	outline: none !important;
}

.wpec-custom-number-input .wp-ppec-form-error-msg {
	-webkit-box-flex: 0;
	-ms-flex: none;
	flex: none;
}

.wpec_address_wrap {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.wpec_product_shipping_handle{
	margin-bottom: 22px;
}

.wpec_address_wrap.shipping_enabled {
	gap: 24px;
}

.wpec_billing_address_container,
.wpec_shipping_address_container,
.wpec_billing_user_info {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
	.wpec_billing_user_info,
	.wpec_billing_address_container,
	.wpec_shipping_address_container
	{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wpec_billing_user_info > div:last-child:nth-of-type(odd),
	.wpec_billing_address_container > div:last-child:nth-of-type(odd),
	.wpec_shipping_address_container > div:last-child:nth-of-type(odd)
	{
		grid-column: span 2 / span 2;
	}

	.wpec_billing_user_info label,
	.wpec_address_wrap .wpec_billing_address_container label,
	.wpec_address_wrap .wpec_shipping_address_container label
	{
		grid-column: span 2 / span 2;
	}

	.wpec_address_wrap.shipping_enabled {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wpec_address_wrap.shipping_enabled .wpec_billing_address_container,
	.wpec_address_wrap.shipping_enabled .wpec_shipping_address_container {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.wpec_address_wrap.shipping_enabled .wpec_billing_address_container label,
	.wpec_address_wrap.shipping_enabled .wpec_shipping_address_container label {
		grid-column: span 1 / span 1;
	}

	.wpec_address_wrap.shipping_enabled .wpec_billing_user_info > div:last-child:nth-of-type(odd),
	.wpec_address_wrap.shipping_enabled .wpec_billing_address_container > div:last-child:nth-of-type(odd),
	.wpec_address_wrap.shipping_enabled .wpec_shipping_address_container > div:last-child:nth-of-type(odd)
	{
		grid-column: span 1 / span 1;
	}

	.wpec_address_wrap.shipping_enabled .wpec_product_shipping_handle {
		grid-column: span 2 / span 2;
		margin-bottom: 0;
	}
}

.wpec-out-of-stock {
	font-weight: 700;
}
/* Product template 1 CSS */
.wpec-product-item-template-1 .wpec-product-item-thumbnail{
	width: 75px;
	height: 75px;
	float: left;
	margin-right: 10px;
}
.wpec-product-item-template-1 .wpec-product-item-thumbnail img{
	width:75px;
	height: 75px;
	object-fit: cover;
}

@media (max-width:768px)
{
	.wpec-product-item-template-1 .wpec-entry-title{
		line-height: 40px;
	}
}

/* Product template 3 CSS */
.wpec-product-item-thumbnail-3 {
	text-align: center;
	margin-top: 10px;
	margin-bottom: 10px;
}

.wpec-post-title-template-3 {
	font-size: 16px;
	margin-bottom: 0px;
}

.wpec-product-item-template-3 {
	width: 250px !important;
	border: 1px solid #E7E9EB;
	-webkit-box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
	margin-top: 10px;
	margin-bottom: 10px;
	padding: 15px;
	text-align: center;
}

.wpec-product-inner-cont-template-3 {
	
}

.wpec-product-inner-cont-template-3 .wpec-modal-open {
	background-color: #f0f0f0;
	border: 3px solid #2D3140;
	border-radius: 4px;
	font-weight: 700;
	padding-top: 8px;
	padding-bottom: 8px;
	padding-left: 16px;
	padding-right: 16px;
	color: #000;
}

.wpec-product-inner-cont-template-3 .wpec-modal-open:hover {
	background-color: #2D3140;
	color: #ffffff;
	cursor: pointer;
}


/* Start of 'Thank You' page shortcode related CSS */
.wpec-order-data-box {
 display: flex;
 border-style: solid;
 border-color: lightgrey;
 border-width: 1px 0 0 1px;
 width: 100%;
}

.wpec-order-data-box-col {
	border-style: solid;
	border-color: lightgrey;
	border-width: 0 1px 1px 0;
	word-break: break-all;
	flex-grow: 1;
	padding: 15px;
}

.wpec-order-data-box-col :first-child {
	font-weight: bold;
	margin-bottom: 10px;
	margin-right: 10px;
}

@media screen and (max-width: 768px) {
	.wpec-order-data-box {
		flex-direction: column;
	}
}

.wpec-order-details-table,
.wpec-order-downloads-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid lightgray;
}

.wpec-order-details-table td,
.wpec-order-details-table th,
.wpec-order-downloads-table td,
.wpec-order-downloads-table th {
	padding: 15px;
	border-top: 1px solid lightgray;
	border-bottom: 1px solid lightgray;
}

.wpec-order-shipping-address,
.wpec-order-billing-address {
	padding: 15px;
	border: 1px solid lightgray;
	white-space: pre-line;
}
/* End of 'Thank You' page shortcode related CSS */

/* WPEC modal polish */
.wpec-modal-overlay {
	background: rgba(6, 10, 24, 0.78);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	opacity: 1;
}

.wpec-modal-container {
	width: min(720px, calc(100% - 32px));
	max-width: 720px;
	background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 24px;
	box-shadow: 0 32px 80px rgba(2, 6, 23, 0.34);
	overflow: hidden;
}

.wpec-modal-content {
	padding: 28px;
}

.wpec-modal-content-title {
	align-items: center;
	padding-bottom: 18px;
	margin-bottom: 22px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.wpec-modal-content-title p {
	margin: 0;
	color: #0f172a;
	font-size: 28px;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.wpec-modal-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wpec-modal-close:hover {
	background: #fff;
	box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
	transform: translateY(-1px);
}

.wpec-modal-close svg {
	color: #0f172a;
}

.wpec-modal-item-info-wrap {
	align-items: flex-start;
	gap: 18px;
	padding-bottom: 22px;
	margin-bottom: 22px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.wpec-modal-item-thumbnail img {
	width: 108px;
	height: 108px;
	border-radius: 18px;
	box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.wpec-modal-item-excerpt {
	display: block;
	margin: 0;
	color: #475569;
	font-size: 15px;
	line-height: 1.7;
}

.wpec-modal .wpec-modal-item-info-wrap {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	align-items: start;
	gap: 20px;
}

.wpec-modal .wpec-modal-item-thumbnail {
	width: 108px;
}

.wpec-modal .wpec-modal-item-summary-price {
	display: none !important;
}

.wpec-modal .wpec-modal-item-excerpt {
	display: block;
	min-width: 0;
	padding-top: 4px;
}

.wp-ppec-shortcode-container {
	margin: 0;
}

.wpec_billing_user_info {
	display: grid;
	gap: 16px;
}

.wp-ppec-shortcode-container label {
	display: block;
	margin-bottom: 8px;
	color: #0f172a;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.wp-ppec-shortcode-container input[type="text"],
.wp-ppec-shortcode-container input[type="email"],
.wp-ppec-shortcode-container input[type="number"],
.wp-ppec-shortcode-container select,
.wp-ppec-shortcode-container textarea {
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
	color: #0f172a;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wp-ppec-shortcode-container input[type="text"]:focus,
.wp-ppec-shortcode-container input[type="email"]:focus,
.wp-ppec-shortcode-container input[type="number"]:focus,
.wp-ppec-shortcode-container select:focus,
.wp-ppec-shortcode-container textarea:focus {
	border-color: rgba(255, 100, 40, 0.7);
	box-shadow: 0 0 0 4px rgba(255, 100, 40, 0.12);
	outline: 0;
}

.wp-ppec-button-container {
	padding-top: 6px;
}

.wpec-modal .wp-ppec-button-container {
	padding-top: 0;
}

.wpec-price-container {
	margin-bottom: 18px;
	color: #0f172a;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.wpec-modal .wpec-price-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 20px;
	padding: 18px 20px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 18px;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.04) 0%, rgba(255, 255, 255, 0.92) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 32px rgba(15, 23, 42, 0.08);
}

.wpec-modal .wpec-price-container::before {
	content: "Price";
	color: #64748b;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.wpec-modal .wpec-price-container .wpec_line_through {
	opacity: 0.6;
}

.wpec-payment-buttons-container {
	margin-top: 4px;
}

.wp-ppec-form-error-msg {
	margin-top: 6px;
	font-size: 13px;
}

@media (max-width: 767px) {
	.wpec-modal-container {
		width: calc(100% - 20px);
		border-radius: 20px;
	}

	.wpec-modal-content {
		padding: 20px;
	}

	.wpec-modal .wpec-modal-content {
		padding: 18px;
	}

	.wpec-modal .wpec-modal-content-title {
		padding-bottom: 14px;
		margin-bottom: 16px;
	}

	.wpec-modal-content-title p {
		font-size: 24px;
	}

	.wpec-modal-item-info-wrap {
		flex-direction: column;
	}

	.wpec-modal-item-thumbnail img {
		width: 88px;
		height: 88px;
	}

	.wpec-modal .wpec-modal-item-info-wrap {
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 12px 14px;
		padding-bottom: 16px;
		margin-bottom: 16px;
	}

	.wpec-modal .wpec-modal-item-thumbnail {
		width: 88px;
	}

	.wpec-modal .wpec-modal-item-summary-price {
		display: flex !important;
		min-height: 88px;
		height: 88px;
		margin: 0;
		padding: 12px 16px;
		align-items: flex-end;
		flex-direction: column;
		justify-content: flex-start;
		gap: 8px;
	}

	.wpec-modal .wpec-modal-item-summary-price::before {
		content: "Price";
		color: #64748b;
		font-size: 10px;
		font-weight: 800;
		letter-spacing: 0.16em;
		text-transform: uppercase;
	}

	.wpec-modal .wpec-modal-item-excerpt {
		grid-column: 1 / -1;
		padding-top: 0;
		font-size: 14px;
		line-height: 1.55;
	}

	.wpec-modal .wpec-price-container {
		align-items: flex-start;
		flex-direction: column;
		padding: 16px 18px;
	}

	.wpec-modal .wp-ppec-button-container > .wpec-price-container {
		display: none;
	}

	.wpec-modal .wpec-payment-buttons-container {
		margin-top: 0;
	}
}
