.zqc-cart,
.zqc-cart * {
    box-sizing: border-box;
}

.zqc-cart {
    position: relative;
    direction: rtl;
}

.zqc-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 10px 20px;
    border: 0;
    border-radius: 9px;
    background: #f0445b;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.zqc-add:hover,
.zqc-add:focus {
    color: #fff;
    background-color: #d9364e;
}

.zqc-loading-dots {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.zqc-loading-dot {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: #a8adb7;
	animation: zqc-dot-pulse .9s ease-in-out infinite;
}

.zqc-loading-dot:nth-child(2) {
	animation-delay: .15s;
}

.zqc-loading-dot:nth-child(3) {
	animation-delay: .3s;
}

@keyframes zqc-dot-pulse {
	0%, 60%, 100% { opacity: .45; transform: scale(.85); }
	30% { opacity: 1; transform: scale(1); }
}

.zqc-stepper {
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: space-between;
    width: 108px;
    height: 48px;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 9px;
    background: #fff;
    color: #f0445b;
    box-shadow: 0 4px 16px rgba(20, 20, 20, .09);
}

.zqc-active {
	display: flex;
	direction: rtl;
	align-items: center;
	justify-content: flex-start;
	column-gap: 12px;
}

.zqc-cart-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	direction: rtl;
	white-space: nowrap;
	font-size: 13px;
	line-height: 1.75;
}

.zqc-in-cart-label {
	color: #4b5563;
}

.zqc-view-cart {
	color: #0068d9;
	text-decoration: none;
	transition: color .2s ease;
}

.zqc-view-cart:hover,
.zqc-view-cart:focus {
	color: #004b9b;
	text-decoration: none;
}

.zqc-add[hidden],
.zqc-stepper[hidden],
.zqc-active[hidden] {
    display: none !important;
}

.zqc-action {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 24px;
    cursor: pointer;
	transition: color .2s ease, background-color .2s ease;
}

.zqc-action:not(:disabled):hover,
.zqc-action:not(:disabled):focus {
	background-color: #f0445b;
	color: #fff;
}

.zqc-cart:not(.is-loading) .zqc-action:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.zqc-quantity {
    min-width: 22px;
    font-weight: 700;
    text-align: center;
}

.zqc-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	color: #f0445b;
	animation: zqc-spin .7s linear infinite;
}

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

.zqc-trash {
    display: none;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.zqc-decrease.is-remove .zqc-minus {
    display: none;
}

.zqc-decrease.is-remove .zqc-trash {
    display: block;
}

.zqc-cart.is-loading {
    pointer-events: none;
}

.zqc-cart.is-loading .zqc-add:disabled,
.zqc-cart.is-loading .zqc-action:disabled {
	opacity: 1;
	cursor: wait;
}

.zqc-cart.is-loading .zqc-add:not([hidden]) .zqc-add-label {
	display: none;
}

.zqc-cart.is-loading .zqc-add:not([hidden]) .zqc-loading-dots {
	display: flex;
}

.zqc-cart.is-loading .zqc-active:not([hidden]) .zqc-quantity {
	display: none;
}

.zqc-cart.is-loading .zqc-active:not([hidden]) .zqc-spinner {
	display: block;
}

.zqc-message {
    display: block;
    margin-top: 6px;
    color: #b42318;
    font-size: 12px;
}

.zqc-message:empty {
    display: none;
}

.sell-wrapper {
	display: none;
	height: 0;
	opacity: 0;
	overflow: hidden;
	transition: height .65s cubic-bezier(.22, 1, .36, 1), opacity .45s ease;
	will-change: height, opacity;
}

.sell-inner-wrapper {
	display: none;
	height: 0;
	opacity: 0;
	overflow: hidden;
	transition: height .65s cubic-bezier(.22, 1, .36, 1), opacity .45s ease;
	will-change: height, opacity;
}

.sell-wrapper.zqc-sell-preparing {
	display: flex;
}

.sell-wrapper.zqc-sell-preparing .sell-inner-wrapper {
	display: flex;
}

.sell-wrapper.zqc-sell-open,
.sell-wrapper.zqc-sell-open .sell-inner-wrapper {
	height: 500px;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.sell-wrapper,
	.sell-inner-wrapper {
		transition-duration: .01ms;
	}
}

.zqc-unavailable {
    display: block;
    color: #777;
    text-align: center;
}
