/* cj-cart-gate.css — cart page "continue gate" (unsigned-in) + signed-in CTA. Scoped under .cj-cart-gate so it cannot affect other pages/sections. */

/* .c-cart_submit (bundle.css) carries its own border-bottom; .cj-cart-gate
   draws a full border of its own, so the inherited one must be cleared here
   to avoid a doubled line at the bottom edge. Scoped to this file (cart page
   only), so it cannot affect any other use of .c-cart_submit. */
.c-cart_submit {
  border-bottom: 0;
}

@media screen and (max-width: 719px) {
  .c-cart_submit {
    border-top: 0;
  }
}

.cj-cart-gate {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding: 1.5rem 1.15rem 1.35rem;
  border: 1px solid #e8e4dc;
  background: transparent;
  text-align: left;
}

.cj-cart-gate--signed {
  margin-top: 0;
  padding: 1.25rem 1.15rem;
}

.cj-cart-gate__title {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  margin: 0;
  padding: 0 0.7rem;
  transform: translate(-50%, -50%);
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic",
    sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  background: #fff;
}

.cj-cart-gate .line_ec,
.cj-cart-gate .amazon_pay_v2_ec {
  margin: 0;
  padding: 0;
}

.cj-cart-gate .line_ec .button-container,
.cj-cart-gate .amazon_pay_v2_ec .button-container {
  margin: 0;
}

.cj-cart-gate .line_ec .button-container .button {
  height: 45px;
  line-height: 45px;
  padding-left: 45px;
}

.cj-cart-gate .line_ec .button-container .before-btn-line,
.cj-cart-gate .line_ec .button-container .after-btn-line {
  width: 45px;
  height: 45px;
}

.cj-cart-gate .amazon_pay_v2_ec #AmazonPayLoginBtnMainArea {
  display: block;
  width: 100%;
}

.cj-cart-gate #AmazonLoginButtonMain {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: 600px;
  height: 45px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cj-cart-gate__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  color: #8a8680;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.cj-cart-gate__divider::before,
.cj-cart-gate__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2ddd4;
}

.cj-cart-gate__email {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cj-cart-gate__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cj-cart-gate__field-label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #5c5852;
}

.cj-cart-gate__input {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cfc9bf;
  background: #faf9f7;
  font-size: 0.9375rem;
  color: #1a1a1a;
  box-sizing: border-box;
}

.cj-cart-gate__input:focus {
  outline: 2px solid #b5985a;
  outline-offset: 1px;
}

.cj-cart-gate__primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid #1a1a1a;
  border-radius: 4px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.cj-cart-gate__primary:hover {
  background: #333;
  border-color: #333;
}

.cj-cart-gate__forgot {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
}

.cj-cart-gate__forgot a {
  color: #5c5852;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cj-cart-gate__forgot a:hover {
  color: #1a1a1a;
}

.cj-cart-gate__secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 45px;
  padding: 0.7rem 1rem;
  border: 1.5px solid #1a1a1a;
  border-radius: 4px;
  background: transparent;
  color: #1a1a1a;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-sizing: border-box;
}

.cj-cart-gate__secondary:hover {
  background: #f7f5f1;
}

/* Hero total above line items */
.cj-cart-hero-total { display: flex; align-items: baseline; justify-content: space-between; gap: 0.65rem; padding: 0.15rem 0 0.35rem; margin: 0 0 0.85rem; }
.cj-cart-hero-total__title { color: #5c5852; font-size: 1.125rem; font-weight: 600; letter-spacing: 0.06em; }
.cj-cart-hero-total__price { color: #1a1a1a; font-size: 3rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cj-cart-hero-total__mark { margin-right: 0.05em; font-size: 1em; font-weight: 700; }
@media (min-width: 768px) {
  .cj-cart-hero-total { justify-content: flex-end; margin-bottom: 1rem; }
  .cj-cart-hero-total__price { font-size: 3.5rem; }
}

/* Delete link as compact pill (icon hidden) */
.c-cart_item__action__delete .c-cart_item__action__delete__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 1.75rem; padding: 0.2rem 0.7rem;
  border: 1px solid #cfcac2; border-radius: 999px; background: #fff;
  color: #5c5852; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em;
  line-height: 1.2; text-decoration: none;
}
.c-cart_item__action__delete .c-cart_item__action__delete__btn .u-icon--close { display: none; }
.c-cart_item__action__delete .c-cart_item__action__delete__btn:hover { border-color: #8a8680; color: #1a1a1a; opacity: 1; }
.c-cart_item__action__delete .c-cart_item__action__delete__btn.hide { display: none; }
