.contract-withdrawal {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 720px;
	width: 100%;
}

.contract-withdrawal *,
.contract-withdrawal *::before,
.contract-withdrawal *::after {
	box-sizing: border-box;
}

.contract-withdrawal-form {
	margin: 0 auto;
	width: 100%;
	padding: 30px 0;
}

.contract-withdrawal-form p {
	margin: 0 0 18px;
}

.contract-withdrawal-form label,
.contract-withdrawal-products-title {
	color: #1e1e1e;
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 8px;
}

.contract-withdrawal-input,
.contract-withdrawal-form input[type="text"],
.contract-withdrawal-form input[type="email"],
.contract-withdrawal-form input[type="number"],
.contract-withdrawal-form textarea {
	background: #fff;
	border: 1px solid #949494;
	border-radius: 4px;
	color: #1e1e1e;
	display: block;
	font-size: 16px;
	line-height: 1.5;
	min-height: 46px;
	padding: 10px 12px;
	width: 100%;
}

.contract-withdrawal-form input[type="number"]{
	text-align: center;
	text-align: center;
    max-width: 60px;
	padding: 6px 6px;
	font-size: 12px;
	min-height: 32px;
}

.contract-withdrawal-form textarea {
	min-height: 140px;
	resize: vertical;
}



.contract-withdrawal-form input[readonly] {
	background: #f6f7f7;
}

.contract-withdrawal-products {
	margin: 22px 0;
}

.contract-withdrawal-products-title {
	margin-bottom: 12px;
}

.contract-withdrawal-product {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	margin: 0 0 12px;
	padding: 14px;
}

.contract-withdrawal-product.is-disabled {
	color: black;
	background: #d3d2d2;
    filter: opacity(0.8);
}

.contract-withdrawal-product-main {
	align-items: flex-start;
	display: flex;
	gap: 12px;
}

.contract-withdrawal-product-content {
	align-items: flex-start;
	display: flex;
	flex: 1 1 auto;
	gap: 16px;
	justify-content: space-between;
	min-width: 0;
}

.contract-withdrawal-product-content > input[type="checkbox"] {
	accent-color: #000;
	border-radius: 5px;
	cursor: pointer;
	flex: 0 0 auto;
	flex-shrink: 0;
	height: 18px;
	margin-top: 0;
	width: 18px;
}

.contract-withdrawal-product-info {
	flex: 1 1 auto;
	min-width: 0;
}

.contract-withdrawal-product-title {
	color: #1e1e1e;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.contract-withdrawal-product-meta {
	align-items: flex-end;
	display: flex;
	flex: 0 0 140px;
	flex-direction: column;
	text-align: right;
}

.contract-withdrawal-product-note {
	color: #646970;
	font-size: 13px;
	line-height: 1.4;
	margin-top: 0;
}

.contract-withdrawal-product-qty {
	width: 100%;
}

.contract-withdrawal-product-qty label {
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 6px;
}

.contract-withdrawal-product-qty input {
	max-width: 110px;
	margin-left: auto;
}

.contract-withdrawal-status,
.contract-withdrawal-notice,
.contract-withdrawal-message {
	border-radius: 4px;
	line-height: 1.5;
	margin: 14px 0;
}

.contract-withdrawal-status {
	color: #50575e;
}

.contract-withdrawal-status.is-error,
.contract-withdrawal-notice-error {
	background: #fcf0f1;
	color: #8a2424;
	padding: 10px 12px;
}

.contract-withdrawal-button,
.contract-withdrawal-form .wp-element-button {
	cursor: pointer;
	position: relative;
	text-align: center;
	text-decoration: none;
}

.contract-withdrawal-button:not(.has-custom-button-class),
.contract-withdrawal-form .wp-element-button:not(.has-custom-button-class) {
	border: 0;
	border-radius: 5px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	min-height: 46px;
	padding: 12px 24px;
	background: gray;
	color: white;
	transition: filter 0.3s ease;
	margin-left: auto;
	display: block;
	margin-right: auto;
}

.contract-withdrawal-button:not(.has-custom-button-class):hover,
.contract-withdrawal-form .wp-element-button:not(.has-custom-button-class):hover {
	filter: brightness(0.95);
}

.contract-withdrawal-button:disabled,
.contract-withdrawal-form .wp-element-button:disabled {
	cursor: not-allowed;
}

.contract-withdrawal-button.is-loading,
.contract-withdrawal-form .wp-element-button.is-loading {
	color: transparent !important;
	pointer-events: none;
}

.contract-withdrawal-button.is-loading::after,
.contract-withdrawal-form .wp-element-button.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	color: #ffffff;
	animation: contract-withdrawal-spin 0.75s linear infinite;
}

@keyframes contract-withdrawal-spin {
	to {
		transform: rotate(360deg);
	}
}

.contract-withdrawal-note{
	color: #646970;
	font-size: 12px;
	line-height: 1.4;
	margin-top: 4px;
}

@media (max-width: 600px) {
	.contract-withdrawal {
		max-width: 100%;
	}

	.contract-withdrawal-product {
		padding: 12px;
	}

	.contract-withdrawal-product-content {
		display: block;
	}

	.contract-withdrawal-product-meta {
		align-items: flex-start;
		margin-top: 8px;
		text-align: left;
	}

	.contract-withdrawal-product-qty input {
		margin-left: 0;
		max-width: 160px;
	}

	.contract-withdrawal-button:not(.has-custom-button-class),
	.contract-withdrawal-form .wp-element-button:not(.has-custom-button-class) {
		width: 100%;
	}
}
