.cart {
  margin-bottom: 30px;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin: 60px 0 30px;
}

.cart-header .form-control {
  width: 100%;
}

.cart-header-title.not-found {
  color: #ff6e6e;
}

.cart-header-title {
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0;
}

.cart-header-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-header-column textarea {
  height: 400px;
}

.cart-header-btn-wrapper {
  display: flex;
  gap: 25px;
}

.cart-header-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  overflow: auto;
}

.cart-header-label.checkbox-label {
  align-items: start;
}

.cart-header-geuc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-form {
  display: flex;
  flex-direction: column;
  margin-top: -283px;
  padding-top: 40px;
  position: relative;
  z-index: 10;
}

.cart-form-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  width: calc(100% - 100px);
}
.is-hidden {
  display: none;
}

.cart-form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(45% - 12px);
}

.cart-form-field label {
  font-size: 20px;
  line-height: 1;
}

.cart-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-form-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.cart-form-item {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  line-height: 24px;
  font-weight: 400;
  font-family: var(--pico-font-family);
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 10, 23, 0.15);
}

.cart-form-item:first-child {
  padding-top: 0;
}

.cart-form-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cart-form-item span:first-child {
  font-weight: 600;
}


.cart-form-item:last-child {
  color: var(--primary-color);
}

.cart-table-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.cart-table  thead tr {
  text-align: center;
}

.cart-table thead th {
  background-color: transparent;
  border: none;
  font-size: 20px;
  font-weight: 400;
  padding: 30px;
}

.cart-table thead th.wide {
  width: 400px;
}

.cart-table .table-arrow {
  margin-left: 6px;
}

.cart-table .table-arrow a {
  text-decoration: none;
  color: var(--text-color);
}

.cart-table .table-arrow .arrow.active {
  color: var(--primary-color);
}

.cart-table .table-arrow .arrow.up {
  margin-right: -4px;
}

.cart-table tbody td {
  padding: 30px;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: start;
}

#cart_table .cart-country-header {
  white-space: nowrap;
  font-size: 18px;
  line-height: 22px;
}

#cart_table .cart-country-header span {
  display: block;
}

#cart_table .cart-sort-header {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

#cart_table .cart-sort-header .table-arrow {
  flex-shrink: 0;
}

.cart-comment-input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 16px 22px;
  line-height: 24px;
  resize: none;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cart-form-actions  {
  margin-top: 30px;
}

.cart-form-actions .button {
  width: calc(50% - 12px);
}

.cart-comment-input::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.cart-comment-input:hover,
.cart-comment-input:focus {
  scrollbar-width: thin;
}

.cart-comment-input:hover::-webkit-scrollbar,
.cart-comment-input:focus::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

#cart_rejected_items_frame .rejected-accordion-header__start {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#cart_rejected_items_frame .cart-table tbody tr:not(:last-child) td,
#order_rejected_items_frame .cart-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #d9c1c1;
}

#cart_rejected_items_frame .cart-table tbody td,
#order_rejected_items_frame .cart-table tbody td {
  background-color: #f8dbdb;
}

#cart_rejected_table {
  border-collapse: separate;
  border-spacing: 0;
}

#cart_rejected_items_frame #cart_rejected_table tbody.rejected-group + tbody.rejected-group tr:first-child td {
  border-top: 1rem solid transparent;
  background-clip: padding-box;
}

#cart_rejected_items_frame #cart_rejected_table tbody td.rows {
  border-bottom: none;
}

#cart_table {
  border-collapse: separate;
  border-spacing: 0;
}

#cart_table tbody tr.cart-group-end td,
#cart_table tbody td.group-cell {
  border-bottom: 1rem solid transparent;
  background-clip: padding-box;
  vertical-align: top;
}

#order_items_table,
#order_rejected_table {
  border-collapse: separate;
  border-spacing: 0;
}

#order_items_table tbody.order-group + tbody.order-group tr:first-child td,
#order_rejected_table tbody.rejected-group + tbody.rejected-group tr:first-child td {
  border-top: 1rem solid transparent;
  background-clip: padding-box;
}

#order_rejected_items_frame #order_rejected_table tbody td.rows {
  border-bottom: none;
}

#order_rejected_table tbody.rejected-group tr:last-child td:first-child {
  border-radius: 0;
}

#order_items_table th:nth-child(4),
#order_items_table td:nth-child(4) {
  width: 90px;
}

#order_items_table_total {
  width: 70%;
  margin-left: auto;
}

#order_items_table tfoot tr:first-child td:nth-child(5) {
  white-space: nowrap;
}

.cart-table tfoot td {
  padding: 30px;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: start;
}

.quantity-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 120px;
  height: 48px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0;
  background: white;
}

.quantity-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-color);
  margin: 0;
  border-radius: 50%;
}

.quantity-btn:hover {
  background: #f0f0f0a5;
  border-radius: 50%;
}

.cart-quantity-input {
  flex: 1;
  border: 1px solid #007BFF;
  border-radius: 8px;
  text-align: center;
  font-size: 20px;
  width: 120px;
  outline: none;
  background-color: white;
  padding: 0 8px;
  transition: border-color 0.2s ease;
}

.cart-search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.cart-search-wrapper .form-control {
  min-width: unset;
}

.order-summary-box {
  background: #fff;
  border-radius: 4px;
  min-width: 400px;
  border: 1px solid rgba(0, 10, 23, 0.25);
}

.order-summary-header {
  font-weight: 600;
  font-size: 24px;
  cursor: pointer;
  user-select: none;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-summary-icon {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.order-summary-icon span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 2px;
  border-radius: 30px;
  background-color: #000;
  transition: transform 0.4s ease;
}

.order-summary-icon span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(90deg);
}

.order-summary-header.open .order-summary-icon span:nth-child(2){
  transform: translate(-50%, -50%) rotate(0);
}

.order-summary-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  border-top: 1px solid rgba(0, 10, 23, 0.25);
}

.order-summary-wrapper.open {
  max-height: 500px;
  opacity: 1;
}

.order-summary-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  color: #666;
}

.order-summary-row.total {
  font-size: 24px;
  font-weight: 500;
  color: #1482FA;
  margin-top: 14px;
}

.order-summary-box .button {
  width: 100%;
}
