.products-container, .confirmation-container {
  @media screen and (min-width: 1060px) {
    column-gap: clamp(64px, calc(64px + (100vw - var(--breakpoint-desktop)) * (128 - 64) / (var(--desktop-width-num) - var(--breakpoint-desktop-width))), 128px);
  }
}

.products-container {
  display: grid;

  padding: 0 18px;
  @media screen and (min-width: 1060px) {
    padding: 0 32px;
    grid-template-columns: auto 420px;
    grid-template-rows: min-content 1fr;
  }
}

.product-row {
  position: relative;
}

.product-row:before {
  content: " ";
  width: 5px;
  background: var(--theme-color);
  display: block;
  position: absolute;
  left: -16px;
  top: 18px;
  bottom: 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.product-row.is-selected:before {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.product-error {
  width: 100%;
  text-align: right;
  margin-top: 0.5rem;
}

.product-container {
  border-top: var(--border-template);
  justify-content: space-between;
  margin-top: 12px;
  margin-bottom: 15px;
  padding-top: 7px;
  position: relative;
}

.header-section {
  margin-bottom: 39px;
  align-self: start;
  grid-row: 1;
  @media screen and (min-width: 1060px) {
    grid-column: 2;
  }
}

.details-section {
  top: 0;
  position: sticky;
  align-self: start;
  margin-bottom: 30px;

  @media screen and (min-width: 1060px) {
    grid-column: 2;
    margin-bottom: 240px;
  }
}

.products-section {
  margin-bottom: 45px;

  @media screen and (min-width: 1060px) {
    margin-bottom: 240px;
    grid-row: 1 / span 2;
  }
}

.product-name {
  grid-column: 1;
  grid-row: 1;
  font-family: Montserrat;
  font-weight: 500;
  color: black;
  overflow-wrap: anywhere;

  font-size: 18px;
  line-height: 22px;
}

.product-description {
  white-space: pre-wrap;
  grid-column: 1;
  grid-row: 2;
  margin-top: 12px;
  font-family: Montserrat;
  font-weight: 500;
  color: var(--color-gray-light);
  margin-bottom: auto;
  overflow-wrap: anywhere;

  font-size: 14px;
  line-height: 1.5rem;
}

.product-price {
  font-family: Montserrat;
  font-weight: 500;
  color: black;

  font-size: 16px;
  line-height: 20px;
}

.product-image {
  transition: transform .5s ease;
  overflow: hidden;
  justify-self: end;
  grid-column: 2;
  grid-row: 1 / span 2;

  margin-top: 6.5px;
  margin-left: 10px;

  width: 125px;
  height: 125px;

  @media screen and (min-width: 1060px) {
    grid-row: 1 / span 3;
    margin-left: 59px;
    width: 159px;
    height: 159px;
  }
}

.product-image:hover {
  transform: scale(1.05);
}

.unavailable .product-image {
  opacity: 0.66;
}

.product-container .product-availability {
  position: absolute;
  right: 0;
}

.product-container .product-availability-none {
  position: absolute;
  right: 0;
}

.product-container.has-image .product-name {
  padding-right: 0;
}

.product-container .product-name {
  margin-top: 10px;
  padding-right: 117px;

  @media screen and (min-width: 1060px) {
    padding-right: 218px;
  }
}

.product-availability {
  display: block;
  background: var(--theme-color);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  white-space: nowrap;
  min-width: 95px;
  text-align: center;
  z-index: 1;
  color: var(--color-gray-dark);
}

.product-availability-none {
  display: block;
  background: var(--color-gray-label);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  white-space: nowrap;
  min-width: 95px;
  text-align: center;
  z-index: 1;
  color: var(--color-gray-dark);
}

.product-details {
  width: 100%;
  display: grid;
  grid-template: auto 1fr auto / 1fr auto;
}

.product-order {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  grid-column: 1 / span 2;
  grid-row: 3;

  @media screen and (min-width: 1060px) {
    grid-column: 1;
  }
}

.product-quantity-field {
  margin-left: 5px;
  margin-right: 5px;
}

.formtastic .product-quantity {
  display: flex;
  align-items: center;
}

.formtastic .product-quantity .product-quantity-field input {
  -moz-appearance: textfield;
  border: none;
  padding-left: 0;
  padding-right: 0;
  width: 35px;
  text-align: center;
}

.formtastic .product-quantity .product-quantity-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-quantity-action {
  background: var(--theme-color-lighter);
  width: 40px;
  height: 40px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  font-family: 'Montserrat';

  transition: background 0.15s ease-in;
}

.product-quantity-action.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.product-quantity-action:not(.disabled) {
  cursor: pointer;
}

.product-quantity-action:not(.disabled):hover {
  background: var(--theme-color-light);
  transition: background 0.15s ease-out;
}

@media screen and (min-width: 1060px) {
  .product-quantity-action {
    width: 30px;
    height: 30px;
    border-radius: 15px;
  }
}

.product-quantity-update {
  background: var(--theme-color);
  flex: 1;
  height: 60px;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
  margin-left: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;

  transition: background 0.15s ease-in;
  cursor: pointer;
}

.product-quantity-update:hover {
  background: var(--theme-color-dark);
  transition: background 0.15s ease-out;
}

.product-quantity-update.disabled {
  opacity: 0.5;
}

.product-unavailable {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;

  color: rgba(0, 0, 0, 0.4);
}

.message-panel {
  background: var(--theme-color-background);
  padding: 1rem;
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 21px;
}

.new-order-message {
  margin-bottom: 1rem;
}

.mobile-only {
  display: block;
  @media screen and (min-width: 1060px) {
    display: none;
  }
}

.desktop-only {
  display: none;
  @media screen and (min-width: 1060px) {
    display: block;
  }
}

.order-info-container {
  display: flex;
  justify-content: space-between;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  color: #000000;
  width: 100%;
  font-size: 18px;
  line-height: 22px;
  margin-bottom: 1rem;
  @media screen and (min-width: 1060px) {
    width: 50%;
    margin-bottom: 1rem;
  }
}

.additional-information-content {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  color: #000000;
  opacity: 0.66;
  margin-bottom: 0.5rem;
}

.additional-information-header {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  color: #000000;
  font-size: 18px;
  line-height: 22px;
  margin-bottom: 0.5rem;
}

.order-info-spacer {
  margin-bottom: 1.5rem;
  @media screen and (min-width: 1060px) {
    width: 50%;
    margin-bottom: 2rem;
  }
}

.line-items-table {
  width: 100%;
  border-spacing: 0;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  color: #000000;
  margin-top: 2rem;
  font-size: 16px;
  line-height: 20px;
}

.line-items-table .product-column {
  text-align: left;
}

.line-items-table .price-column,
.line-items-table .quantity-column,
.line-items-table .total-column {
  text-align: right;
  white-space: nowrap;
  padding-left: 5px;
}

@media screen and (min-width: 1060px) {
  .line-items-table .price-column,
  .line-items-table .quantity-column,
  .line-items-table .total-column {
    padding-left: 10px;
  }
}

.line-items-table .product-column,
.line-items-table .price-column,
.line-items-table .quantity-column {
  padding-right: 5px;
}

@media screen and (min-width: 1060px) {
  .line-items-table .product-column,
  .line-items-table .price-column,
  .line-items-table .quantity-column {
    padding-right: 10px;
  }
}

.line-items-table thead th {
  border-bottom: var(--border-template);
}

.line-items-table tfoot td {
  border-top: var(--border-template);
}

.line-items-table tbody tr:first-child td {
  padding-top: 20px;
}

.line-items-table tbody tr:last-child td {
  padding-bottom: 20px;
}

.line-items-table td,
.line-items-table th {
  padding-top: 10px;
  padding-bottom: 10px;
}

.line-items-table tfoot,
.line-items-table thead {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}

@media screen and (min-width: 1060px) {
  .line-items-table tfoot,
  .line-items-table thead {
    font-size: 18px;
    line-height: 22px;
  }
}

.payment-methods {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media screen and (min-width: 1060px) {
  .payment-methods {
    flex-direction: row;
    margin-top: 50px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
  }
}

.payment-methods .transfer-description {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.payment-methods h3 {
  margin-left: auto;
}

.payment-methods form {
  flex: 1;
}

.payment-methods .fast-transfer-payment {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.payment-methods .fast-transfer-payment form {
  flex: none;
}

.payment-methods .btn {
  justify-content: space-between;
  height: 100%;
}

.payment-methods .btn img {
  height: 2rem;
  margin-right: 1rem;
}

.redirect-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.4);
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 19px;
}

.pickup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pickup-header .cancel-label {
  display: none;
}

.pickup-header .cancel-section {
  display: none;
}

@media screen and (min-width: 1060px) {
  .pickup-header .cancel-section {
    display: block;
    margin-bottom: 0;
  }
}

.your-details-header {
  margin-top: 2rem;

  @media screen and (min-width: 1060px) {
    margin-top: 36px;
    margin-bottom: 27px;
  }
}

.order-detail-line {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  color: #000000;
  opacity: 0.66;
  margin-bottom: 0.5rem;
}

.order-detail-line.shipping-method {
  margin-top: 36px;
  opacity: 0.8;
}

.confirmation-container {
  padding: 0 1rem;
  @media screen and (min-width: 1060px) {
    padding: 0;
    display: grid;
    padding: 0 32px;
    grid-template-columns: auto 420px;
  }
}

.history-container {
  padding: 0 18px;
  overflow-x: auto;
  @media screen and (min-width: 1060px) {
    padding: 0 32px;
  }
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Montserrat;
  font-style: normal;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.orders-table thead th {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: black;
  text-align: left;
  padding: 10px 8px;
  border-bottom: var(--border-template);
}

@media screen and (min-width: 1060px) {
  .orders-table thead th {
    font-size: 16px;
    line-height: 22px;
    padding: 14px 16px;
  }
}

.orders-table tbody tr {
  border-bottom: var(--border-template);
  transition: background-color 0.15s ease-in;
}

.orders-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.orders-table tbody td,
.orders-table tbody th {
  padding: 10px 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--font-color);
  vertical-align: middle;
}

@media screen and (min-width: 1060px) {
  .orders-table tbody td,
  .orders-table tbody th {
    font-size: 15px;
    line-height: 22px;
    padding: 14px 16px;
  }
}

.orders-table tbody th[scope="row"] {
  font-weight: 500;
  text-align: left;
  padding: 0;
}

.orders-table tbody th[scope="row"] a {
  display: block;
  padding: 10px 8px;
  color: black;
  text-decoration: none;
  transition: color 0.15s ease-in;
}

@media screen and (min-width: 1060px) {
  .orders-table tbody th[scope="row"] a {
    padding: 14px 16px;
  }
}

.orders-table tbody th[scope="row"] a:hover {
  color: var(--theme-color-dark);
  text-decoration: underline;
}

.orders-table .order-total {
  font-weight: 500;
  color: black;
  text-align: right;
}

@media screen and (min-width: 1060px) {
  .orders-table .order-total {
    text-align: left;
  }
}

.orders-table td.order-total {
  white-space: nowrap;
}

.orders-table .order-created-at {
  display: none;
}

@media screen and (min-width: 1060px) {
  .orders-table .order-created-at {
    display: table-cell;
  }
}

.empty-orders {
  padding: 3rem 0;
  text-align: center;
  color: var(--font-color);
}

.main-section {
  margin-bottom: 2rem;
  @media screen and (min-width: 1060px) {
    margin-bottom: 145px;
  }
}

.side-section {
  margin-bottom: 67px;
}

.cancel-label {
  margin-right: 1rem;
}

.cancel-section {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  margin-bottom: 32px;

  @media screen and (min-width: 1060px) {
    display: none;
  }
}

dialog:not([open]) {
  display: none !important;
}

dialog.product-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  color: var(--font-color);
}

dialog.product-modal::backdrop {
  background: transparent;
}

dialog.product-modal[open] {
  display: block;
}

dialog.product-modal .modal-dialog {
  position: relative;
  width: calc(100% - 1rem);
  max-width: 400px;
  margin: 0.5rem auto;
}

@media screen and (min-width: 1060px) {
  dialog.product-modal .modal-dialog {
    width: 100%;
    margin: 1.75rem auto;
  }
}

dialog.product-modal .modal-content {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

dialog.product-modal .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  opacity: 0.8;
  z-index: 1;
  cursor: pointer;
  transition: opacity 0.15s ease-in-out;
}

dialog.product-modal .btn-close:hover {
  opacity: 1;
}

dialog.product-modal .product-quantity-action {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 60px;
}

dialog.product-modal .product-quantity {
  width: 100%;
}

dialog.product-modal .product-availability {
  padding: 4px 10px;
  line-height: 21px;
}

dialog.product-modal.has-image .product-name {
  padding-right: 0;
}

dialog.product-modal.has-image .product-modal-image .product-availability {
  display: block;
  position: absolute;
  bottom: 1.5rem;
  right: 1rem;
}

dialog.product-modal.has-image .product-order .product-availability {
  display: none;
}

dialog.product-modal .product-modal-image .product-availability {
  display: none;
}

dialog.product-modal .product-order .product-availability {
  position: relative;
}

dialog.product-modal .product-name {
  padding-right: 30px;
}

.product-modal-image {
  position: relative;
}

.product-modal-details {
  padding: 1.5rem;
}

.modal-content {
  overflow: hidden;
}

.payment-methods .change-payment-method {
  flex-basis: 100%;
  display: flex;
}

.payment-methods .change-payment-method button {
  margin-left: auto;
  background: none !important;
  border: none;
  padding: 0 !important;
  text-decoration: underline;
  cursor: pointer;
  color: black;
}

.gdpr-notice {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: rgba(0, 0, 0, 0.66);
}
