.cart-amount > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 10px;
}
.cart-amount > li em {
  font-style: normal;
}
.cart-amount > li span {
  font-weight: bold;
}
.cart-amount__flex-end > li {
  justify-content: flex-end;
}
.cart-amount__flex-end > li span {
  margin-inline-start: 12px;
}
.cart-amount__total {
  justify-content: space-between !important;
}
.cart-amount__total span {
  color: rgba(var(--color-sale));
  font-weight: 400 !important;
}
@media (max-width: 959px) {
  .cart-amount__flex-end > li {
    justify-content: space-between;
  }
  .cart-amount__flex-end > li span {
    margin-inline-start: 0;
  }
}
.cart-amount .cart-amount__discount-label {
  display: flex;
  gap: 4px;
  align-items: center;
  color: rgb(var(--color-light-text));
}
.cart-amount .cart-amount__discount-label svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.cart-amount .cart-amount__discount span {
  color: rgb(var(--color-discount));
  white-space: nowrap;
}
.cart-coupon--disabled {
  pointer-events: none;
}
.cart-coupon__form {
  display: flex;
  gap: 6px;
}
.cart-coupon__form .field {
  margin-block-end: 0;
}
.cart-coupon__error {
  margin-block: 8px 0;
}
.cart-coupon__list {
  display: flex;
  flex-wrap: wrap;
  margin-block-end: 15px;
}
.cart-coupon__list-item {
  display: flex;
  align-items: center;
  padding-block: 5px;
  padding-inline: 8px;
  margin-block-start: 8px;
  margin-inline-end: 6px;
  background-color: rgba(var(--color-text), 0.1);
  border-radius: 4px;
}
.cart-coupon__list-tag {
  display: flex;
  align-items: center;
  margin-inline-end: 6px;
  opacity: 0.3;
}
.cart-coupon__list-tag svg {
  width: 20px;
  height: 20px;
}
.cart-coupon__list-close {
  display: flex;
  align-items: center;
  margin-inline-start: 15px;
  cursor: pointer;
}
.cart-empty {
  text-align: center;
}
.cart-empty__body {
  padding-block: 80px;
}
@media (max-width: 959px) {
  .cart-empty__body {
    padding-block: 130px;
  }
}
.cart-fixed-checkout {
  position: fixed;
  inset-block-end: 0;
  inset-inline-start: 0;
  z-index: var(--z-index-fixed);
  display: none;
  width: 100%;
  background-color: rgb(var(--color-background));
  opacity: 0;
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out;
  transform: translateY(100%);
}
@media (max-width: 959px) {
  .cart-fixed-checkout {
    display: block;
  }
}
.cart-fixed-checkout__container {
  box-shadow: 0 -4px 20px 0 rgba(var(--color-text), 0.05);
}
.cart-fixed-checkout__dropdown {
  text-align: center;
}
.cart-fixed-checkout__dropdown span {
  cursor: pointer;
}
.cart-fixed-checkout .cart-fixed-checkout__inner {
  max-height: 500px;
  overflow: hidden;
  opacity: 1;
  transition:
    max-height 0.2s ease-out,
    opacity 0.2s ease-out;
}
.cart-fixed-checkout__sub-info {
  padding-block: 0 12px;
  padding-inline: 12px;
}
.cart-fixed-checkout__main-info {
  padding: 12px;
  border-block-start: 1px solid #ccc;
}
.cart-fixed-checkout__total {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.cart-fixed-checkout__total-amount {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  column-gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.cart-fixed-checkout__total-saved {
  color: rgb(var(--color-discount));
}
.cart-fixed-checkout__arrow svg {
  transition: transform 0.2s ease-out;
  transform: rotate(180deg);
}
.cart-fixed-checkout__buttons {
  margin-block-start: 10px;
  text-align: center;
}
.cart-fixed-checkout--collapsed .cart-fixed-checkout__inner {
  max-height: 0;
  opacity: 0;
}
.cart-fixed-checkout--collapsed .cart-fixed-checkout__arrow svg {
  transform: rotate(0);
}
.cart-fixed-checkout--visible {
  opacity: 1;
  transform: translateY(0);
}
.cart-item__amount-operator {
  display: flex;
  gap: 20px;
  align-items: center;
}
.cart-item__amount {
  margin-block-start: 8px;
}
.cart-item__amount .cart-item__volume-pricing {
  margin-block-start: 10px;
}
.cart-item__remove {
  cursor: pointer;
}
.cart-item__fail {
  display: flex;
  align-items: center;
}
.cart-item__fail > * {
  margin-block-start: 20px;
}
.cart-item__fail-tip {
  order: 1;
  margin-inline-start: 8px;
  color: rgb(var(--color-error-message));
}
.cart-item__fail-tip:empty,
.cart-item__fail-tip:empty + svg {
  display: none;
}
.cart-item__total {
  position: relative;
}
.cart-item__total-loading {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: none;
}
.cart-item__total-loading.loading {
  display: flex;
  animation: animation-circling linear 1s infinite;
}
.cart-item__total-loading.loading ~ * {
  visibility: hidden;
}
.cart-item__total-final {
  display: inline-block;
  color: rgb(var(--color-sale));
  font-weight: 500;
}
.cart-item__total-original {
  display: inline-block;
  color: rgb(var(--color-light-text));
  text-decoration: line-through;
}
.cart-item__volume-pricing theme-popover-content {
  z-index: 5;
  width: 245px;
  max-height: 240px;
  padding: 10px 0;
  overflow-y: scroll;
  background-color: rgb(var(--color-background));
  border: 1px solid #ddd;
}
.cart-item__volume-pricing-title {
  display: flex;
  align-items: center;
}
.cart-item__volume-pricing-title > span {
  margin-inline-start: 8px;
}
.cart-item__volume-pricing-rules {
  padding-block: 0 4px;
  padding-inline: 20px;
}
.cart-item__volume-pricing-list li {
  display: flex;
  justify-content: space-between;
  padding-block: 8px;
  padding-inline: 20px;
}
.cart-item__volume-pricing-list li:nth-child(odd) {
  background: rgba(var(--color-text), 0.03);
}
.cart-item__product {
  display: flex;
  column-gap: 20px;
  align-items: flex-start;
}
.cart-item__product-info {
  word-break: break-all;
}
.cart-item__picture {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  width: 140px;
}
.cart-item__title a {
  color: rgb(var(--color-text));
}
@media (max-width: 959px) {
  .cart-item__picture {
    width: 80px;
  }
}
.cart-item__picture a {
  display: block;
  width: 100%;
}
.cart-item__picture img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.cart-item__picture .placeholder {
  flex-grow: 1;
  background-color: rgb(var(--color-image-background));
}
.cart-item__total {
  margin-block-start: 8px;
}
.cart-item__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 4px;
}
.cart-item__options .cart-item__edit .icon-loading {
  display: none;
  margin: 8px;
  color: rgb(255 255 255 / 100%);
  animation: animation-button-loading linear 1.5s infinite;
}
.cart-item__options .cart-item__edit.loading {
  pointer-events: none;
}
.cart-item__options .cart-item__edit.loading .cart-item__edit-button {
  display: none;
}
.cart-item__options .cart-item__edit.loading .icon-loading {
  display: block;
}
.cart-item__options .cart-item__edit-button {
  width: 20px;
  height: 20px;
}
.cart-item__property {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-block-start: 4px;
}
.cart-item__property-name {
  margin-inline-end: 3px;
}
.cart-item__property-text {
  display: block;
  max-width: 100%;
  word-break: break-all;
}
.cart-item__property-images {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.cart-item__property-link {
  display: block;
}
.cart-item__property-image {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.cart-item__discount {
  margin-block-start: 4px;
  color: rgb(var(--color-discount));
}
.cart-item__discount > li {
  display: flex;
  align-items: center;
}
.cart-item__discount > li svg {
  width: 12px;
  height: 12px;
  margin-inline-end: 4px;
  color: rgb(var(--color-tag-background));
}
.cart-item__quantity {
  margin-block-start: 10px;
}
.cart-drawer__body {
  display: flex;
  flex-direction: column;
  width: 500px;
  color: rgb(var(--color-text));
}
@media (max-width: 959px) {
  .cart-drawer__body {
    width: 90%;
  }
}
.cart-drawer__header {
  position: relative;
  padding: 20px;
}
.cart-drawer__header::after {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  content: "";
  background-color: rgb(var(--color-entry-line));
}
.cart-drawer__close {
  position: absolute;
  inset-block-start: 22px;
  inset-inline-end: 16px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: 0;
}
.cart-drawer__close svg {
  width: 12px;
  height: 12px;
}
.cart-drawer__loading {
  position: sticky;
  inset: 0;
  z-index: var(--z-index-focus);
  display: none;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  background-color: rgb(var(--color-background));
}
.cart-drawer__loading-inn {
  padding-block-start: 120px;
}
.cart-drawer__loading-inn .loading--rotator {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
}
.cart-drawer__loading-inn .loading--rotator svg {
  width: 100%;
  height: 100%;
}
.cart-drawer__loading-inn p {
  margin-block-start: 12px;
}
.cart-drawer .cart-item {
  padding-block: 20px;
}
.cart-drawer .cart-item__disabled {
  pointer-events: none;
}
.cart-drawer__payment {
  position: relative;
  padding-block-start: 20px;
}
.cart-drawer__payment::before {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: -20px;
  width: calc(100% + 40px);
  height: 1px;
  content: "";
  background-color: rgb(var(--color-entry-line));
}
.cart-drawer__payment .cart-amount {
  margin-block-start: 15px;
}
.cart-drawer__inner {
  position: relative;
  flex: 1;
  padding-inline: 20px;
  overflow-y: scroll;
  background-color: rgb(var(--color-background));
}
.cart-drawer__inner--loading {
  overflow: hidden;
}
.cart-drawer__inner--loading .cart-drawer__payment::before {
  inset-inline-start: 0;
  width: 100%;
}
.cart-drawer__inner--loading .cart-coupon__form {
  overflow: hidden;
}
.cart-drawer__inner--loading .cart-drawer__loading {
  display: flex;
}
.cart-drawer .cart-fixed-checkout {
  position: static;
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Cart drawer cleanup (2026-05-14) — P1 readability & layout
   - Clamp product titles to 2 lines (brand suffix removed via template)
   - Tighten spacing between title / options / total / discount / quantity
   - Inline price + line-through original price
   - 50+ friendly font sizes
   ========================================================= */
.cart-drawer .cart-item__product { column-gap: 14px; }
.cart-drawer .cart-item__product-infos {
  display: flex; flex-direction: column;
  min-width: 0;
  flex: 1;
}
.cart-drawer .cart-item__product-infos-text { min-width: 0; }

/* Cart drawer header ("カート") */
.cart-drawer .cart-drawer__header h2,
.cart-drawer .cart-drawer__header .h3 {
  font-size: 20px !important;
  font-weight: 800 !important;
}

/* Title: clamp to 2 lines, larger for 50+ readability */
.cart-drawer .cart-item__title {
  font-size: 16px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  margin-block-end: 6px;
}
.cart-drawer .cart-item__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  color: rgb(var(--color-text)) !important;
}

/* Variant row */
.cart-drawer .cart-item__options {
  margin-block-start: 4px !important;
  font-size: 14px !important;
  gap: 6px;
  color: rgb(var(--color-text-secondary, 75 75 75));
  font-weight: 500;
}
.cart-drawer .cart-item__options .cart-item__edit-button {
  width: 22px !important;
  height: 22px !important;
}

/* Price block: compact, inline with original strike-through, larger */
.cart-drawer .cart-item__total {
  margin-block-start: 8px !important;
  font-size: 17px !important;
}
.cart-drawer .cart-item__total-amount {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.cart-drawer .cart-item__total-final {
  font-size: 18px !important;
  font-weight: 800 !important;
}
.cart-drawer .cart-item__total-original {
  font-size: 13px !important;
  opacity: 0.7;
  font-weight: 500;
}

/* Properties (無料ギフト badge): pink pill, readable */
.cart-drawer .cart-item__properties {
  margin-block-start: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cart-drawer .cart-item__property {
  margin-block-start: 0;
  font-size: 12px !important;
  padding: 2px 10px !important;
  background: rgba(212, 129, 122, 0.12);
  color: #b23a3f;
  border-radius: 999px;
  line-height: 1.5;
  font-weight: 700;
}
.cart-drawer .cart-item__property-name { font-weight: 700; }

/* Discount label */
.cart-drawer .cart-item__discount {
  margin-block-start: 6px !important;
  font-size: 14px !important;
  line-height: 1.5;
  font-weight: 500;
}
.cart-drawer .cart-item__discount > li { gap: 6px; }
.cart-drawer .cart-item__discount > li svg {
  width: 16px !important;
  height: 16px !important;
}

/* Quantity controls — larger numbers + buttons */
.cart-drawer .cart-item__quantity {
  margin-block-start: 10px !important;
}
.cart-drawer .cart-item__quantity input,
.cart-drawer .cart-item__quantity .quantity-input__input {
  font-size: 15px !important;
  font-weight: 700 !important;
}
.cart-drawer .cart-item__quantity button {
  font-size: 16px !important;
}

/* Coupon + total amount in footer area */
.cart-drawer .cart-amount,
.cart-drawer .cart-amount__total,
.cart-drawer .cart-amount__subtotal { font-size: 15px !important; }
.cart-drawer .cart-amount__total-price,
.cart-drawer .cart-amount__subtotal-price { font-size: 18px !important; font-weight: 800 !important; }

/* Reduce item-to-item gap so list is more compact */
.cart-drawer .cart-item + .cart-item,
.cart-drawer .cart-items > * + * { margin-block-start: 14px; }

@media (min-width: 720px) {
  .cart-drawer .cart-drawer__header h2,
  .cart-drawer .cart-drawer__header .h3 { font-size: 22px !important; }
  .cart-drawer .cart-item__title { font-size: 17px !important; }
  .cart-drawer .cart-item__options { font-size: 14px !important; }
  .cart-drawer .cart-item__total-final { font-size: 20px !important; }
  .cart-drawer .cart-item__total-original { font-size: 14px !important; }
  .cart-drawer .cart-item__property { font-size: 13px !important; }
  .cart-drawer .cart-item__discount { font-size: 14px !important; }
  .cart-drawer .cart-amount__total-price,
  .cart-drawer .cart-amount__subtotal-price { font-size: 20px !important; }
}

/* =========================================================
   P2 — Always-expanded gift group card
   Visually separates free-gift items from purchased items.
   No toggle (per user request).
   ========================================================= */
.cart-drawer .cart-gift-group {
  margin: 14px 0;
  border: 1.5px dashed #d4af37;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaef 0%, #fffdf8 100%);
  overflow: hidden;
}
.cart-drawer .cart-gift-group__header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #8b5a00;
  background: rgba(212, 175, 55, 0.08);
  border-bottom: 1px dashed rgba(212, 175, 55, 0.4);
}
.cart-drawer .cart-gift-group__icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.cart-drawer .cart-gift-group__label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
}
.cart-drawer .cart-gift-group__badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #c8102e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cart-drawer .cart-gift-group__body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-drawer .cart-gift-group__body .cart-item {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 10px;
}
@media (min-width: 720px) {
  .cart-drawer .cart-gift-group__header { font-size: 17px; padding: 14px 18px; }
  .cart-drawer .cart-gift-group__icon { font-size: 26px; }
  .cart-drawer .cart-gift-group__label { font-size: 16px; }
  .cart-drawer .cart-gift-group__badge { font-size: 13px; padding: 5px 14px; }
}
