/* КОРЗИНА, ФОФОРМЛЕНИЕ ЗАКАЗА, ПРОВЕРКА И ЗАВЕРШЕНИЕ*/
.cart-empty-page {
  font-size: 24px;
  padding: 30px 0;
  font-weight: 500;
  color: #366281;
}

@media (max-width: 1199px) {
  .cart-empty-page {
    font-size: 22px;
    padding: 25px 0;
  }
}

@media (max-width: 991px) {
  .cart-empty-page {
    font-size: 20px;
    padding: 20px 0;
  }
}

@media (max-width: 767px) {
  .cart-empty-page {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .cart-empty-page {
    font-size: 16px;
    padding: 15px 0;
  }
}

@media (max-width: 360px) {
  .cart-empty-page {
    font-size: 14px;
    padding: 12px 0;
  }
}
/* ЗАКАЗЫ В КОРЗИНЕ */
.cart.cart-form {
  background-color: transparent;
}

.cart.cart-form .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px;
  background: transparent;
  margin: 0;
}

.cart.cart-form .table thead th {
  font-size: 16px;
  line-height: 22px;
  border: none;
  font-weight: 700;
  color: #366281;
  text-transform: uppercase;
  text-align: center;
  background: transparent;
}

.cart.cart-form .table tbody tr {
  box-shadow: 0px 10px 40px -10px rgba(11, 61, 97, 0.08) !important;
  border: 1px solid #ffffff;
}

.cart.cart-form .table tbody tr td {
  background: transparent;
  border: none;
  box-shadow: none;
}

.cart.cart-form .table tbody td {
  border: none;
  padding: 20px 15px;
  vertical-align: middle;
  font-size: 16px;
  text-align: center;
  color: #366281;
}
.cart-block--summary .cart-block--summary__count {
  position: absolute;
  padding-top: 1px;
  width: 18px;
  height: 18px;
  border: 1px solid #38716c;
  background: #fff;
  color: #38716c;
  top: 0px;
  right: -4px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
}

.cart.cart-form .field-image-product-view img {
  width: 80px;
  height: auto;
  border-radius: 10px;
  display: block;
}

.cart.cart-form .views-field-title a {
  color: #366281;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.cart.cart-form .views-field-unit-price__number,
.cart.cart-form .views-field-total-price__number {
  font-weight: 600;
  white-space: nowrap;
}

.cart.cart-form .delete-order-item {
    width: 40px;
    height: 40px;
    padding: 0;
    text-indent: -9999px;
    background-image: url("/sites/all/themes/vesta_theme/image/icons/cart_delete.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px 20px;
    border-radius: 50%;
    min-width: 0;
    background-color: #38716c;
    border: none;
}

.cart.cart-form .delete-order-item:hover {
  box-shadow: 0px 0px 5px #38716c;
}

.cart.cart-form .delete-order-item:disabled {
  color: #8d8d8d;
  border-color: #8d8d8d;
}

.order-total-summary {
  text-align: right;
  font-size: 18px;
  margin-bottom: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 15px;
}

.order-total-line {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0;
}

.order-total-line__total {
  font-weight: 700;
  font-size: 20px;
  color: #366281;
}

.order-total-line-label {
  color: #366281;
  padding: 0;
}

.order-total-line-value {
  font-weight: 600;
}

.cart.cart-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 20px;
}

.cart.cart-form .form-actions .btn-primary {
  width: 300px;
  max-width: 100%;
  padding: 15px 0;
  background: #ffbb33 !important;
  backdrop-filter: blur(12px);
  border-radius: 30px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.03em;
  color: #00355b;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  text-align: center;
}

.cart.cart-form .form-actions .btn-primary:hover {
  box-shadow: 0px 0px 10px #ffbb33;
}

.layout-checkout-form {
  max-width: 1171px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.layout-region-checkout-main fieldset {
  border: none;
  padding: 0;
  margin-bottom: 25px;
}

.layout-region-checkout-main fieldset legend {
  font-size: 18px;
  font-weight: 700;
  color: #366281;
  margin-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 5px;
  width: 100%;
}

.layout-region-checkout-main .fieldset-wrapper {
  padding-left: 0;
  color: #366281;
  font-size: 14px;
}

.layout-region-checkout-main {
  flex: 1 1 50%;
  min-width: 300px;
}

#edit-actions-next {
  width: 300px;
  max-width: 100%;
  padding: 15px 0;
  background: #ffbb33 !important;
  backdrop-filter: blur(12px);
  border-radius: 30px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.03em;
  color: #00355b;
  text-align: center;
  transition: 0.2s;
  cursor: pointer;
}

#edit-actions-next:hover {
  box-shadow: 0px 0px 10px #ffbb33;
}

.link--previous {
  display: inline-block;
  margin-left: 10px;
  font-size: 16px;
  color: #38716c;
  text-decoration: none;
  border: 1px solid #38716c;
  border-radius: 30px;
  padding: 8px 25px;
  transition: 0.2s;
  background-color: #fff;
}

.link--previous:hover {
  box-shadow: 0px 0px 5px #38716c;
}

.layout-region-checkout-secondary {
  flex: 1 1 35%;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #ffffff;
  box-shadow: 0px 10px 40px -10px rgba(11, 61, 97, 0.08);
  border-radius: 2px;
  padding: 0 25px;
  align-self: flex-start;
}

.layout-region-checkout-secondary h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  line-height: 40px;
  text-transform: uppercase;
  color: #00355b;
  margin-bottom: 20px;
  text-align: left;
}

.layout-region-checkout-main .error {
  border-color: #dc3545 !important;
}

.layout-region-checkout-main .form-item--error-message {
  display: block;
  color: #dc3545;
  font-size: 12px;
  margin-bottom: 15px;
  font-weight: normal;
  line-height: 1.4;
}

.layout-region-checkout-main input.error,
.layout-region-checkout-main textarea.error,
.layout-region-checkout-main select.error {
  border-color: #dc3545;
}

.layout-region-checkout-main .address-container .error {
  border-color: #dc3545;
}

.layout-region-checkout-main fieldset.error .fieldset-legend {
  color: #dc3545;
}

.layout-region-checkout-main input.error:focus,
.layout-region-checkout-main textarea.error:focus {
  outline: none;
  border-color: #dc3545;
}

.checkout-order-summary .table td:first-child {
  text-align: left;
}

.checkout-pane .form-item label {
  font-size: 18px;
  color: #00355b;
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
}

.wr_content .layout-region-checkout-secondary h3 {
  margin: 0 0 20px 0;
  text-align: left;
}

.checkout-pane input[type="text"],
.checkout-pane input[type="tel"],
.checkout-pane input[type="email"],
.checkout-pane textarea,
.checkout-pane select {
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  font-size: 14px;
  color: #366281;
  box-sizing: border-box;
  margin-bottom: 15px;
  transition: border-color 0.2s;
}

.checkout-pane input:focus,
.checkout-pane textarea:focus,
.checkout-pane select:focus {
  outline: none;
  border-color: #00355b;
  box-shadow: none;
}

.checkout-pane input::placeholder,
.checkout-pane textarea::placeholder {
  color: #90a7b7;
  opacity: 1;
}

.checkout-pane .form-item label {
  font-size: 14px;
  font-weight: 600;
  color: #366281;
  margin-bottom: 8px;
  display: block;
}

.field--type-address .js-form-item {
  margin-bottom: 15px;
}

.field--type-address .js-form-item label {
  font-size: 14px;
  color: #366281;
}

#edit-payment-information-payment-method--wrapper .form-radios {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

#edit-payment-information-payment-method--wrapper .form-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

#edit-payment-information-payment-method--wrapper input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #ffbb33;
  margin: 0;
}

#edit-payment-information-payment-method--wrapper label {
  font-size: 14px;
  color: #366281;
  font-weight: normal;
  margin: 0;
}

.field--type-address fieldset legend {
  display: none;
}

.field--type-address fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

#edit-payment-information-payment-method--wrapper .form-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

#edit-payment-information-payment-method--wrapper .form-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

#edit-payment-information-payment-method--wrapper input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #ffbb33;
  margin: 0;
  border: none;
}

#edit-payment-information-payment-method--wrapper label {
  font-size: 14px;
  color: #366281;
  font-weight: normal;
  margin: 0;
}

.checkout-complete__title {
  text-align: left !important;
}

.checkout-order-summary .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.checkout-order-summary .table td {
  padding: 8px 0;
  border: none;
  background: transparent;
  color: #366281;
  font-size: 14px;
}

.checkout-order-summary .table td:first-child {
  text-align: left;
}

.checkout-order-summary .table td:last-child {
  text-align: right;
  font-weight: 500;
}

.order-total-summary {
  margin-top: 20px;
  border-top: 1px solid #e5e7eb;
  padding-top: 15px;
}

.order-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 16px;
  color: #366281;
}

.order-total-line__total {
  font-weight: 700;
  font-size: 20px;
  color: #366281;
}

.layout-region-checkout-footer {
  text-align: right;
  margin-top: 15px;
  width: 100%;
  padding: 0;
}

.checkout-review-edit-link a {
  font-size: 13px;
  color: #ffbb33;
  text-decoration: none;
  font-weight: 500;
  margin-left: 15px;
  margin: 0;
}

.checkout-review-edit-link a:hover {
  color: #e6a82e;
  text-decoration: underline;
}

.field--label-inline {
  display: flex;
  align-items: baseline;
  margin-bottom: 12px;
}

.field--label-inline .field__label {
  font-size: 16px;
  color: #366281;
  font-weight: 600;
  min-width: 150px;
  margin-right: 15px;
}

.field--label-inline .field__item {
  font-size: 16px;
  color: #366281;
  font-weight: 500;
  word-break: break-word;
}

.cart .views-field-field-image-product-view .item-list,
.cart .views-field-field-image-product-view .item-list ul,
.cart .views-field-field-image-product-view .item-list li {
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
}

.cart .views-field-field-image-product-view .item-list {
  display: inline-block;
  width: auto;
}

.cart .views-field-field-image-product-view .item-list ul {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart .views-field-field-image-product-view .item-list li {
  line-height: 0;
}

.cart .views-field-field-image-product-view .item-list li::before {
  display: none;
}

.cart .views-field-field-image-product-view img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.cart.cart-form .views-field-edit-quantity .quantity-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 140px;
  height: 40px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  padding: 0 10px;
  box-sizing: border-box;
}

.cart.cart-form .views-field-edit-quantity .quantity-btn {
  width: 35px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #00355b;
  user-select: none;
  font-size: 14px;
  background: none;
  border: none;
  padding: 0;
  font-weight: normal;
}

.cart.cart-form .views-field-edit-quantity .quantity-edit-input {
  width: 35px;
  border: none;
  font-size: 14px;
  background: transparent;
  color: #00355b;
  outline: none;
  padding: 0;
  margin: 0;
  text-align: center;
  font-family: inherit;
}

.cart.cart-form
  .views-field-edit-quantity
  input[type="number"]::-webkit-inner-spin-button,
.cart.cart-form
  .views-field-edit-quantity
  input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart.cart-form .table-responsive {
  overflow-x: visible !important;
}

.cart.cart-form .views-table {
  width: 100%;
  table-layout: auto;
}

@media (max-width: 1399px) {
  .cart.cart-form .table thead th,
  .cart.cart-form .table tbody td {
    padding: 10px 6px;
    font-size: 16px;
  }
}

@media (max-width: 1199px) {
  .cart.cart-form .table thead th,
  .cart.cart-form .table tbody td {
    padding: 8px 5px;
    font-size: 15px;
  }
}

@media (max-width: 991px) {
  .cart.cart-form .table thead th,
  .cart.cart-form .table tbody td {
    padding: 6px 4px;
    font-size: 14px;
  }
    .cart.cart-form .delete-order-item {
    width: 35px;
    height: 35px;
    background-size: 35px 19px;
  }

  .cart.cart-form .views-field-field-image-product-view img {
    width: 90px;
    height: 90px;
  }

  .cart.cart-form .views-field-edit-quantity .quantity-control {
    width: 110px;
  }
}

@media (max-width: 767px) {
  .cart.cart-form .views-table .views-field-title,
  .cart.cart-form .views-table th.views-field-title {
    display: none;
  }

  .cart.cart-form .delete-order-item {
    width: 32px;
    height: 32px;
    background-size: 32px 16px;
  }

  .cart.cart-form .table tbody td {
    padding: 6px 4px;
  }

  .cart.cart-form .views-field-field-image-product-view img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 576px) {
  .cart.cart-form .table thead th,
  .cart.cart-form .table tbody td {
    padding: 5px 3px;
  }

  .cart.cart-form .delete-order-item {
    width: 30px;
    height: 30px;
    background-size: 13px;
  }

  .cart.cart-form .form-actions .btn-primary {
    font-size: 14px;
    padding: 13px 16px;
    width: 250px;
    margin: 0 auto;
  }

  .cart.cart-form .views-field-field-image-product-view img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 360px) {
  .cart.cart-form .table thead th,
  .cart.cart-form .table tbody td {
    padding: 0;
  }

  .cart.cart-form .form-actions .btn-primary {
    font-size: 14px;
    padding: 10px 16px;
    width: 100%;
    margin: 0 auto;
  }

  .cart.cart-form .delete-order-item {
    width: 24px;
    height: 24px;
    background-size: 12px;
  }

  .cart.cart-form .views-table .views-field-total-price__number,
  .cart.cart-form .views-table th.views-field-total-price__number {
    display: none;
  }
}

@media (max-width: 1399px) {
  .layout-checkout-form {
    gap: 25px;
  }

  .layout-region-checkout-main {
    min-width: 280px;
  }

  .layout-region-checkout-secondary {
    min-width: 260px;
    padding: 0 20px;
  }

  .checkout-pane input[type="text"],
  .checkout-pane input[type="tel"],
  .checkout-pane input[type="email"],
  .checkout-pane textarea,
  .checkout-pane select {
    padding: 10px 14px;
    font-size: 13px;
  }

  #edit-actions-next,
  .link--previous {
    font-size: 15px;
  }

  .order-total-line {
    font-size: 15px;
  }

  .order-total-line__total {
    font-size: 18px;
  }

  .layout-region-checkout-secondary h3 {
    font-size: 26px;
    line-height: 36px;
  }
}

@media (max-width: 1199px) {
  .layout-checkout-form {
    gap: 20px;
  }

  .layout-region-checkout-main {
    min-width: 260px;
  }

  .layout-region-checkout-secondary {
    min-width: 240px;
    padding: 0 15px;
  }

  .checkout-pane input[type="text"],
  .checkout-pane input[type="tel"],
  .checkout-pane input[type="email"],
  .checkout-pane textarea,
  .checkout-pane select {
    padding: 9px 12px;
    font-size: 12px;
    margin-bottom: 12px;
  }

  .checkout-pane .form-item label {
    font-size: 13px;
  }

  #edit-actions-next,
  .link--previous {
    font-size: 14px;
    padding: 10px 25px;
  }

  .order-total-line {
    font-size: 14px;
  }

  .order-total-line__total {
    font-size: 17px;
  }

  .wr_content .layout-region-checkout-secondary h3 {
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 15px;
  }

  .field--label-inline .field__label {
    font-size: 14px;
    min-width: 120px;
  }

  .field--label-inline .field__item {
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  .layout-checkout-form {
    gap: 20px;
  }

  .layout-region-checkout-main {
    min-width: 280px;
    flex: 1 1 55%;
  }

  .layout-region-checkout-secondary {
    min-width: 260px;
    flex: 1 1 35%;
    padding: 0 20px;
  }

  .checkout-pane input[type="text"],
  .checkout-pane input[type="tel"],
  .checkout-pane input[type="email"],
  .checkout-pane textarea,
  .checkout-pane select {
    padding: 10px 14px;
    font-size: 14px;
  }

  .layout-region-checkout-main fieldset legend {
    font-size: 17px;
  }

  .wr_content .layout-region-checkout-secondary h3 {
    font-size: 22px;
    line-height: 34px;
  }

  .checkout-order-summary .table td {
    font-size: 13px;
  }

  .order-total-line {
    font-size: 15px;
  }

  .order-total-line__total {
    font-size: 18px;
  }

  .field--label-inline {
    flex-direction: row;
  }

  .field--label-inline .field__label {
    min-width: 120px;
  }

  #edit-actions-next,
  .link--previous {
    padding: 10px 30px;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .layout-checkout-form {
    flex-direction: column;
    gap: 30px;
  }

  .layout-region-checkout-main,
  .layout-region-checkout-secondary {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .layout-region-checkout-secondary {
    order: 2;
    padding: 20px;
  }

  .layout-region-checkout-main {
    order: 1;
  }

  .layout-region-checkout-footer {
    order: 3;
    text-align: center;
  }

  #edit-actions-next,
  .link--previous {
    display: inline-block;
    text-align: center;
  }

  .link--previous {
    margin-left: 0;
  }

  .layout-region-checkout-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .field--label-inline {
    flex-direction: column;
    margin-bottom: 10px;
  }

  .field--label-inline .field__label {
    margin-bottom: 5px;
    min-width: auto;
  }

  .layout-region-checkout-main fieldset legend {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .checkout-pane input[type="text"],
  .checkout-pane input[type="tel"],
  .checkout-pane input[type="email"],
  .checkout-pane textarea,
  .checkout-pane select {
    padding: 9px 12px;
    font-size: 13px;
  }

  .wr_content .layout-region-checkout-secondary h3 {
    font-size: 24px;
    line-height: 32px;
    text-align: center;
  }

  .order-total-line {
    font-size: 14px;
  }

  .order-total-line__total {
    font-size: 16px;
  }

  .checkout-order-summary .table td {
    font-size: 12px;
    padding: 6px 0;
  }
}

@media (max-width: 576px) {
  .layout-region-checkout-secondary {
    padding: 15px;
  }

  .layout-region-checkout-main fieldset legend {
    font-size: 15px;
  }

  .layout-checkout-form {
    gap: 25px;
  }

  .checkout-pane input[type="text"],
  .checkout-pane input[type="tel"],
  .checkout-pane input[type="email"],
  .checkout-pane textarea,
  .checkout-pane select {
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 10px;
  }

  .checkout-pane .form-item label {
    font-size: 12px;
  }

  .wr_content .layout-region-checkout-secondary h3 {
    font-size: 22px;
    line-height: 30px;
  }

  #edit-actions-next,
  .link--previous {
    font-size: 12px;
    padding: 6px 10px;
  }

  #edit-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .order-total-line {
    font-size: 13px;
  }

  .order-total-line__total {
    font-size: 15px;
  }

  .checkout-order-summary .table td {
    font-size: 11px;
    padding: 5px 0;
  }

  .layout-region-checkout-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .link--previous {
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  .layout-region-checkout-secondary {
    padding: 12px;
  }

  .layout-checkout-form {
    gap: 15px;
  }

  .layout-region-checkout-main fieldset legend {
    font-size: 14px;
  }

  .checkout-pane input[type="text"],
  .checkout-pane input[type="tel"],
  .checkout-pane input[type="email"],
  .checkout-pane textarea,
  .checkout-pane select {
    padding: 7px 8px;
    font-size: 11px;
    margin-bottom: 8px;
  }

  .checkout-pane .form-item label {
    font-size: 11px;
  }

  .wr_content .layout-region-checkout-secondary h3 {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 10px;
  }

  #edit-actions-next,
  .link--previous {
    font-size: 11px;
    padding: 5px 0;
  }

  .order-total-line {
    font-size: 12px;
  }

  .order-total-line__total {
    font-size: 14px;
  }

  .checkout-order-summary .table td {
    font-size: 10px;
    padding: 4px 0;
  }
}
