/**
 * ToyuToyu Plugin Frontend Stylesheet
 */
/* === グローバルスタイル & フォーム共通 === */
.toyutoyu-form-container {
  max-width: 400px;
  margin: 3em auto;
  padding: 0 15px;
}
.form-logo {
  text-align: center;
  margin-bottom: 2em;
}
.form-logo img {
  max-width: 150px;
  height: auto;
}
.toyutoyu-styled-form {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
}
.toyutoyu-styled-form .form-row {
  margin-bottom: 1.2em;
}
.toyutoyu-styled-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5em;
  font-size: 14px;
  color: #333;
}
.toyutoyu-styled-form .textbox, .toyutoyu-styled-form select.textbox {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
}
.toyutoyu-styled-form .terms {
  font-size: 14px;
}
.toyutoyu-styled-form .terms .checkbox-label {
  display: flex;
  align-items: center;
  font-weight: normal;
}
.toyutoyu-styled-form .terms input[type="checkbox"] {
  margin-right: 8px;
}
.toyutoyu-styled-form .terms a {
  color: #0073aa;
  text-decoration: underline;
}
.toyutoyu-styled-form .form-submit .button, .toyutoyu-styled-form .l-b-login {
  width: 100%;
  background-color: #5BC3BF;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.toyutoyu-styled-form .form-submit .button:hover, .toyutoyu-styled-form .l-b-login:hover {
  background-color: #4caaa7;
}
.toyutoyu-styled-form .form-links {
  margin-top: 1.5em;
  text-align: center;
  font-size: 14px;
}
.toyutoyu-styled-form .form-links a {
  display: block;
  margin-bottom: 0.8em;
  color: #555;
}
.toyutoyu-form-container .form-footer {
  margin-top: 2em;
  text-align: center;
  font-size: 14px;
  color: #777;
}
.form-footer p {
  margin: 0.5em 0;
}
.form-footer a {
  color: #555;
  text-decoration: none;
}
/* === 施設検索・結果ページ === */
.toyutoyu-search-page-container .search-form-wrapper {
  padding: 20px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 2em;
}
.toyutoyu-map-result-page {
  max-width: 1200px;
  margin: 2em auto;
  padding: 20px;
  background-color: #f0f0f0;
  border-radius: 16px;
}
.result-container {
  display: flex;
  flex-wrap: wrap;
  height: 60vh;
  min-height: 500px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.result-sidebar {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e5e5;
}
.result-sidebar-header {
  padding: 15px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e5e5e5;
}
.result-sidebar-title {
  margin: 0;
  font-size: 1.2em;
}
.search-count {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #555;
}
.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
  overflow-y: auto;
}
.result-list li a {
  display: block;
  padding: 12px 15px;
  color: #0073aa;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.result-map-container {
  flex: 1;
  min-width: 300px;
}
.search-result-pagination {
  text-align: center;
  padding: 10px;
  border-top: 1px solid #e5e5e5;
}
.no-results-message {
  background-color: #fff;
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .result-container {
    flex-direction: column;
    height: auto;
  }
  .result-sidebar {
    flex: 0 0 auto;
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }
  .result-map-container {
    height: 50vh;
  }
}
/* === 施設詳細ページ (共通) === */
.sento-facility-single-search, .sento-facility-single-favorite {
  max-width: 420px;
  margin: 0 auto;
  background-color: #F9F4E9;
}
/* === 施設詳細ページ (検索経由) === */
.sento-facility-single-search {
  position: relative;
  min-height: 100vh;
}
.map-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.map-background {
  height: 100%;
}
.content-card-search {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 2;
}
.content-card-search .facility-name {
  font-size: 1.5em;
  margin: 0 0 5px;
  color: #2F9B82;
}
.content-card-search .facility-address {
  margin: 0 0 15px;
  color: #555;
}
.facility-details-list-search dt {
  font-weight: bold;
  color: #2F9B82;
}
.facility-details-list-search dd {
  margin: 0 0 10px;
}
.facility-image-search {
  margin-top: 15px;
}
.facility-image-search img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
/* === 施設詳細ページ (お気に入り経由) === */
.sento-facility-single-favorite {
  padding-bottom: 150px;
}
.sento-facility-single-favorite .entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.sento-facility-single-favorite .entry-title {
  margin: 0;
  font-size: 1.4em;
}
.sento-facility-single-favorite .header-actions .toyutoyu-favorite-button {
  border: none;
  background: none;
  font-size: 24px;
  padding: 0;
  color: #ccc;
}
.sento-facility-single-favorite .header-actions .toyutoyu-favorite-button.is-favorite {
  color: #FFC107;
}
.sento-facility-single-favorite .post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}
.sento-facility-single-favorite .entry-content {
  padding: 20px 15px;
}
.info-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1.5em;
}
.tab-link {
  flex: 1;
  background: none;
  border: none;
  padding: 12px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  color: #888;
  border-bottom: 3px solid transparent;
}
.tab-link.active {
  color: #333;
  border-bottom-color: #0073aa;
}
.tab-content {
  display: none;
}
.facility-details-list dt {
  font-size: 14px;
  color: #555;
  margin-top: 1em;
}
.facility-details-list dd {
  font-size: 16px;
  color: #333;
  margin-left: 0;
  font-weight: 500;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #f0f0f0;
}
.review-summary {
  margin-bottom: 2em;
}
.average-rating-display {
  display: flex;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
}
.star-rating {
  color: #FFC107;
  font-size: 1.5em;
}
.average-score {
  margin: 0 10px;
}
.review-count {
  font-size: 0.8em;
  color: #777;
}
.ticket-product-list {
  list-style: none;
  padding: 0;
}
.ticket-product-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.ticket-product-item h4 {
  margin: 0;
  flex-grow: 1;
}
.ticket-product-item .price {
  font-weight: bold;
  margin-right: 15px;
}
.action-buttons-container-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
.action-buttons-container-fixed .toyutoyu-actions-container {
  margin: 0;
}
.toyutoyu-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.toyutoyu-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
}
.toyutoyu-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.toyutoyu-modal-actions {
  margin-top: 20px;
}
.toyutoyu-modal-actions button {
  margin: 0 10px;
}
/* === その他 === */
.toyutoyu-favorite-button-wrapper {
  margin: 1em 0;
  text-align: center;
}
.toyutoyu-favorite-button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #FFC107;
  background-color: #fff;
  color: #333;
  border-radius: 5px;
}
.toyutoyu-favorite-button.is-favorite {
  background-color: #FFC107;
  color: #333;
  font-weight: bold;
}
.favorite-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: #FFC107;
  animation: spin 1s ease-in-out infinite;
  vertical-align: middle;
  margin-left: 10px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* === 施設詳細ページ - アクションボタンとポップアップ === */
.toyutoyu-actions-wrapper {
  /* 必要に応じてラッパーのスタイルを追加 */
}
.a-fa-aa {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toyutoyu-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.toyutoyu-action-btn.use-points-btn {
  background-color: rgb(40, 213, 192); /* 緑 */
  color: white;
}
.toyutoyu-action-btn.use-ticket-btn {
  background-color: rgb(40, 213, 192); /* 青 */
  color: white;
}
.toyutoyu-action-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.login-required-btn {
  background-color: #607D8B;
  color: white;
  text-decoration: none;
}

/* ポップアップモーダル */
.toyutoyu-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
}
.toyutoyu-modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  width: 90%;
  max-width: 320px;
  text-align: center;
	position: fixed;
  z-index: 1001;
  left: 50%;
  top: 50%;
	transform:translate(-50%,-50%);
}
#toyutoyu-modal-text {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}
#toyutoyu-modal-subtext {
  font-size: 16px;
  color: #555;
  margin: 10px 0 20px;
}
.toyutoyu-modal-actions .button-primary {
  width: 100%;
  padding: 15px;
  font-size: 1em;
  font-weight: bold;
}
.toyutoyu-modal-actions .icon {
  margin-right: 8px;
  font-weight: bold;
}
/* トースト通知 */
.toyutoyu-toast {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  z-index: 9999;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}


/* 成功時 (緑) */
.toyutoyu-modal-content.notice-success {
    background-color: rgb(40, 213, 192);
    color: #fff;
}
.toyutoyu-modal-content.notice-success #toyutoyu-modal-subtext {
     display: none;
}

/* 失敗・情報通知時 (黄) */
.toyutoyu-modal-content.notice-error {
    background-color: #ffdc8a;
    color: #333;
}
.toyutoyu-modal-content.notice-error #toyutoyu-modal-subtext {
    display: none;
}
/* レビュー投稿モーダル */
#toyutoyu-review-form h3 { margin-top: 0; }
#toyutoyu-review-form textarea { width: 100%; height: 100px; padding: 10px; margin: 1em 0; border: 1px solid #ddd; border-radius: 5px; }
.star-rating-input { display: flex; flex-direction: row-reverse; justify-content: center; }
.star-rating-input input[type=radio] { display: none; }
.star-rating-input label { font-size: 2em; color: #ddd; cursor: pointer; transition: color 0.2s; }
.star-rating-input input[type=radio]:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: #FFC107; }

/* === 回数券購入タブのデザイン === */
.ticket-purchase-tab {
	padding: 2rem 2rem;
}
.current-ticket-info{
	font-size: 17px;
	text-align: center;
}


.ticket-product-list {
    /* 必要に応じてスタイルを追加 */
}

.ticket-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ticket-product-item .product-name {
    font-weight: bold;
}

.ticket-product-item .product-price {
    color: #555;
}

.ticket-product-item .add-to-cart-button {
    background-color: #4CAF50; /* 緑色のボタン */
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap; /* テキストが改行しないように */
    transition: background-color 0.2s;
}
.ticket-product-item .add-to-cart-button:hover {
    background-color: #45a049;
}

.no-tickets-available {
    text-align: center;
    padding: 20px;
    color: #777;
}
/* === WooCommerce マイアカウントページ (ハンバーガーメニュー版) === */

/* --- 全体レイアウト --- */
.woocommerce-account .woocommerce {
    position: relative;
}

/* --- ハンバーガーボタン --- */
.hamburger-button {
    position: fixed; /* 画面に固定 */
    top: 15px;
    right: 15px;
    z-index: 1001; /* サイドバーより手前に表示 */
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
}
.hamburger-icon { top: 50%; margin-top: -1.5px; }
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

/* ハンバーガーが開いた時の×印アニメーション */
.hamburger-button.is-active .hamburger-icon { background-color: transparent; }
.hamburger-button.is-active .hamburger-icon::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.hamburger-button.is-active .hamburger-icon::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* --- サイドバーメニュー --- */
.toyutoyu-myaccount-sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* 初期状態では画面外に隠す */
    width: 280px;
    height: 100%;
    background-color: #fff;
    box-shadow: -3px 0 15px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 70px 20px 20px;
    box-sizing: border-box;
    overflow-y: auto;
}
.toyutoyu-myaccount-sidebar.is-open {
    right: 0; /* is-openクラスが付いたら表示 */
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 5px;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.2s;
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #0073aa;
    color: #fff;
}
/* アイコン表示 (前の回答と同じ) */
.woocommerce-MyAccount-navigation ul li a::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}
/* --- 標準メニュー --- */
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f0e4"; } /* tachometer-alt (ダッシュボード) */
.woocommerce-MyAccount-navigation-link--orders a::before { content: "\f466"; } /* box-open (注文) */
.woocommerce-MyAccount-navigation-link--downloads a::before { content: "\f019"; } /* download (ダウンロード) */
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\f2bb"; } /* address-card (アドレス帳) */
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f4ff"; } /* user-edit (アカウント詳細) */
.woocommerce-MyAccount-navigation-link--sento-points a::before { content: "\f51e"; }
.woocommerce-MyAccount-navigation-link--sento-tickets a::before { content: "\f145"; }
.woocommerce-MyAccount-navigation-link--sento-settings a::before { content: "\f013"; }
.woocommerce-MyAccount-navigation-link--sento-withdrawal a::before { content: "\f235"; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f2f5"; }

/* --- コンテンツエリア --- */
.woocommerce-MyAccount-content {
    width: 100%; /* 常に全幅 */
}

/* === WooCommerce マイアカウントページ (Appデザイン) === */

/* --- ページ全体のレイアウト --- */
.toyutoyu-myaccount-page {
    background-color: #F9F4E9; /* 背景色 */
}
.toyutoyu-myaccount-page .woocommerce {
    display: block; /* WooCommerceのデフォルトflexを解除 */
}

/* --- ヘッダー（戻るボタンなど） --- */
.toyutoyu-myaccount-header {
    padding: 15px;
    max-width: 900px;
    margin: 0 auto;
}
.toyutoyu-myaccount-header .back-link {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

/* --- メインコンテンツのコンテナ --- */
.app-main.max {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px 30px;
}

/* --- 白いカードのデザイン --- */
.app-card-content,
.app-setting-mail .a-set-mail {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.app-setting-mail .a-set-mail {
    padding-top: 35px;
}

/* --- 各コンテンツのスタイル --- */
.app-card-content h3 {
    margin-top: 0;
    margin-bottom: 1.5em;
    font-size: 1.2em;
    text-align: center;
}
.app-card-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 2em 0;
}
.settings-links .settings-link-item {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    font-weight: bold;
    color: #333;
    transition: background-color 0.2s;
}
.settings-links .settings-link-item:hover {
    background-color: #f9f9f9;
}
.settings-links .settings-link-item:last-child {
    border-bottom: none;
}

/* --- 設定フォームのスタイル --- */
.app-setting-mail .bold {
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
.app-setting-mail .bold:first-child {
    margin-top: 0;
}
.app-setting-mail .textbox {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}
.app-setting-mail .a-set-submit {
    margin-top: 2em;
}
.app-setting-mail .a-set-submit .button {
    width: 100%;
    background-color: #5BC3BF;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

/* --- WooCommerce標準メッセージのスタイル調整 --- */
.woocommerce-notices-wrapper {
    margin: 0 0 20px !important;
}
/* === アカウント詳細編集ページ - 姓名の横並び === */
.toyutoyu-form-row-flex {
    display: flex;
    gap: 15px; /* フィールド間の隙間 */
    margin-bottom: 1em; /* 下の要素とのマージン */
}

.toyutoyu-form-group {
    flex: 1; /* 均等に幅を分割 */
}

.toyutoyu-form-group .bold {
    margin-top: 0; /* 横並びにしたので上のマージンをリセット */
}

/* === マイアカウント住所編集ページ - 1カラムレイアウト === */
.woocommerce-address-fields__field-wrapper .form-row-full {
    width: 100%;
    float: none;
    clear: both;
    margin-bottom: 1em;
}

.woocommerce-address-fields__field-wrapper .woocommerce-input-wrapper {
    width: 100%;
}

.woocommerce-address-fields__field-wrapper input.input-text,
.woocommerce-address-fields__field-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    height: auto;
}
/* === マイアカウント住所ページ - 縦並びレイアウト === */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-columns,
.woocommerce-account .woocommerce-MyAccount-content .u-columns.addresses {
    display: flex;
    flex-direction: column; /* flexboxの並び方向を縦に変更 */
    gap: 2em; /* 住所ブロック間の隙間 */
}

.woocommerce-account .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column,
.woocommerce-account .woocommerce-MyAccount-content .u-columns.addresses .woocommerce-column {
    width: 100% !important; /* 各カラムの幅を100%に */
    padding: 0 !important; /* 不要なパディングをリセット */
    float: none !important; /* floatを解除 */
    margin: 0 !important; /* 不要なマージンをリセット */
}
.app-main .woocommerce .col2-set{
width: 100%;
display: flex;
flex-direction: column;
gap: 2em;
}
.app-main .woocommerce .col2-set .col-1, .app-main .woocommerce .col2-set .col-2{
  float: none;
width: 100%;
text-align: left;
}
/* === マイアカウント注文履歴ページ === */
.app-card-content .woocommerce-orders-table {
    width: 100%;
    border: 1px solid #e9e9e9;
    border-radius: 8px; /* テーブルの角を少し丸める */
    overflow: hidden; /* 角丸を適用するため */
    border-spacing: 0;
    margin-bottom: 2em;
}

.app-card-content .woocommerce-orders-table thead {
    background-color: #fcfcfc;
}

.app-card-content .woocommerce-orders-table th,
.app-card-content .woocommerce-orders-table td {
    border-bottom: 1px solid #e9e9e9;
    border-left: none; /* デフォルトの左線を消す */
    border-right: none; /* デフォルトの右線を消す */
    padding: 12px 15px;
    text-align: left;
}

.app-card-content .woocommerce-orders-table tbody tr:last-child td {
    border-bottom: none; /* 最後の行の下線を消す */
}

.app-card-content .woocommerce-orders-table .button {
    background-color: #5BC3BF;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    text-shadow: none;
}

/* ページネーションのボタン */
.app-card-content .woocommerce-pagination {
    display: flex;
    justify-content: space-between;
}
.app-card-content .woocommerce-pagination .button {
    background-color: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    font-size: 14px;
}

/* 注文がない場合のメッセージ */
.app-card-content .woocommerce-message {
    border-top-color: #5BC3BF;
    text-align: center;
    padding: 1em 1.5em;
}
.app-card-content .woocommerce-message .button {
    display: none; /* 「商品を探す」ボタンは非表示に */
}

/* スマホ表示の調整 */
@media screen and (max-width: 768px) {
    .app-card-content .woocommerce-orders-table thead {
        display: none; /* スマホではヘッダーを非表示 */
    }
    .app-card-content .woocommerce-orders-table tbody tr {
        display: block;
        margin-bottom: 1em;
        border: 1px solid #e9e9e9;
        border-radius: 8px;
        padding: 5px;
    }
    .app-card-content .woocommerce-orders-table tbody td {
        display: block;
        text-align: right; /* 値を右寄せに */
        border-bottom: 1px dotted #e9e9e9;
        padding: 10px 15px;
    }
    .app-card-content .woocommerce-orders-table tbody td::before {
        content: attr(data-title);
        float: left; /* ラベルを左寄せに */
        font-weight: bold;
        padding-right: 10px;
    }
     .app-card-content .woocommerce-orders-table tbody td:last-child {
        border-bottom: none;
    }
}
/* === プラン専用決済ページ === */
body.toyutoyu-plan-checkout {
    background-color: #f7f7f7;
}

/* 通常の決済ページ要素を非表示にする */
.toyutoyu-plan-checkout .woocommerce-info,
.toyutoyu-plan-checkout #customer_details,
.toyutoyu-plan-checkout .woocommerce-checkout-review-order-table,
.toyutoyu-plan-checkout h3#order_review_heading {
    display: none !important;
}

.toyutoyu-plan-checkout-wrapper {
    max-width: 500px;
    margin: 3em auto;
    background: #fff;
    padding: 2em 2.5em;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.plan-purchase-summary {
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 1.5em;
    margin-bottom: 2em;
}
.plan-purchase-summary p {
    color: #555;
    margin-bottom: 0.5em;
}
.plan-purchase-summary .plan-name {
    font-size: 1.8em;
    margin: 0.2em 0;
}
.plan-purchase-summary .plan-price {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
}

#payment.woocommerce-checkout-payment {
    background: transparent;
    border-radius: 0;
}
#payment ul.payment_methods {
    border: none;
    padding: 0;
}
#payment div.form-row {
    padding: 0;
}
#payment div.payment_box {
    background-color: #f9f9f9;
}
#payment #place_order {
    width: 100%;
    padding: 1em;
    font-size: 1.2em;
}

/* サンキューページ */
.toyutoyu-thanks-message {
    text-align: center;
    max-width: 600px;
    margin: 4em auto;
    padding: 2em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}
.toyutoyu-thanks-message h2 {
    margin-top: 0;
}

/* === 追加プラン === */
.addition-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.addition-details {
    flex-grow: 1;
}

.addition-name {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-selector label {
    margin-right: 10px;
    font-weight: bold;
}

.quantity-selector .quantity-input {
    width: 70px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
}

.addition-price {
    text-align: right;
    margin: 0 2em;
}

.addition-price p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.addition-price h3 {
    margin: 0;
    font-size: 1.5em;
}

.addition-action .button {
    background-color: #5BC3BF;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}