
/* ==========================================================
   1. ナビゲーションタブ（アクティブ色を青に固定）
   ========================================================= */
.woocommerce-MyAccount-navigation ul {
    border: none !important;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid #dddddd !important;
    margin: 0 !important;
}

/* 選択中のタブ：青背景・白文字を強制 */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li.is-active a {
    background-color: #0073aa !important;
    color: #ffffff !important;
    font-weight: bold !important;
    display: block;
    padding: 10px 15px;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none !important;
}

.woocommerce-MyAccount-navigation li a:hover {
    background-color: #f0f0f0 !important;
}

/* ==========================================================================
   [tbl_lxm_default_style] サイト内テーブル共通統一スタイル
   列背景　DAF3FF
   行背景　D3E5EE
   枠線色　0073aa
   ========================================================================== */
/* 1. はみ出た場合に横スクロールさせるためのラッパー */
.tbl_lxm_default_style,
div.tbl_lxm_default_style_wrapper {
    width: 100%;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    padding: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* 2. テーブル本体（角丸の設定を完全に排除した、ただの四角い枠線） */
table.tbl_lxm_default_style,
.tbl_lxm_default_style table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse !important; /* 1本の綺麗な線に完全に結合 */
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    table-layout: auto;
    
    /* 外枠線を細い1pxで一律定義 */
    border: 1px solid #0073aa !important;
}

/* 3. すべてのセル（真ん中の線も、外側の線も、すべて一律で細い1pxで描画） */
table.tbl_lxm_default_style th,
table.tbl_lxm_default_style td,
.tbl_lxm_default_style table th,
.tbl_lxm_default_style table td {
    padding: 15px !important;
    vertical-align: middle;
    
    /* すべてのセルに上下左右一律で細い1pxの仕切り線を適用 */
    border: 1px solid #0073aa !important;
}

/* 4. 列タイトル（ヘッダー行：thead th）の背景色 */
table.tbl_lxm_default_style thead th,
.tbl_lxm_default_style table thead th,
table.tbl_lxm_default_style tr:first-child th,
.tbl_lxm_default_style table tr:first-child th {
    background-color: #DAF3FF !important;
    font-weight: bold;
    text-align: center;
}

/* 5. 行タイトル（1列目の見出しセル：tbody th）の背景色 */
table.tbl_lxm_default_style tbody th,
.tbl_lxm_default_style table tbody th,
table.tbl_lxm_default_style tr td:first-child[scope="row"],
.tbl_lxm_default_style table tr td:first-child[scope="row"] {
    background-color: #D3E5EE !important;
    font-weight: bold;
}

/* 6. 通常データセル（tbody td）のスタイル */
table.tbl_lxm_default_style tbody td,
.tbl_lxm_default_style table tbody td {
    background-color: #ffffff;
}

/* ==========================================================
   2. 予約一覧・履歴テーブル共通スタイル（不要設定を抜去・最適化）
   ========================================================= */
.lxm-direct-container {
    width: 100%;
    margin-top: -15px !important;
    margin-bottom: 0 !important;
}

/* 親タブ「lxm-reserved-tab」の中にあるテキストウィジェットのpタグだけを詰める */
.lxm-reserved-tab .elementor-widget-text-editor p {
    margin-bottom: 0 !important;
}

/* 不要な独自テーブルスタイル、外枠、スクロール設定を削除し、個別クラス用のパーツのみ残す */
.lxm-status-alert {
    color: #d63638 !important;
    font-weight: bold !important;
}

/* ==========================================================
   3. パネル表示設定フォーム
   ========================================================= */
.myaccount-custom-settings {
    margin: 1.5em 0;
    padding: 15px 20px;
    border: 1px solid #dddddd;
    background: #fafafa;
    border-radius: 4px;
}

.myaccount-custom-settings input[type="checkbox"] {
    margin-right: 8px !important;
    vertical-align: middle;
}

/* ==========================================================
   4. アドレス（住所管理）ページの最適化
   ========================================================= */
.woocommerce-MyAccount-content .addresses .u-column1.col-1.woocommerce-Address {
    display: none !important;
}

.woocommerce-MyAccount-content .addresses .u-column2.col-2.woocommerce-Address {
    width: 100% !important;
    float: none !important;
}

/* ==========================================================
   5. アカウント詳細ページの姓名ラベル名スワップ（非表示＆新ラベル追加）
   ========================================================= */
.woocommerce-EditAccountForm label[for="account_first_name"],
.woocommerce-EditAccountForm label[for="account_last_name"] {
    font-size: 0 !important;
}

.woocommerce-EditAccountForm label[for="account_first_name"] .required,
.woocommerce-EditAccountForm label[for="account_last_name"] .required {
    font-size: 14px !important;
}

.woocommerce-EditAccountForm label[for="account_first_name"]::before {
    content: "姓 ";
    font-size: 14px !important;
    font-weight: bold;
}

.woocommerce-EditAccountForm label[for="account_last_name"]::before {
    content: "名 ";
    font-size: 14px !important;
    font-weight: bold;
}

/* ==========================================================
   6. カスタムショートコード用クラス指定（B/W）
   ========================================================= */
.Custom-WooProduct-B h2, 
.Custom-WooProduct-B .price, 
.Custom-WooProduct-B .price *, 
.Custom-WooProduct-B .ast-woo-product-category { 
    color: #333333 !important; 
}
.Custom-WooProduct-W, 
.Custom-WooProduct-W h2, 
.Custom-WooProduct-W span { 
    color: #FFFFFF !important; 
}

.Custom-WooProduct-W ul.products,
.Custom-WooProduct-B ul.products {
    display: flex !important;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.Custom-WooProduct-B ul.products li.product {
    margin: 0 !important;
    float: none !important;
}

.Custom-WooProduct-W ul.products li.product {
    width: 100% !important;
    max-width: 160px !important;
    margin: 0 !important;
    float: none !important;
}

.Custom-WooProduct-W ul.products li.product .button,
.Custom-WooProduct-B ul.products li.product .button {
    display: inline-block !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: 120px;
    text-align: center;
}

/* ==========================================================
   7. [Woo-03より集約] レスポンシブ用メニューテキスト出し分け制御
   ========================================================= */
/* 標準（PC・タブレット）ではスマホ用テキストを非表示 */
.my-account-text-sp { display: none !important; }
.my-account-text-pc { display: inline !important; }

/* スマホ（画面幅767px以下）では表示・非表示を逆転 */
@media (max-width: 767px) {
    .my-account-text-pc { display: none !important; }
    .my-account-text-sp { display: inline !important; }
}
