.page-purchase-logo h1,
.page-purchase-logo .price-table-section h4 {
	font-size: 24px;
	font-weight: 500;
}

.page-purchase-logo .cols {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.page-purchase-logo h1 {
	flex-basis: 100%;
}

.page-purchase-logo .left-col {
	flex: 350px 5 0;
}
.page-purchase-logo .right-col {
	flex: 300px 1 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.page-purchase-logo .card {
	background-color: #fff;
	padding: 30px;
	border-radius: 5px;

	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.page-purchase-logo .card h4 {
	flex-basis: 100%;
	font-size: 18px;
	font-weight: 500;
	padding-bottom: 10px;
	border-bottom: solid 1px rgba(170, 170, 170, 0.2);
}

.page-purchase-logo .card * + h4 {
	margin-top: 10px;
}

/* form */

.page-purchase-logo .input-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
	position: relative;
}

.page-purchase-logo .input-group label.instructions {
	opacity: 0.5;
	font-size: 12px;
	font-weight: 600;
}
.page-purchase-logo .input-group span {
	opacity: 0.7;
	font-size: 16px;
	font-weight: 600;
	position: absolute;
	right: 20px;
	bottom: 0;
	line-height: 70px;
}

.page-purchase-logo .upload-loading {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;

	position: absolute;
	width: 100%;
	height: 100%;
	background: #fff;
	z-index: 1;

	color: var(--primary-color);
	font-size: 14px;
	font-weight: 700;
}
.page-purchase-logo .upload-loading p {
	padding: 0;
}

.page-purchase-logo :not(.input-group) > :is(input[type="number"], label:has(input[type="radio"])) {
	flex: 150px;
}
.page-purchase-logo :is(input[type="number"], label:has(input[type="radio"])) {
	height: 70px;
	border: solid 2px #ededed;
	border-radius: 5px;
	padding: 15px 20px;

	color: rgba(34, 34, 34, 0.7);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}
.page-purchase-logo :is(input, label:has(input[type="radio"])):hover,
.page-purchase-logo :is(input, label:has(input[type="radio"])):focus {
	outline: 0;
	border-color: var(--primary-color);
}

.page-purchase-logo input::-webkit-outer-spin-button,
.page-purchase-logo input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.page-purchase-logo input[type="number"] {
	-moz-appearance: textfield;
}

/* file upload */
.page-purchase-logo .drop {
	flex: 1;
	min-height: 120px;
	border: #aaa 1px dashed;
	border-radius: 5px;
	position: relative;
	overflow: hidden;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
}
.page-purchase-logo .drop.dragged-over {
	border-color: #555;
	background-color: #f7f7f7;
}

.page-purchase-logo input#logo-upload-file {
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	top: 0;
	opacity: 0;
	cursor: pointer;
}

.page-purchase-logo .drop .info {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;

	color: #555555;
	font-size: 14px;
	font-weight: 400;
	text-align: center;
}

.page-purchase-logo .drop .info svg {
	width: 18px;
	height: 18px;
}

.page-purchase-logo .drop .info p {
	font-size: 12px;
	line-height: 1;
	padding: 0;
}

.page-purchase-logo .drop .info p:first-of-type {
	font-size: 18px;
}

.page-purchase-logo .drop .info .browse {
	color: var(--primary-color);
	font-weight: 400;
}

.page-purchase-logo .upload-error {
	color: red;
}
.page-purchase-logo .upload-error:empty {
	display: none;
}

/* radio buttons */
.page-purchase-logo input[type="radio"] {
	display: none;
}
.page-purchase-logo label:has(input[type="radio"]) {
	display: flex;
	justify-content: center;
	align-items: center;

	cursor: pointer;
}
.page-purchase-logo label:has(input[type="radio"]:checked) {
	color: var(--primary-color);
	border-color: var(--primary-color);
}

/* preview */

.page-purchase-logo .preview-img-container {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: repeating-conic-gradient(#ddd 0% 25%, #f0f0f0 0% 50%) 50% / 15px 15px;
	border: solid 2px #ededed;
	border-radius: 5px;
	padding: 20px;
}
.page-purchase-logo .preview-img-container:empty {
	background: repeating-conic-gradient(rgba(221, 221, 221, 0.4) 0% 25%, rgba(240, 240, 240, 0.4) 0% 50%) 50% / 15px 15px;
	/* display: none; */
}
.page-purchase-logo .preview-img-container img {
	width: 100%;
	height: 100%;
	filter: drop-shadow(0px 0px 3px rgba(34, 34, 34, 0.25));
	object-fit: contain;
}
.page-purchase-logo .preview-file-name {
}

/* total */
.page-purchase-logo .units,
.page-purchase-logo .total {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}

.page-purchase-logo .total span {
	font-size: 25px;
	font-weight: 500;
}

.page-purchase-logo .btn {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	border-top-right-radius: 7px;
	border-bottom-right-radius: 7px;
}

.page-purchase-logo .btn img {
	height: 100%;
	aspect-ratio: 1;
	position: absolute;
	display: block;
	right: 0;
	top: 0;
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
	background-color: rgba(255, 255, 255, 0.2);
	padding: 5px;
}

/* Price tables */

.page-purchase-logo .price-table-section {
	width: 100%;

	background-color: #fff;
	margin-top: 50px;
	margin-bottom: -50px;
	padding-bottom: 50px;
}

.page-purchase-logo .price-table-section .container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.page-purchase-logo .price-table-section .table-container {
	overflow-x: auto;
}

.page-purchase-logo .price-table-section table {
	width: 100%;
	line-height: 55px;
	text-align: right;
	border-spacing: 0;
	margin-bottom: 10px;
	white-space: nowrap;
}

.page-purchase-logo .price-table-section table :is(th, td):first-of-type {
	text-align: left;
}

.page-purchase-logo .price-table-section table thead tr,
.page-purchase-logo .price-table-section table tbody tr:nth-child(even) {
	background-color: #f7f7f7;
}

.page-purchase-logo .price-table-section table :is(th, td) {
	border-top: solid 1px rgba(170, 170, 170, 0.2);
	padding-inline: 20px;
}

/* Checkout */

.woocommerce-checkout .cart_item .preview-logo-container {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: repeating-conic-gradient(#ddd 0% 25%, #f0f0f0 0% 50%) 50% / 10px 10px;
	border: solid 1px #ededed;
	border-radius: 5px;
	padding: 5px;
}
