.ideehbox-custom-order-wrap {
	padding-bottom: 32px;
}

.ideehbox-notice-success {
	background: #edfaef;
	border: 1px solid #3ba444;
	padding: 16px 20px;
	margin-bottom: 14px;
	border-radius: 16px;
}

.ideehbox-custom-order-form {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 64px;
	align-items: start;
	max-width: 100%;
}

.ideehbox-form-main {
	display: grid;
	gap: 0;
}

.ideehbox-field-group {
	border-bottom: 1px solid #e6e6e6;
	padding: 32px 0;
	background: #fff;
}

.ideehbox-field-group:last-child {
	border-bottom: none;
}

.ideehbox-field-group:first-child {
	padding-top: 0;
}

.ideehbox-field-group:last-child {
	padding-bottom: 0;
}

.ideehbox-field-group h4 {
	margin: 0 0 12px;
	font-size: 16px;
}

.ideehbox-field-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ideehbox-field-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.ideehbox-field-group label {
	display: flex;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
}

.ideehbox-group-title {
	font-size: 18px;
	line-height: 26px;
	font-weight: 500;
	margin-bottom: 24px;
	color: #0a0a0a;
	display: flex;
	gap: 10px;
	align-items: center;

	&::before {
		content: "";
		width: 8px;
		height: 8px;
		border-radius: 4px;
		background-color: #FBB12F;
		min-width: 8px;
	}
}

.ideehbox-group-title--more-margin {
	margin-bottom: 36px;
}

.ideehbox-field-group input:not([type="radio"]),
.ideehbox-field-group select {
	font: inherit;
	padding: 24.5px 12px !important;
	border: 1px solid #cbd5e1;
	border-radius: 20px;
}

.ideehbox-field-group input[type="number"] {
	appearance: textfield;
}

.ideehbox-material-field {
	position: relative;
	display: flex;
	flex-direction: column;
}

.ideehbox-material-label {
	position: absolute;
	top: -10px;
	right: 24px;
	background: #fff;
	padding: 0 10px;
	font-size: 16px;
	font-weight: 500;
	color: #0A0A0A;
	line-height: 1.2;
	z-index: 1;
}

.ideehbox-material-field input {
	padding-top: 14px !important;
}

.ideehbox-material-field--with-suffix input {
	padding-left: 44px !important;
}

.ideehbox-input-suffix {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #6C6C6C;
	font-size: 12px;
	font-weight: 500;
	pointer-events: none;
	padding: 6px 16px;
	border-radius: 8px;
	background-color: #F0F0F0;
	color: #6C6C6C;
}

.ideehbox-quantity-control {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 100%;
}

.ideehbox-quantity-control input[type="number"] {
	width: 100%;
	text-align: center;
	padding: 24.5px 38px;
	min-width: 265px;
	border-radius: 20px;
	appearance: textfield;
}

.ideehbox-quantity-input-wrapper {
	display: flex;
	flex-direction: column;
	width: 300px;
}

.ideehbox-qty-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 10px;
	color: #0a0a0a;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #F0F0F0;
	transition: 0.14s;
}

.ideehbox-qty-btn:hover {
	background-color: #dcdcdc;
}

.ideehbox-qty-btn[data-direction="minus"] {
	right: 14px;
}

.ideehbox-qty-btn[data-direction="plus"] {
	left: 14px;
}

#ideehbox_quantity::-webkit-outer-spin-button,
#ideehbox_quantity::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

#ideehbox_quantity {
	appearance: textfield;
	-moz-appearance: textfield;
}

.ideehbox-radio-group {
	display: flex;
	align-items: center;
	gap: 56px;
	margin-top: 4px;
	flex-wrap: nowrap;
	justify-content: flex-start;
}

.ideehbox-radio-option {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	font-weight: 500 !important;
	cursor: pointer;
	min-width: 75px;
}

.ideehbox-radio-option-label {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	font-size: 14px;
	font-weight: 500;
	color: #0A0A0A;
	line-height: 1.4;
}

.ideehbox-option-price-hint {
	margin-right: 6px;
	font-size: 12px;
	font-weight: 400;
	color: #6C6C6C;
}

.ideehbox-radio-option input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid #dcdcdc;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin: 0;
	position: relative;
}

.ideehbox-radio-option input[type="radio"]:checked {
	border-color: #0a0a0a;
}

.ideehbox-radio-option input[type="radio"]::after {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fbb12f;
	transform: scale(0);
	transition: transform 0.15s ease;
}

.ideehbox-radio-option input[type="radio"]:checked::after {
	transform: scale(1);
}

.ideehbox-inline-radio-field {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 20px;
	flex-wrap: nowrap;
	margin-bottom: 12px;
}

.ideehbox-inline-radio-field-label {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	color: #0A0A0A;
	line-height: 1.5;
	min-width: 120px;
}

.ideehbox-inline-radio-field:last-child {
	margin-bottom: 0;
}

.ideehbox-inline-radio-field > .ideehbox-radio-group {
	margin-top: 0;
	margin-right: 40px;
	padding-left: 8px;
}

.ideehbox-box-type-group {
	gap: 12px;
	align-items: stretch;
	flex-wrap: wrap;
}

.ideehbox-box-type-option {
	position: relative;
	flex: 1;
	min-width: 230px;
}

.ideehbox-box-type-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ideehbox-box-type-card {
	border: 1px solid #dcdcdc;
	border-radius: 16px;
	background: #fff;
	padding: 14px 14px 14px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.ideehbox-box-type-icon {
	width: 76px;
	height: 76px;
	min-width: 66px;
	border-radius: 10px;
	background: #f8f8f8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #4b5563;
}

.ideehbox-box-type-icon img {
	width: 54px;
	height: 54px;
	object-fit: contain;
	display: block;
}

.ideehbox-box-type-text {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	flex: 1;
}

.ideehbox-box-type-indicator {
	width: 20px;
	height: 20px;
	min-width: 20px;
	border-radius: 50%;
	border: 1px solid #d1d5db;
	background: #fff;
	position: relative;
}

.ideehbox-box-type-indicator::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: #fbb12f;
	transform: scale(0);
	transition: transform 0.14s ease;
}

.ideehbox-box-type-option input[type="radio"]:checked + .ideehbox-box-type-card {
	border-color: #FBB12F;
	background: #fffbf2;
	box-shadow: 0 0 0 2px rgba(251, 177, 47, 0.22);
}

.ideehbox-box-type-option input[type="radio"]:checked + .ideehbox-box-type-card .ideehbox-box-type-indicator {
	border-color: #111827;
}

.ideehbox-box-type-option input[type="radio"]:checked + .ideehbox-box-type-card .ideehbox-box-type-indicator::after {
	transform: scale(1);
}

.ideehbox-box-type-option input[type="radio"]:checked + .ideehbox-box-type-card .ideehbox-box-type-icon {
	color: #0a0a0a;
	background: #fff;
}

.ideehbox-box-type-option input[type="radio"]:focus-visible + .ideehbox-box-type-card {
	outline: 2px solid #0a0a0a;
	outline-offset: 2px;
}

.ideehbox-file-field {
	grid-column: 1 / -1;
}

.ideehbox-file-field input[type="file"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	pointer-events: none;
}

.ideehbox-file-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 16px;
	border: 0;
	border-radius: 10px;
	background: #fbb12f;
	color: #0a0a0a;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}

.ideehbox-file-upload-box {
	width: 100%;
	min-height: 68px;
	border: 1px solid #dcdcdc;
	border-radius: 20px;
	background: #fff;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	flex-direction: row-reverse;
	justify-content: space-between;
	gap: 12px;
}

.ideehbox-file-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.ideehbox-file-empty {
	color: #7b7b7b;
	font-size: 13px;
}

.ideehbox-file-item {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 8px;
	background: #f2f2f2;
	border-radius: 10px;
	padding: 8px 10px;
}

.ideehbox-file-name {
	font-weight: 500;
}

.ideehbox-file-remove {
	border: 0;
	background: transparent;
	color: #d13d30;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.ideehbox-file-remove svg {
	display: block;
}

.ideehbox-preview-sidebar {
	background: #fff;
	position: sticky;
	top: 90px;
}

.ideehbox-sidebar-box {
	border-radius: 27px;
	background: #F7F7F7;
	padding: 20px;
	margin-bottom: 16px;
}

.ideehbox-preview-head {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
}

.ideehbox-preview-head img {
	width: 120px;
	height: 120px;
	object-fit: contain;
	border-radius: 8px;
	background: #F0F0F0;
	padding: 26px;
}

.ideehbox-preview-intro h4 {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 500;
}

.ideehbox-preview-head p {
	margin: 0;
	font-size: 13px;
	color: #475569;
}

.ideehbox-preview-head p:not(:last-child) {
	margin-bottom: 12.5px;
}

.ideehbox-info-with-icon {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ideehbox-info-with-icon__title {
	color: #0A0A0A;
	font-weight: 500;
}

.ideehbox-info-with-icon__value {
	color: #6C6C6C;
	font-weight: 400;
}

.ideehbox-info-with-icon img {
	width: 18px;
	height: 18px;
	padding: 0;
	background-color: transparent;
	object-fit: cover;
	border-radius: 4px;
}

.ideehbox-preview-table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0;
	font-size: 13px;
}

.ideehbox-preview-table th,
.ideehbox-preview-table td {
	padding: 12px 4px;
	vertical-align: top;
	text-align: right;
}

.ideehbox-preview-table th {
	width: 80px;
	color: #334155;
	white-space: nowrap;
}

.ideehbox-preview-table th::before {
	content: "";
	display: inline-block;
	margin-left: 6px;
	width: 8px;
	height: 8px;
	border-radius: 4px;
	background-color: #FBB12F;
	min-width: 8px;
}

.ideehbox-preview-table td {
	text-align: left;
	font-size: 16px;
	color: #6C6C6C;
}

.ideehbox-preview-cell-value {
	display: inline;
}

.ideehbox-preview-cell-addon {
	display: inline;
	color: #0A0A0A;
	font-size: 14px;
	font-weight: 500;
}

.ideehbox-preview-price-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 16px;
	margin: 24px 0 10px;
	font-size: 15px;
	background-color: #0A0A0A;
	border-radius: 16px;
	gap: 16px 20px;
	flex-wrap: wrap;
}

.ideehbox-preview-price-row span {
	font-weight: 500;
	font-size: 16px;
	color: #fff;
}

#ideehbox_preview_price .ideehbox-preview-price-amount {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-weight: 500;
	font-size: 20px;
	color: #FBB12F;
}

#ideehbox_preview_price {
	margin-right: auto;
}

#ideehbox_preview_price .ideehbox-preview-price-currency {
	font-weight: 400;
	font-size: 16px;
	color: #FBB12F;
}

.ideehbox-preview-price-currency {
	font-size: 14px;
	font-weight: 500;
	color: #fff;
}

.ideehbox-preview-message {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px;
	margin-top: 24px;
	font-size: 13px;
	line-height: 1.8;
	color: #334155;
}

.ideehbox-submit-btn {
	width: 100% !important;
	margin-top: 16px;
	max-width: 100%;
  text-align: center;
  justify-content: center;
	margin-top: 12px;
	padding: 11px 14px;
	font: inherit;
	border: 0;
	border-radius: 9px;
	cursor: pointer;
}

@media (max-width: 900px) {
	.ideehbox-custom-order-form {
		grid-template-columns: 1fr;
	}

	.ideehbox-preview-sidebar {
		position: static;
	}

	.ideehbox-field-grid-3 {
		display: grid;
		grid-template-columns: repeat(2, minmax(140px, 1fr));
	}
}

@media (max-width: 640px) {
	.ideehbox-field-grid,
	.ideehbox-field-grid-3 {
		grid-template-columns: 1fr;
	}

	.ideehbox-inline-radio-field {
		flex-direction: column !important;
		align-items: flex-start;
	}

	.ideehbox-file-upload-box {
		flex-direction: column;
		align-items: stretch;
	}

	.ideehbox-file-button {
		width: 100%;
	}

	.ideehbox-box-type-group {
		width: 100%;
	}

	.ideehbox-inline-radio-field.ideehbox-box-type-field > .ideehbox-radio-group {
		margin-right: 0;
		padding-left: 0;
	}
}

.ideehbox-file-field--align-centered {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ideehbox-hidden {
	display: none !important;
}

@media screen and (max-width: 600px) {
	.ideehbox-box-material-group .ideehbox-radio-group {
		flex-wrap: wrap;
		gap: 30px;
		margin-top: 20px;
	}

	.ideehbox-box-material-group .ideehbox-radio-group .ideehbox-radio-option {
		width: 100%;
	}

	.ideehbox-inline-radio-field-label + .ideehbox-radio-group {
		margin-top: 10px;
	}
}
