@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap");

.custom_cart_main .ty-no-items {
  font-size: 1.8rem;
  color: #666666;
  background-color: #F2F2F2;
  border-radius: 6px;
}

.custom_cart_main .buttons-container {
  background-color: #fff;
}

.custom_cart_main .ty-mainbox-title {
  font-size: 3rem;
  color: #40210F;
}
.custom_cart_main .ty-cart-content tbody tr {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(64, 33, 15, 0.2);
}

.custom_cart_main .ty-table th {
  font-size: 1.8rem;
  background-color: #fff;
}

.custom_cart_main .ty-table tbody tr:nth-child(2n) {
  background-color: #fff;
}

.custom_cart_main td.ty-cart-content__image-block {
  padding-top: 10px;
  padding-bottom: 10px;
}

.custom_cart_main .ty-cart-content__image {
  min-width: 90px;
}

.custom_cart_main .ty-cart-content__product-title {
  font-size: 1.8rem;
}

.custom_cart_main .ty-sku,
.custom_cart_main .ty-sku span {
  font-size: 1.4rem;
}

.custom_cart_main .ty-cart-content__qty {
  margin: 12px 0;
  padding: 0;
}

.custom_cart_main .ty-cart-content__price {
  width: 180px;
}

.custom_cart_main .ty-sub-price {
  font-size: 1.4rem;
  color: #40210F;
  font-weight: 400;
}

.custom_cart_main .ty-value-changer {
  width: 84px;
  display: flex;
  align-items: center;
}

.custom_cart_main input.ty-value-changer__input {
  font-size: 1.4rem !important;
  border-right: unset;
  border-left: unset;
}

.custom_cart_main .ty-value-changer__increase,
.custom_cart_main .ty-value-changer__decrease {
  width: 20px;
  height: 33px;
  font-size: 16px;
  line-height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom_cart_main .ty-value-changer__decrease {
  border-right: unset;
}
.custom_cart_main .ty-value-changer__increase {
  border-left: unset;
  margin-bottom: 0;
}
.custom_cart_main .subtotal-wrapper,
.custom_cart_main .quantity-wrapper {
  margin-top: 10px;
}
.custom_cart_main .subtotal-wrapper > span {
  width: 100%;
  text-align: left;
}
.custom_cart_main .subtotal-wrapper span:nth-child(2) {
  width: 92px;
  margin-left: 5px;
  font-weight: 600;
  font-size: 18px;
  text-align: right;
}
.custom_cart_main .ty-cart-total {
  margin-top: 32px;
  background-color: #fff;
}

.custom_cart_main .ty-cart-statistic__total-list {
  border-top: unset;
}

.custom_cart_main .ty-cart-statistic__total-list .ty-cart-statistic__item {
  width: max-content;
  margin-left: auto;
  border-top: 1px solid rgba(64, 33, 15, 0.5);
}

.custom_cart_main .ty-cart-statistic__total-title {
  margin-right: 20px;
  font-size: 1.8rem;
  font-weight: 500;
}

.custom_cart_main .ty-cart-statistic__total-value {
  width: 200px;
  font-size: 1.8rem;
  font-weight: 500;
}

.custom_cart_main .ty-product-options__item-label {
  font-size: 1.4rem;
  font-weight: 400;
}

.custom_cart_main .ty-product-options select,
.custom_cart_main .ty-product-options span {
  font-size: 1.4rem;
  border-radius: 4px;
}

.custom_cart_main .ty-cart-total .ty-input-append .ty-input-text {
  height: 42px;
  font-size: 1.4rem;
  font-weight: 400;
  border: 1px solid #40210F;
  border-radius: 4px;
}

.custom_cart_main .ty-cart-total .ty-input-append .ty-input-text::placeholder {
  font-size: 1.4rem;
  font-weight: 400;
}

.custom_cart_main .ty-cart-total .ty-input-append .ty-input-text:focus {
  outline: none;
}

.custom_cart_main .ty-cart-total .ty-btn-go {
  height: 40px;
  color: #fff;
  background-color: #40210F;
  border: none;
  border-radius: 0 2px 2px 0;
}

.custom_cart_main .help-inline p {
  font-size: 1.3rem;
  font-weight: 400;
}

.custom_cart_main .ty-btn {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0em;
  color: #fff;
  background-color: #40210F;
  padding: 13px 24px;
  border-radius: 28px;
}

.custom_cart_main .ty-btn__tertiary {
  background-color: #fff;
  color: #40210F;
  border: 1px solid #40210F;
}

.custom_cart_main .ty-cart-content__right-buttons {
  max-width: 385px;
  width: 100%;
}

.custom_cart_main .ty-btn__primary {
  width: 100%;
  background: linear-gradient(to right, #F4A466 0%, #FFB600 50%, #FECE62 100%);
}

.custom_cart_main .ty-table th,
.custom_cart_main .ty-table th a {
  color: #40210F;
}

.custom_cart_main .ty-order-products__price {
  font-size: 1.4rem;
}

.custom_cart_main .ty-cart-statistic__value {
  width: 200px;
}

.custom_cart_main .ty-cart-statistic_title_main {
 font-weight: 400;
}

.custom_cart_main .ty-price {
  font-weight: 600;
  color: #40210F;
}

.custom_cart_main .ty-statistic-list-taxes {
  display: none;
}

@media screen and (max-width: 767px) {
  .custom_cart_main .ty-mainbox-title {
    text-align: center;
  }

  .custom_cart_main .ty-btn,
  .custom_cart_main .ty-btn__tertiary,
  .custom_cart_main .ty-btn__primary,
  .custom_cart_main .ty-cart-content__top-buttons .ty-btn+.ty-btn,
  .custom_cart_main .ty-cart-content__bottom-buttons .ty-btn+.ty-btn {
    max-width: 310px;
    margin-inline: auto;
  }

  .custom_cart_main .ty-pict {
    margin: 8px auto;
  }

  .custom_cart_main .ty-cart-statistic__total-list .ty-cart-statistic__item {
    width: unset;
  }

  .custom_cart_main .ty-table tr {
    position: relative;
  }

  .custom_cart_main .ty-table td {
    border-bottom: 0.5px solid rgba(64, 33, 15, 0.2);
    border-bottom: unset;
  }

  .custom_cart_main .custom-delete {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .custom_cart_main .ty-cart-content__qty {
    justify-content: end !important;
    gap: 31px !important;
  }

  .custom_cart_main .ty-cart-statistic__value,
  .custom_cart_main .ty-cart-statistic__total-value {
    width: 50%;
  }

  .custom_cart_main .ty-cart-statistic__total-title {
    margin-right: 0;
  }

  .custom_cart_main .buttons-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .custom_cart_main .ty-cart-content__right-buttons {
    margin-inline: auto;
  }
  .custom_cart_main .subtotal-wrapper > span {
    text-align: right;
    width: unset;
  }
  .custom_cart_main .subtotal-wrapper span:nth-child(2) {
    width: 70px;
    
  }
  /* thead.checkout {
    display: none;
  } */
}

/* Popup */
div.ui-dialog {
  border-radius: 17px;
}

div.ui-dialog .ui-dialog-title {
  color: #40210F;
  font-weight: 700;
}

div.ui-dialog .ty-control-group__label {
  color: #40210F;
}

div.ui-dialog .ty-input-text-medium {
  max-width: 300px;
  width: 100%;
  height: auto;
  border: none;
  background-color: #f2f2f2;
  padding: 8px;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
}

div.ui-dialog .ty-input-text-medium:focus {
  border-color: transparent;
}

div.ui-dialog .ty-estimation-buttons .ty-btn {
  background-color: #40210F;
  padding: 8px 16px;
  border-radius: 28px;
}

.custom_cart_main .cart-group {
  margin-bottom: 32px;
  border: 0.5px solid rgba(64, 33, 15, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.custom_cart_main .cart-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #F9F5F1;
  border-bottom: 0.5px solid rgba(64, 33, 15, 0.2);
}

.custom_cart_main .cart-group__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #40210F;
}

.custom_cart_main .cart-group__badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 1.2rem;
  font-weight: 500;
  border-radius: 16px;
}

.custom_cart_main .cart-group__badge--instock {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.custom_cart_main .cart-group__badge--preorder {
  background-color: #FFF3E0;
  color: #E65100;
}

.custom_cart_main .cart-group .ty-cart-content {
  margin: 0;
}

.custom_cart_main .cart-group__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #FAFAFA;
  border-top: 1px solid rgba(64, 33, 15, 0.2);
}

.custom_cart_main .cart-group__subtotal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom_cart_main .cart-group__subtotal-label {
  font-size: 1.6rem;
  font-weight: 500;
  color: #40210F;
}

.custom_cart_main .cart-group__subtotal-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: #40210F;
}

.custom_cart_main .cart-group__actions {
  display: flex;
  gap: 12px;
}

.custom_cart_main .cart-group__checkout-btn {
  min-width: 180px;
  text-align: center;
}

.custom_cart_main .cart-group__notice {
  margin-top: 20px;
  padding: 16px 20px;
  background-color: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 8px;
}

.custom_cart_main .cart-group__warning {
  margin: 0;
  font-size: 1.4rem;
  color: #F57C00;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .custom_cart_main .cart-group__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .custom_cart_main .cart-group__footer {
    flex-direction: column;
    gap: 16px;
  }

  .custom_cart_main .cart-group__subtotal {
    width: 100%;
    justify-content: space-between;
  }

  .custom_cart_main .cart-group__actions {
    width: 100%;
  }

  .custom_cart_main .cart-group__checkout-btn {
    width: 100%;
  }
  .custom_cart_main .ty-cart-content tbody tr {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    gap: 0 10px;
    padding: 12px 8px;
    position: relative;
    border: none;
  }

  .custom_cart_main .ty-cart-content__image-block {
    display: block !important;
    grid-column: 1;
    grid-row: 1;
    width: 70px !important;
    padding: 0 !important;
  }

  .custom_cart_main .ty-cart-content__image-block .ty-table__responsive-content {
    padding: 0 !important;
    margin: 0 !important;
  }

  .custom_cart_main .ty-cart-content__description .ty-table__responsive-content {
    padding: 0 !important;
    margin: 0 !important;
  }

  .custom_cart_main .ty-cart-content__price .ty-table__responsive-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .custom_cart_main .ty-cart-content__image {
    display: block !important;
    width: 70px !important;
    min-width: 70px;
    max-width: 70px;
    padding: 0 !important;
    margin: 0 !important;
  }

  .custom_cart_main .ty-cart-content__image img {
    width: 70px !important;
    height: auto !important;
    display: block !important;
  }

  .custom_cart_main .ty-cart-content__description {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    padding: 0 !important;
    padding-right: 30px !important;
  }

  .custom_cart_main .ty-cart-content__price {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
    padding: 8px 0 0 80px !important;
  }

  .custom_cart_main .ty-cart-content__price .custom-delete,
  .custom_cart_main .ty-cart-content__price .ty-delete-big {
    position: absolute;
    top: 12px;
    right: 8px;
  }

  .custom_cart_main .ty-cart-content__product-title {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 4px;
    display: inline;
  }

  .custom_cart_main .ty-cart-content__sku {
    font-size: 1.2rem;
    margin-bottom: 0;
  }

  .custom_cart_main .cm-hidden-wrapper {
    margin-top: 2px;
    margin-bottom: 0;
  }

  .custom_cart_main .quantity-wrapper {
    margin-top: 4px;
    margin-bottom: 2px;
  }

  .custom_cart_main .subtotal-wrapper {
    margin-top: 4px;
    margin-bottom: 0;
    margin-right: 5px;
  }

  .custom_cart_main .quantity-wrapper > span,
  .custom_cart_main .subtotal-wrapper > span,
  .custom_cart_main .ty-cart-content__qty > span {
    font-size: 1.4rem;
  }

  .custom_cart_main .ty-cart-content__qty > span:first-child,
  .custom_cart_main .subtotal-wrapper > span:first-child {
    display: inline-block;
    min-width: 50px;
    text-align: right;
  }
}

.notification-body-extended {
  margin-left: 12px;
  margin-right: 12px;
}
