.elementor-12 .elementor-element.elementor-element-314480fb{--display:flex;}/* Start custom CSS for text-editor, class: .elementor-element-6eca9a6f */.elementor-12 .elementor-element.elementor-element-6eca9a6f{
/* My Account - Orders  */

/* ★ REQUIREMENT 3: 行の背景色でステータスを示す */
.account-orders-table .woocommerce-orders-table__row {
    transition: background-color 0.3s ease;
}
/* 成功した注文は白のまま (Completed orders remain white) */
.account-orders-table .woocommerce-orders-table__row--status-completed {
    border-left: 5px solid #fff;
}
/* その他のステータスのための淡い背景色 */
.account-orders-table .woocommerce-orders-table__row--status-failed {
    border-left: 5px solid #dc3545; /* 淡い赤 (Faint Red) */
}
.account-orders-table .woocommerce-orders-table__row--status-cancelled {
    border-left: 5px solid #6c757d; /* 淡いグレー (Faint Gray) */
}
.account-orders-table .woocommerce-orders-table__row--status-on-hold {
    border-left: 5px solid #ffc107; /* 淡い黄 (Faint Yellow) */
}
.account-orders-table .woocommerce-orders-table__row--status-processing {
    border-left: 5px solid #17a2b8; /* 淡い青 (Faint Blue) */
}
.account-orders-table .woocommerce-orders-table__row--status-refunded {
    border-left: 5px solid #343a40; /* 少し濃い淡いグレー (Slightly darker Faint Gray) */
}
/* 这是正确的做法 */
.account-orders-table tr td:first-child {
    padding-left: 25px; /* 可以根据需要调整数值 */
}
.account-orders-table tr td:last-child {
    padding-right: 25px; /* 可以根据需要调整数值 */
}
.account-orders-table tr th:first-child {
    padding-left: 25px; /* 可以根据需要调整数值 */
}
.account-orders-table tr th:last-child {
    padding-right: 25px; /* 可以根据需要调整数值 */
}
.account-orders-table tr:hover {
    background-color: #f5f5f5 !important; /* ホバー効果をすべての行に適用 */
}


/* === テーブルレイアウトと列の基本スタイル === */
.account-orders-table { table-layout: fixed; width: 100%; }
.account-orders-table th, .account-orders-table td { vertical-align: middle !important; }
.account-orders-table .woocommerce-orders-table__header-order-number { width: 13%; }
.account-orders-table .woocommerce-orders-table__header-order-image { width: 70px; }
.account-orders-table .woocommerce-orders-table__header-order-total { width: 15%; }
.account-orders-table .woocommerce-orders-table__header-order-actions { width: 10%; } /* 操作列を少し狭く */

/* 製品画像のスタイル */
.account-orders-table .woocommerce-orders-table__cell-order-image a {
    display: block; width: 50px; height: 50px; border-radius: 4px; overflow: hidden;
}
.account-orders-table .woocommerce-orders-table__cell-order-image img {
    width: 100%; height: 100%; object-fit: cover;
}

/* 製品名の省略記号スタイル */
.account-orders-table .woocommerce-orders-table__cell-product-names {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ★ 変更点：操作列の配置を調整 */
.account-orders-table .woocommerce-orders-table__cell-order-actions {
    display: flex;
    justify-content: flex-end; /* アイテムを右端に配置 */
    align-items: center;
}

/* 既存のスタイル */
.account-orders-table .order-date { display: block; margin-top: 4px; font-size: 0.85em; color: #777; }
.account-orders-table .order-total-price { display: block; font-weight: bold; }
.account-orders-table .order-total-items { display: block; font-size: 0.85em; color: #777; }

/* モダンなドロップダウンアクションのスタイル */
.modern-dropdown-actions { position: relative; }
.modern-dropdown-actions summary.dropdown-toggle-icon {
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; width: 36px; height: 36px; border-radius: 50%;
    list-style: none; transition: background-color 0.2s ease-in-out;
}
.modern-dropdown-actions summary.dropdown-toggle-icon::-webkit-details-marker { display: none; }
.modern-dropdown-actions summary.dropdown-toggle-icon:hover { background-color: #f0f0f0; }
.modern-dropdown-actions[open] > summary.dropdown-toggle-icon { background-color: #e8e8e8; }
.modern-dropdown-actions .dropdown-toggle-icon span { font-size: 20px; font-weight: bold; }
.modern-dropdown-actions .dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%);
    background-color: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); z-index: 100;
    padding: 8px; width: max-content;
    opacity: 0; visibility: hidden;
    transition: all 0.2s ease;
    transform: translateX(-50%) translateY(-10px);
}
.modern-dropdown-actions[open] > .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.modern-dropdown-actions .dropdown-menu a.button {
    display: block; text-decoration: none !important; text-align: center;
    padding: 10px 20px; margin: 0;
    border: none !important; background: none !important;
    color: #333 !important; font-weight: normal; border-radius: 6px;
    transition: background-color 0.2s ease;
}
.modern-dropdown-actions .dropdown-menu a.button:hover { background-color: #f5f5f5 !important; color: #000 !important; }


/* My Account - Address Page Custom Styles - v2 */

/* ページ説明文のスタイル */
.address-page-description {
    font-size: 1em;
    color: #666;
    margin-bottom: 30px;
    max-width: 800px; /* テキストが長くなりすぎないように */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* === レイアウトの選択 (Layout Choice) === */


/* --- 選択肢B：ワイドスクリーンで2列を維持する場合 (Option B: To keep two columns on wide screens) --- */
/* 2列レイアウトを希望する場合は、下のコメントアウトを解除してください */

.address-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 992px) {
    .address-cards-container {
        grid-template-columns: 1fr 1fr;
    }
}



/* === カードとボタンのスタイル (Card and Button Styles) === */

/* アドレスカードの基本スタイル */
.address-card {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px; /* 少し丸みを増やす */
    padding: 25px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.address-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* カードヘッダーのスタイル */
.address-card .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.address-card .address-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.address-card .address-title-group h2 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}
.address-card .address-icon {
    width: 24px;
    height: 24px;
    color: #555;
}

/* ★ 編集ボタンの新しいスタイル */
.address-card .woocommerce-Address-title .address-edit-button {
    display: inline-flex; /* アイコンとテキストを中央揃え */
    align-items: center;
    gap: 6px; /* アイコンとテキストの間隔 */
    font-size: 0.9em;
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.address-card .woocommerce-Address-title .address-edit-button:hover {
    background-color: #e9e9e9;
    border-color: #d0d0d0;
}
.address-card .edit-icon {
    width: 14px;
    height: 14px;
}

/* アドレスブロックのスタイル */
.address-card address {
    font-style: normal;
    line-height: 1.7;
    color: #444;
}
/* アドレスが設定されていない場合のスタイル */
.address-card .address-empty-state {
    padding: 20px 0;
    text-align: center;
    color: #888;
}

/* My Account - Login/Register Card Styles */

/* カード全体のコンテナ */
.wd-login-register-card {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    max-width: 480px;
    margin: 40px auto; /* 上下のマージンを追加して中央に配置 */
    overflow: hidden;
}

/* タブナビゲーション */
.wd-auth-tabs {
    display: flex;
    background-color: #f8f9fa;
}
.wd-auth-tabs .wd-auth-tab {
    flex: 1;
    padding: 18px 20px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #6c757d;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.wd-auth-tabs .wd-auth-tab:hover {
    color: #343a40;
}
.wd-auth-tabs .wd-auth-tab.active {
    color: #000;
    border-bottom-color: #000; /* テーマのプライマリカラーに変更可能 */
}

/* フォームパネル */
.wd-auth-panels {
    padding: 30px 40px;
}
.wd-auth-panel {
    display: none;
}
.wd-auth-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* フォーム要素のスタイル */
.wd-login-register-card .form-row {
    margin-bottom: 20px;
}
.wd-login-register-card label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}
.wd-login-register-card .woocommerce-Input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wd-login-register-card .woocommerce-Input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    outline: none;
}

/* ボタンのスタイル */
.wd-login-register-card .button {
    width: 100%;
    padding: 14px 20px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    background-color: #212529; /* メインのボタンカラー */
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.wd-login-register-card .button:hover {
    background-color: #495057;
}

/* 「Remember me」と「Lost password」のスタイル */
.wd-login-register-card .woocommerce-form-login__rememberme {
    margin-left: 0;
    display: inline-block;
}
.wd-login-register-card .lost_password {
    text-align: right;
    margin-top: -38px; /* Remember me と同じ行に配置 */
}
.wd-login-register-card .lost_password a {
    font-size: 0.9em;
    text-decoration: none;
}
}/* End custom CSS */