.cart {
	position: fixed;
	top: 0;
	right: -640px;
	width: 100%;
	max-width: 640px;
	height: 100%;
	padding: 60px 0 0;
	background: var(--color-cart-bg);
	-webkit-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
	overflow-y: auto;
	display: flex;
	flex-direction: column; 
	z-index: 99;
}

.cart .upload-field {
	margin: 0;
    max-width: 100%;
    min-height: 125px;
    display: flex;
    justify-content: center;
}

.cart__sse-container {
	height: 100%;
    display: flex;
    flex-direction: column;
}

.cart__sse-loading {
	height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
	min-height: 75px;
}

.cart__product-input {
	border-radius: 10px;
    border: 1.56px solid #e9e9e9;
    height: 50px;
    display: flex;
    align-items: center;
}

.cart__product-input button {
	display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 40px;
}

.cart.opened {
	right: 0;
	box-shadow: 5px 0px 10px #000;
}

.cart td {
	font-size: 14px;
	padding: 10px;
}

.cart__close {
	display: block;
	position: absolute;
	top: 20px;
    right: 20px;
	background: var(--color-cart-bg);
	font-size: 0;
	line-height: 0;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

.cart__close::before,
.cart__close::after {
	content: '';
	width: 20px;
	height: 2px;
	background: var(--color-text-primary);
	position: absolute;
	top: 50%;
	left: 50%;
}

.cart__remove {
	position: relative;
	background: unset;
	border: none;
	color: #333333;
	opacity: 0.8;
	width: 30px;
	height: 30px;
	padding: 0;
}

.cart__close::after {
	transform: translate(-50%, 50%) rotate(45deg);
}

.cart__close::before {
	transform: translate(-50%, 50%) rotate(-45deg);
}

.cart__name {
	font-size: 20px;
	line-height: 24px;
	font-weight: 400;
	padding-left: 12px;
	padding-top: 10px;
}

.cart__items-count {
	padding-left: 12px;
	margin: 33px 0 13px;
	font-size: 17px;
}

.cart__decrease-btn,
.cart__increase-btn {
	display: block;
	text-align: center;
	border: 1px solid var(--border-color);
	width: 35px;
	height: 35px;
	background: var(--color-text-primary);
	cursor: pointer;
}

.cart__decrease-btn {
	border-right: none;
}

.cart__increase-btn {
	border-left: none;
}

.cart__prices {
	padding: 30px 30px 60px;
	width: 100%;
	margin-top: auto;
	
}

.cart__price {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
}

.cart__price {
	font-size: 0.82rem;
	color: #999999;
	margin-bottom: 10px;
}

.cart__price.total {
	font-size: 2.05rem;
	color: #000;
	font-weight: 600;
	margin-bottom: 20px;
}

.cart__actions {
	display: flex;
	justify-content: space-between;
	gap: 13px;
	margin-top: 40px;
	align-items: center;
}

.checkout__offer {
	display: grid;
	grid-template-columns: 160px 15px;
	margin-top: 15px;
	margin-bottom: 5px;
}

.checkout__offer input[type="radio"] {
	width: auto;
}

.checkout__offer label {
	font-size: .8rem;
}
.cart__product-amount input {
	text-align: center;
}

.cart__actions a {
	background: var(--color-bg-button-apply);
	font-size: 1rem;
	color: #fff;
	line-height: 1.56;
	height: 50px;
	border-radius: 10px;
	width: 100%;
}

.cart__actions a.disabled {
	opacity: 0.5;
	pointer-events: none;
}

.cart__actions a.cart__continue-shopping{
	text-align: left;
	display: flex;
    align-items: center;
    justify-content: center;
	background: unset;
}

.cart__continue-shopping span{
	border-bottom: 1px #828282 solid;
	color: #828282;
	text-align: left;
}

.input--cart {
	font-size: 1rem;
	width: 50px;
	height: 50px;
    margin: 0;
}

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

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* .cart__actions a:hover {
	background: var(--color-bg-hover);
} */

.cart__amount {
	display: flex;
	justify-content: center;
}

.cart__product-price {
	text-align: end;
	width: 85px;
}

.cart__table {
	width: 100%;
	padding: 30px;
}

.cart__update {
	font-size: .8rem;
	border: none;
	margin-left: 10px;
	text-decoration: underline;
	color: var(--color-text-primary);
}

.cart__product-name {
	display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.56;
    color: #272727;
}

.cart__product-name span {
	display: block;
}

.cart__product-code {
	color: #999999;
	font-size: .8rem;
}

.cart__tabs {
	display: flex;
    cursor: pointer;
    margin-top: 1rem auto;
    width: 100%;
    margin: 1rem auto auto;
    padding: 0 15px;
    gap: 10px;
}

.cart__tab {
	flex: 1;
	text-align: center;
	padding: 10px;
	background-color: var(--color-cart-tab-bg);
	margin: 0 2px;
}

.cart__tab.active {
	background-color: var(--color-cart-tab-active-bg);
    color: var(--color-theme-primary);
    border-radius: 20px;
}

.cart__tab-content {
	display: none;
}

.cart__tab-content.active {
	display: block;
}

.cart__form-container {
	padding: 30px;
	background: var(--color-cart-bg);
}

.cart__form-label {
	display: block;
	margin-bottom: 5px;
}

.cart__form-input,
.cart__form-select {
	width: 100%;
}

.cart__form .items--wrapper {
	display: flex;
	gap: 28px;
	flex-direction: column;
}

.cart-order-import-general-error {
	position: fixed;
	text-align: center;
	width: 70%;
	padding: 16px;
	left: 50%;
	top: 10%;
	transform: translate(-50%, -50%);
	transition: opacity 0.3s;
	color: #1D2433;
	background-color: #FFEFEC;
	z-index:100;
}

@media(max-width: 550px) {
	.cart__actions {
		flex-wrap: wrap;
    	flex-direction: column-reverse;
		gap: 0;
	}

	.cart__prices {
		padding: 20px 20px 10px;
	}

	.cart__continue-shopping {
		text-align: center !important;
	}
}

@media(max-width: 440px) {
	.cart__product-amount form {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 5px;
	}

	.cart__update {
		margin-left: 0;
	}

	.cart__product-price {
		width: 60px;
	}
}

.cart__product {
	display: grid;
	grid-template-areas:
		"image data"
		"amount amount";
	grid-template-columns: 140px 1fr auto;
	gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #E9E9E9;
}

.cart__product-image {
	grid-area: image;
	height: 140px;
    width: 140px;
}

.cart__product-data {
	grid-area: data;
}

.cart__product-delete {
	display: flex;
    justify-content: flex-end;
}

.cart__product-data-top {
	display: flex;
    justify-content: space-between;
	margin-bottom: 24px;
	gap: 20px;
}

.cart__product-data-bottom {
	display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.cart__product-amount {
	grid-area: amount;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
}

.cart__product-price {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    font-size: 1.2rem;
    font-weight: 700;
}

.cart__product-image img {
	height: 140px;
    width: 140px;
    object-fit: contain;
}

.cart__product-delete__form {
	width: fit-content;
}

@media(max-width: 540px) {
	.cart__product {
		grid-template-columns: 100px 1fr auto;
	}

	.cart__product-image,
	.cart__product-image img {
		height: 100px;
		width: 100px;
	}
}

@media(max-width: 400px) {
	.cart__product {
		grid-template-columns: 75px 1fr auto;
	}

	.cart__product-image,
	.cart__product-image img {
		height: 75px;
		width: 75px;
	}
}

/* CART */
/* ========= Custom options (accordion) ========= */

/* Nesting row under main product */
.cart__product-options td {
  position: relative;
  padding: 8px 12px 14px 44px; /* left indent under parent row */
  background: var(--color-bg-secondary);
  border-top: 1px dashed var(--border-color);
}

/* subtle connector line on the left */
.cart__product-options td::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-color);
  opacity: .25;
  border-radius: 2px;
}

/* Accordion shell */
.co-accordion {
  display: block; 
  border-radius: 6px;
  background: var(--color-cart-bg);
}

/* Hide native marker and style our own caret */
.co-accordion > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  margin: 0 -4px; /* optical alignment */
  border-radius: 6px;
  font-weight: 600;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.co-accordion > summary::-webkit-details-marker { display: none; }

/* Caret */
.co-accordion > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-primary);
  border-bottom: 2px solid var(--color-text-primary);
  transform: rotate(-45deg);
  transition: transform .2s ease;
  opacity: .8;
}
.co-accordion[open] > summary::before { transform: rotate(45deg); }

/* Hover */
.co-accordion > summary:hover {
  background: var(--color-bg-secondary);
}

/* Content area */
.co-accordion__content {
  padding: 10px 6px 4px;
  border-top: 1px solid var(--border-color);
  margin-top: 8px;
}

/* ===== Options list (left column) ===== */
.co-opts { margin-bottom: 8px; }
.co-opts > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--color-text-teritary);
}

.co-opts__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.co-opts__list li {
  border: 1px solid #E5E8F2;
  border-radius: 20px;
  font-size: 11px;
  padding: 8px 12px;
  font-weight: 600;
  color: #353840;
}
.co-opts__list li:last-child { border-bottom: 0; }

.co-opts__name {
  font-size: 11px;
  color: #353840;
}

.co-opts__name::after {
    content: ": ";
}

/* “Chip” for values (e.g., multiselect) */
.co-chip:not(:last-child)::after {
  content: ", ";
}

.co-empty { color: var(--color-text-teritary); opacity: .8; }

.co-opts__product { /* shown in parentheses after option name */
  color: var(--color-text-teritary);
  font-weight: 500;
}

/* Inline price beside option/value */
.co-extras__price {
  margin-left: 6px;
  white-space: nowrap;
  font-weight: 600;
  color: var(--color-text-primary);
  opacity: .9;
}

/* ===== Added products list (if you keep it) ===== */
.co-extras { margin-top: 10px; }
.co-extras > strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  color: var(--color-text-teritary);
}

.co-extras__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.co-extras__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,.08);
}
.co-extras__list li:last-child { border-bottom: 0; }

/* ========= Responsive polish ========= */
/* @media (max-width: 550px) {
  .co-opts__name { min-width: 110px; }
  .cart__product-options td { padding-left: 36px; }
  .cart__product-options td::before { left: 18px; }
}
@media (max-width: 440px) {
  .co-opts__name { min-width: 96px; font-size: 12px; }
  .co-chip { font-size: 11px; }
} */

/* Empty cart START */
.cart__item-remove {
    display: flex;
    justify-content: flex-end;
    padding: 15px 50px 0;
}

@media (max-width: 540px) {
	.cart__item-remove {
		display: flex;
		justify-content: flex-end;
		padding: 15px 15px 0;
	}
}

.cart__empty-cart__button {
    border: none;
    background: transparent;
    color: #E84241;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-left: 24px;
    text-decoration: underline;
}

.cart__empty-cart__button:hover {
    opacity: 0.8;
}

#js__cartEmptyPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.cart-empty-popup {
    position: relative;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.cart-empty-popup__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
}

.cart-empty-popup__close:hover {
    color: #6b7280;
}

#js__cartEmptyPopup h2 {
    margin: 4px 0 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

#js__cartEmptyPopup p {
    margin: 0 0 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #4b5563;
}

.cart-empty-popup__actions {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 4px;
}

.cart-empty-popup__actions .btn {
    border-radius: 999px;
    padding: 6px 20px;
    font-size: 0.875rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
}

.cart-empty-popup__actions .btn-delete {
    background: #E84241;
    border-color: #E84241;
    color: #ffffff;
}
/* Empty cart END */