/* ===========================
   account page redesign
   shopping_cart テイスト
=========================== */

#accountDefault {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 0 48px;
  box-sizing: border-box;
}

.account-page-header {
  margin-bottom: 18px;
}

#accountDefaultHeading {
  margin: 0;
  padding: 14px 20px;
  background: #31a7a6;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  border-radius: 10px 10px 0 0;
}

#accountDefault .messageStackWarning,
#accountDefault .messageStackError,
#accountDefault .messageStackSuccess,
#accountDefault .messageStackCaution {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
}

.account-card {
  margin: 0 0 20px;
  background: #f5f5f5;
  border: 1px solid #d8d8d8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.account-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 0;
}

.account-card-head h2,
.account-section-title {
  margin: 0;
  padding: 0;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.account-section-title {
  padding: 14px 18px 0;
}

.account-show-all {
  margin: 0;
}

.show-all {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.show-all:hover {
  background: #f0f0f0;
  text-decoration: none;
}

.account-card-body {
  padding: 14px 18px 18px;
}

.account-table,
.account-info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.account-table th,
.account-table td,
.account-info-table td {
  border: 1px solid #dddddd;
  padding: 12px 10px;
  font-size: 14px;
  line-height: 1.7;
  vertical-align: middle;
  word-break: break-word;
}

.account-table th {
  background: #ececec;
  font-weight: 700;
  text-align: left;
}

.account-table td.alignRight,
.account-info-table td.alignRight {
  text-align: right;
}

.account-table td.alignCenter {
  text-align: center;
}

.account-order-name {
  font-weight: 500;
}

.account-view-button img {
  max-width: 62px;
  height: auto;
}

.account-point-table td:last-child {
  width: 180px;
}

.account-text-link {
  color: #333;
  font-weight: 700;
  text-decoration: underline;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.account-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-link-list li {
  margin: 0 0 10px;
}

.account-link-list li:last-child {
  margin-bottom: 0;
}

.account-link-list a {
  display: block;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.account-link-list a:hover {
  background: #f0f0f0;
  text-decoration: none;
}

#sendSpendWrapper {
  margin-top: 18px;
}

@media (max-width: 900px) {
  #accountDefault {
    padding: 12px 8px 40px;
  }

  .account-card-head {
    display: block;
    padding: 14px 14px 0;
  }

  .account-show-all {
    margin-top: 10px;
  }

  .account-card-body {
    padding: 12px 14px 14px;
  }

  .account-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .account-table th,
  .account-table td,
  .account-info-table td {
    font-size: 13px;
    padding: 10px 8px;
  }

  #accountDefaultHeading {
    font-size: 18px;
    padding: 12px 14px;
  }
}
/* マイページ：ご注文履歴タイトルを白ベースに */
#accountDefault .account-orders-card #previous-orders {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #111;
  border: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

#accountDefault .account-orders-card .account-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 10px;
  background: #fff;
}
