@charset "UTF-8";

/* Page-scope reset */
html {
  overflow-x: hidden;
}

body.com-page-cart {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

.store-cart-page {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body.com-page-cart,
body.com-page-cart *,
body.com-page-cart *::before,
body.com-page-cart *::after {
  box-sizing: border-box;
}

body.com-page-cart #contents,
body.com-page-cart #store_content,
body.com-page-cart #cart_content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.com-page-cart #contents {
  margin: 16px auto 32px;
  padding: 0 14px;
}

.store-cart-page #store_title {
  margin: 0;
  text-align: left;
  font-size: 30px;
  line-height: 1.3;
}

.store-cart-domestic-note {
  margin: 8px 0 0;
  color: #4b5568;
  font-size: 14px;
  line-height: 1.6;
}

.store-cart-domestic-note a {
  color: #1b3f8b;
  text-decoration: underline;
}

.store-cart-steps {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.store-cart-steps li {
  border: 1px solid #d7dde8;
  border-radius: 999px;
  color: #4a5468;
  font-size: 13px;
  line-height: 1;
  padding: 8px 12px;
  background: #fff;
}

.store-cart-steps li.is-active {
  border-color: #101d39;
  background: #101d39;
  color: #fff;
  font-weight: 700;
}

.store-cart-page #cart_content {
  width: 100%;
  max-width: 1200px;
  margin: 16px auto 40px;
  padding: 0 16px;
  box-sizing: border-box;
}

.store-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.store-cart-main,
.store-cart-side {
  min-width: 0;
}

.store-cart-header {
  grid-column: 1 / -1;
  margin: 0 0 2px;
}

.store-cart-card {
  background: #fff;
  border: 1px solid #d7dde8;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.store-cart-card-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.3;
  color: #101d39;
}

.cart-list-modern {
  display: grid;
  gap: 12px;
}

.cart-empty-text {
  margin: 0;
  padding: 18px;
  border: 1px solid #d3d7df;
  border-radius: 8px;
  color: #5f697d;
  background: #fafbfd;
}

.cart-line-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: start;
  border: 1px solid #d3d7df;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  overflow: hidden;
}

.cart-line-thumb-link {
  display: block;
  width: 120px;
  text-decoration: none;
}

.cart-line-thumb {
  display: block;
  width: 120px;
  height: 120px;
  border: 1px solid #e1e4eb;
  border-radius: 8px;
  box-sizing: border-box;
  object-fit: cover;
  background: #f4f6fa;
}

.cart-line-main {
  min-width: 0;
  overflow: hidden;
}

.cart-line-name {
  display: block;
  max-width: 100%;
  margin-bottom: 8px;
  color: #1b3f8b;
  text-decoration: underline;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.cart-line-name:hover {
  text-decoration: none;
}

.cart-line-meta {
  margin: 4px 0 0;
  color: #2f3544;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.cart-line-meta strong {
  color: #101d39;
}

.cart-line-actions {
  display: flex;
  align-items: start;
}

.btn-remove-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #c8d1df;
  border-radius: 18px;
  padding: 0 14px;
  color: #1f2d46;
  background: #f7f9fc;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: background-color 0.2s ease;
}

.btn-remove-item:hover {
  background: #ebf0f8;
}

.store-cart-error,
.paynow-error {
  margin: 0 0 12px;
  color: #b71b24;
  font-size: 14px;
  line-height: 1.5;
}

.cart-table-modern {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.cart-table-modern th,
.cart-table-modern td {
  border: 1px solid #d3d7df;
  padding: 10px 8px;
  color: #2f3544;
}

.cart-table-modern th {
  background: #eff1f6;
  font-weight: 700;
}

.cart-table-modern td a {
  color: #1b3f8b;
  text-decoration: underline;
}

.cart-table-modern td a:hover {
  text-decoration: none;
}

.cart-table-modern td.alg_right { text-align: right; }
.cart-table-modern td.alg_center { text-align: center; }

.store-cart-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 14px;
}

.store-cart-actions-row a {
  color: #1b3f8b;
  text-decoration: underline;
}

.store-cart-actions-row a:hover {
  text-decoration: none;
}

.store-cart-notice-summary {
  margin: 0;
  padding-left: 18px;
}

.store-cart-notice-summary li {
  margin-bottom: 8px;
  color: #2f3544;
  line-height: 1.6;
}

.store-cart-notice-links {
  margin: 14px 0 0;
  color: #2f3544;
  line-height: 1.6;
}

.store-cart-notice-links a {
  color: #1b3f8b;
  text-decoration: underline;
}

.store-cart-notice-details {
  margin-top: 14px;
}

.store-cart-notice-details summary {
  cursor: pointer;
  color: #1e2a44;
  font-weight: 700;
}

.store-cart-notice-detail-body {
  margin-top: 10px;
  color: #2f3544;
  font-size: 14px;
  line-height: 1.7;
}

.store-cart-notice-detail-body a {
  color: #1b3f8b;
  text-decoration: underline;
}

.order-summary-list {
  margin: 0;
  padding: 0;
}

.order-summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #eceef4;
  padding: 8px 0;
}

.order-summary-list dt,
.order-summary-list dd {
  margin: 0;
  color: #2f3544;
}

.order-summary-list dd {
  text-align: right;
  font-weight: 700;
}

.order-summary-list .is-total dt,
.order-summary-list .is-total dd {
  font-size: 20px;
  color: #101d39;
}

.order-summary-note {
  margin: 10px 0 0;
  color: #5f697d;
  font-size: 13px;
}

.paynow-flow {
  display: grid;
  gap: 10px;
}

.paynow-calc-form {
  display: grid;
  gap: 10px;
}

.paynow-step {
  border: 1px solid #dfe5f0;
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px;
}

.paynow-step-title {
  margin: 0 0 8px;
  color: #1c2740;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.paynow-step-number {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #233764;
  color: #fff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  font-weight: 700;
  flex: 0 0 20px;
}

.paynow-calc-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c7cfdd;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 16px;
  background: #fff;
  box-sizing: border-box;
}

.paynow-calc-form input[type="text"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c7cfdd;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 16px;
  background: #fff;
  box-sizing: border-box;
}

.country-combobox {
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 6px;
  align-items: center;
}

.country-combobox__toggle {
  min-height: 42px;
  border: 1px solid #c7cfdd;
  border-radius: 6px;
  background: #fff;
  color: #2f3544;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.country-combobox__toggle:hover {
  background: #f4f7fc;
}

.country-suggestion-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #c7cfdd;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 29, 57, 0.16);
  padding: 4px;
}

.country-suggestion-panel[hidden] {
  display: none;
}

.country-suggestion-item {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #2f3544;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  padding: 8px 10px;
  cursor: pointer;
}

.country-suggestion-item:hover,
.country-suggestion-item.is-active {
  background: #eef3fb;
}

.country-suggestion-empty {
  padding: 10px;
  color: #6a7488;
  font-size: 13px;
}

.country-select-hidden {
  position: absolute !important;
  left: -9999px;
  top: auto;
  opacity: 0 !important;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
}

.paynow-inline-note {
  margin: 0 0 8px;
  color: #b71b24;
  font-size: 13px;
}

.btn-calculate,
.btn-paylater {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #263b6b;
  border-radius: 8px;
  background: #fff;
  color: #263b6b;
  font-weight: 700;
  text-decoration: none;
  padding: 0 16px;
  box-sizing: border-box;
  cursor: pointer;
}

.btn-shipping-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #c7cfdd;
  border-radius: 8px;
  background: #f8fafd;
  color: #1f2d46;
  font-weight: 700;
  text-decoration: none;
  padding: 0 12px;
  margin-top: 4px;
  cursor: pointer;
}

.btn-shipping-table:hover {
  background: #edf2fa;
}

.btn-calculate:hover,
.btn-paylater:hover {
  background: #263b6b;
  color: #fff;
}

.paynow-help,
.paylater-description {
  margin: 0;
  color: #4b5568;
  font-size: 14px;
  line-height: 1.6;
}

.paynow-step-checkout .paynow-help {
  margin-bottom: 8px;
}

.paynow-error {
  margin: 8px 0 0;
}

.paypal-form {
  margin: 0;
}

.paypal-button-wrap {
  text-align: center;
  border: 1px solid #d9deea;
  border-radius: 8px;
  padding: 10px;
}

.paypal-button-wrap.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.paypal-button-image {
  max-width: 100%;
  height: auto;
}

.paylater-action {
  margin: 0;
}

.btn-paylater {
  width: 100%;
  min-height: 48px;
  background: #101d39;
  border-color: #101d39;
  color: #fff;
}

.btn-paylater:hover {
  background: #263b6b;
  color: #fff;
}

/* Shipping method modal */
.store-shipping-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  box-sizing: border-box;
}

.store-shipping-modal.is-open {
  display: block;
  overflow: hidden;
  touch-action: none;
}

.store-shipping-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.store-shipping-modal__dialog {
  position: fixed;
  z-index: 1;
  top: 8px;
  left: 8px;
  bottom: 8px;
  width: min(1120px, calc(100% - 16px));
  max-width: calc(100% - 16px);
  min-width: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  background: #fff;
  border-radius: 8px;
  padding: 14px 12px;
  box-sizing: border-box;
  touch-action: pan-y;
}

.store-shipping-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #c7cfdd;
  background: #fff;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  color: #2f3544;
  cursor: pointer;
}

.store-shipping-modal__title {
  margin: 0 38px 14px 0;
  color: #101d39;
  font-size: 24px;
  line-height: 1.3;
}

.shipping-method-table-wrap {
  overflow-x: auto;
}

.shipping-method-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 920px;
}

.shipping-method-table th,
.shipping-method-table td {
  border: 1px solid #7f7f7f;
  padding: 14px 12px;
  color: #1f1f1f;
  line-height: 1.4;
  text-align: left;
  vertical-align: middle;
}

.shipping-method-table thead th {
  background: #7f7f7f;
  color: #fff;
  font-weight: 700;
}

.shipping-method-table tbody th {
  width: 18%;
  text-align: center;
  background: #f2f2f2;
  font-weight: 700;
}

.shipping-method-table tbody tr:nth-child(odd) td {
  background: #fff;
}

.shipping-method-table tbody tr:nth-child(even) td {
  background: #f8f8f8;
}

.shipping-method-cards {
  display: none;
  min-width: 0;
}

.shipping-method-footnote {
  margin: 14px 0 0;
  color: #2f3544;
  line-height: 1.5;
}

body.store-shipping-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

/* Responsive */
@media (max-width: 980px) {
  .store-cart-layout {
    grid-template-columns: 1fr;
  }

  .store-cart-side {
    display: grid;
    gap: 12px;
  }

  .store-cart-card {
    margin-bottom: 0;
  }

  .store-cart-main {
    display: grid;
    gap: 12px;
  }
}

@media (max-width: 767px) {
  body.com-page-cart {
    padding-top: 0 !important;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    overscroll-behavior-x: none !important;
  }

  body.com-page-cart #contents {
    overflow-x: hidden;
    margin: 12px auto 20px;
    padding: 0 8px;
  }

  body.com-page-cart .header-sp {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden;
    transform: none !important;
  }

  body.com-page-cart .header-sp__bar,
  body.com-page-cart .header-sp__search {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.com-page-cart .header-sp__search {
    grid-template-columns: minmax(0, 1fr) 44px !important;
  }

  body.com-page-cart .header-sp__search input {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.com-page-cart #contents,
  body.com-page-cart #store_content,
  body.com-page-cart #cart_content,
  body.com-page-cart #f,
  body.com-page-cart .f_copy {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  body.com-page-cart .footer_content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 10px;
    box-sizing: border-box;
  }

  body.com-page-cart img,
  body.com-page-cart table {
    max-width: 100%;
  }

  body.com-page-cart .store-cart-notice-detail-body,
  body.com-page-cart .store-cart-notice-detail-body a,
  body.com-page-cart .store-cart-actions-row a,
  body.com-page-cart .cart-line-name {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .store-cart-page #cart_content {
    padding: 0 10px;
  }

  .store-cart-page #store_title {
    font-size: 24px;
  }

  .store-cart-card {
    padding: 14px;
    border-radius: 8px;
  }

  .store-cart-card-title {
    font-size: 20px;
  }

  .cart-line-item {
    grid-template-columns: 84px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .cart-line-thumb {
    width: 84px;
    height: 84px;
  }

  .cart-line-thumb-link {
    width: 84px;
  }

  .cart-line-name {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .cart-line-meta {
    font-size: 13px;
  }

  .cart-line-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 4px;
  }

  .store-cart-actions-row {
    flex-direction: column;
    gap: 6px;
  }

  .store-cart-notice-summary {
    padding-left: 16px;
  }

  .store-cart-notice-links {
    font-size: 14px;
  }

  .store-shipping-modal__title {
    font-size: 20px;
    margin-right: 42px;
  }

  .store-shipping-modal__dialog {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-width: none;
    max-height: none;
    border-radius: 8px;
    padding: 12px 10px;
    margin: 0;
  }

  .shipping-method-table-wrap {
    display: none;
  }

  .shipping-method-cards {
    display: grid;
    gap: 10px;
    min-width: 0;
  }

  .shipping-method-card {
    border: 1px solid #cfd6e2;
    border-radius: 8px;
    padding: 10px;
    background: #fafbfd;
    min-width: 0;
  }

  .shipping-method-card h4 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #101d39;
  }

  .shipping-method-card dl {
    margin: 0;
    padding: 0;
  }

  .shipping-method-card dl > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    border-top: 1px solid #e4e8f0;
  }

  .shipping-method-card dl > div:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .shipping-method-card dt,
  .shipping-method-card dd {
    margin: 0;
    color: #2f3544;
    font-size: 13px;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .shipping-method-card dt {
    font-weight: 700;
  }

  .shipping-method-footnote {
    font-size: 13px;
  }

  .store-cart-page {
    padding-bottom: 16px;
  }
}
