/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* =========================================================================
   YITH Request a Quote - View Quote Page Styling
   ========================================================================= */

#invoicejapanresending { display: none !important; }

/* =========================================================================
   Hide Display Name field on My Account Edit page
   表示名フィールドを非表示（自動設定のため変更不可）
   ========================================================================= */
.woocommerce-edit-account .woocommerce-form-row--wide:has(#account_display_name),
.woocommerce-edit-account p:has(#account_display_name) {
    display: none !important;
}

/* Fallback for browsers without :has() support */
#account_display_name {
    display: none !important;
}
#account_display_name + label,
label[for="account_display_name"] {
    display: none !important;
}

/* =========================================================================
   YITH Request a Quote - Refined Quote Detail Table
   ========================================================================= */
.woocommerce-account .ywraq-view-quote-wrapper .responsive-table {
    margin: 24px 0 38px;
    overflow-x: auto;
    border: 1px solid #dfe5ec;
    border-radius: 6px;
    background: #fff;
}

.woocommerce-account .ywraq-view-quote-wrapper .responsive-table table.shop_table.order_details,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details {
    width: 100% !important;
    min-width: 720px;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    background: #fff !important;
    box-shadow: none !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details col.quote-col-product {
    width: auto !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details col.quote-col-quantity {
    width: 120px !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details col.quote-col-unit-price,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details col.quote-col-total {
    width: 180px !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details th,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td {
    border: 0 !important;
    border-right: 1px solid #dfe5ec !important;
    border-bottom: 1px solid #dfe5ec !important;
    padding: 16px 18px !important;
    vertical-align: middle !important;
    line-height: 1.55 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details th:last-child,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td:last-child {
    border-right: 0 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead th {
    background: #f5f7fa !important;
    color: #253041 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead tr,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead tr > * {
    background: #f5f7fa !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead th.product-name {
    text-align: left !important;
    width: 52% !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead th.product-quantity {
    width: 12% !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead th.product-unit-price,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead th.product-total {
    width: 18% !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tbody tr:last-child td {
    border-bottom: 1px solid #dfe5ec !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tbody td {
    background: #fff !important;
    color: #2d3748 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td.product-name {
    display: table-cell !important;
    text-align: left !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .xlsoft-quote-product-cell {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    min-width: 0 !important;
    width: 100% !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-thumbnail {
    display: block !important;
    width: 72px !important;
    margin-right: 0 !important;
    flex: 0 0 72px !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain !important;
    border: 1px solid #dfe5ec !important;
    border-radius: 6px !important;
    background: #fff !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-name-item {
    display: inline-flex !important;
    max-width: calc(100% - 96px);
    min-width: 0 !important;
    flex-direction: column !important;
    gap: 6px !important;
    vertical-align: middle !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-name-item > a {
    color: #1f2937 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-name-item > a:hover {
    color: #005a9c !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .wd-product-detail,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .wc-item-meta {
    margin-top: 2px !important;
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .wd-label {
    color: #475467 !important;
    font-weight: 700 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td.product-quantity {
    text-align: center !important;
    color: #253041 !important;
    font-weight: 700 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td.product-unit-price,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td.product-total,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot td {
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td.product-total,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot td {
    color: #111827 !important;
    font-weight: 700 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot th,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot td {
    background: #fbfcfe !important;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot th {
    text-align: right !important;
    color: #475467 !important;
    font-weight: 600 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot tr:last-child th,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot tr:last-child td {
    border-bottom: 0 !important;
    background: #f0f5fa !important;
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .woocommerce-Price-amount {
    display: inline-block;
    min-width: 7.5em;
}

@media (max-width: 768px) {
    .woocommerce-account .ywraq-view-quote-wrapper .responsive-table {
        border-radius: 4px;
    }

    .woocommerce-account .ywraq-view-quote-wrapper .responsive-table table.shop_table.order_details,
    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details {
        min-width: 660px;
    }

    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details th,
    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td {
        padding: 13px 14px !important;
    }

    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-thumbnail {
        width: 56px !important;
        margin-right: 12px !important;
    }

    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-thumbnail img {
        width: 56px !important;
        height: 56px !important;
    }

    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-name-item {
        max-width: calc(100% - 76px);
    }
}

/* ラッパー調整 */
.ywraq-view-quote-wrapper {
    width: 100%;
    margin-bottom: 50px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* ヘッダーエリア */
.ywraq-view-quote-wrapper header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.ywraq-view-quote-wrapper header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.ywraq-view-quote-wrapper .ywraq-pdf-file {
    background: #333;
    color: #fff;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* リンクとメタ情報 */
.ywraq-view-quote-wrapper > p:first-of-type { margin-bottom: 15px; }
.ywraq-view-quote-wrapper p { margin-bottom: 8px; }
.ywraq-view-quote__order-status { margin: 10px 0 30px !important; }

.ywraq-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 8px;
}
.ywraq-status.ywraq-new { background: #fff3cd; color: #856404; }
.ywraq-status.ywraq-pending { background: #d4edda; color: #155724; }
.ywraq-status.ywraq-accepted { background: #d4edda; color: #155724; }
.ywraq-status.ywraq-rejected { background: #f8d7da; color: #721c24; }


/* =========================================================================
   Table Design - Override Theme Styles
   ========================================================================= */

/* テーブル全体の設定 - ボーダーはセルのみで管理 */
html body .ywraq-view-quote-wrapper table.shop_table.order_details,
.ywraq-view-quote-wrapper table.shop_table.order_details,
.ywraq-view-quote-wrapper .order_details {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 40px !important;
    margin-top: 20px !important;
    background-color: #fff !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    table-layout: auto !important;
    box-shadow: none !important;
}

/* 全セルのボーダー - 下と右のみ設定し、最初の行/列で上/左を追加 */
html body .ywraq-view-quote-wrapper table.shop_table.order_details thead th,
html body .ywraq-view-quote-wrapper table.shop_table.order_details tbody td,
html body .ywraq-view-quote-wrapper table.shop_table.order_details tfoot th,
html body .ywraq-view-quote-wrapper table.shop_table.order_details tfoot td,
.ywraq-view-quote-wrapper table thead th,
.ywraq-view-quote-wrapper table tbody td,
.ywraq-view-quote-wrapper table tfoot th,
.ywraq-view-quote-wrapper table tfoot td {
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    box-sizing: border-box !important;
}

/* 最初の列（左端）に左ボーダー追加 */
html body .ywraq-view-quote-wrapper table.shop_table.order_details thead tr th:first-child,
html body .ywraq-view-quote-wrapper table.shop_table.order_details tbody tr td:first-child,
html body .ywraq-view-quote-wrapper table.shop_table.order_details tfoot tr th:first-child,
html body .ywraq-view-quote-wrapper table.shop_table.order_details tfoot tr td:first-child {
    border-left: 1px solid #ddd !important;
}

/* ヘッダー行（最初の行）に上ボーダー追加 */
html body .ywraq-view-quote-wrapper table.shop_table.order_details thead tr:first-child th {
    border-top: 1px solid #ddd !important;
}


/* --- ヘッダー設定 --- */
.ywraq-view-quote-wrapper table.shop_table.order_details thead th {
    background-color: #f7f7f7 !important;
    color: #222 !important;
    font-weight: 700 !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    white-space: nowrap !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* 商品名ヘッダー: 左揃え */
.ywraq-view-quote-wrapper thead th.product-name {
    text-align: left !important;
}

/* 数量・単価・小計ヘッダー: 中央揃え */
.ywraq-view-quote-wrapper thead th.product-quantity,
.ywraq-view-quote-wrapper thead th.product-unit-price,
.ywraq-view-quote-wrapper thead th.product-total {
    text-align: center !important;
    width: 100px !important;
}


/* --- ボディ設定 --- */
.ywraq-view-quote-wrapper table.shop_table.order_details tbody td {
    padding: 18px 20px !important; /* 統一パディング */
    vertical-align: middle !important;
    color: #333 !important;
    background-color: #fff !important; /* 背景を明示的に白に */
}

/* 商品名: 左揃え */
.ywraq-view-quote-wrapper tbody td.product-name {
    text-align: left !important;
}

/* 数量: 中央揃え (独立した列) */
.ywraq-view-quote-wrapper tbody td.product-quantity {
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #333 !important;
    white-space: nowrap !important;
    width: 80px !important;
}

/* 単価: 中央揃え */
.ywraq-view-quote-wrapper tbody td.product-unit-price {
    text-align: center !important;
    color: #555 !important;
    font-size: 15px !important;
    white-space: nowrap !important;
    width: 120px !important;
}

/* 小計: 中央揃え */
.ywraq-view-quote-wrapper tbody td.product-total {
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #222 !important;
    white-space: nowrap !important;
    width: 120px !important;
}


/* --- フッター設定 --- */
.ywraq-view-quote-wrapper table.shop_table.order_details tfoot th,
.ywraq-view-quote-wrapper table.shop_table.order_details tfoot td {
    padding: 12px 20px !important;
    background-color: #fff !important;
}

.ywraq-view-quote-wrapper table.shop_table.order_details tfoot th {
    text-align: right !important;
    font-weight: 500 !important;
    color: #555 !important;
}

.ywraq-view-quote-wrapper table.shop_table.order_details tfoot td {
    text-align: center !important;
    font-weight: 600 !important;
    color: #222 !important;
    font-size: 16px !important;
}

/* 合計行（最後の合計行の前の行） */
.ywraq-view-quote-wrapper table.shop_table.order_details tfoot tr:has(+ tr:has(.ywraq-buttons)) th,
.ywraq-view-quote-wrapper table.shop_table.order_details tfoot tr:has(+ tr:has(.ywraq-buttons)) td {
    background-color: #f9f9f9 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #000 !important;
    padding: 20px !important;
}


/* --- コンテンツ内スタイル --- */

/* 商品名セルのFlexboxレイアウト */
.ywraq-view-quote-wrapper tbody td.product-name {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 15px !important;
}

/* サムネイル */
.ywraq-view-quote-wrapper .product-thumbnail {
    flex-shrink: 0 !important;
    width: 60px !important;
}
.ywraq-view-quote-wrapper .product-thumbnail img {
    width: 60px !important;
    height: auto !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    display: block !important;
}
.ywraq-view-quote-wrapper .product-thumbnail a {
    display: block !important;
}

/* 商品情報エリア */
.ywraq-view-quote-wrapper .product-name-item {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.ywraq-view-quote-wrapper .product-name-item a {
    font-weight: 700 !important;
    color: #222 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}
.ywraq-view-quote-wrapper .product-name-item a:hover {
    color: #0066b4 !important;
}

/* SKU表示 */
.ywraq-view-quote-wrapper .product-name-item strong:not(.product-quantity) {
    font-weight: 600 !important;
    color: #666 !important;
    font-size: 13px !important;
}
/* アイテムメタ（バリエーション情報など）のスタイル */
.ywraq-view-quote-wrapper .wc-item-meta {
    margin: 8px 0 0 0 !important;
    padding: 8px 0 0 0 !important;
    border-top: 1px dashed #eee;
    list-style: none !important;
    font-size: 13px !important;
    color: #555;
    display: block !important;
}
.ywraq-view-quote-wrapper .wc-item-meta li {
    margin-bottom: 4px !important;
    padding: 2px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    line-height: 1.5 !important;
}
.ywraq-view-quote-wrapper .wc-item-meta li strong,
.ywraq-view-quote-wrapper .wc-item-meta li .wc-item-meta-label {
    font-weight: 600 !important;
    color: #666 !important;
    margin-right: 5px !important;
    min-width: auto !important;
}
.ywraq-view-quote-wrapper .wc-item-meta li p {
    margin: 0 !important;
    display: inline !important;
}

/* 数量表示 (×1) のスタイル - 現在は独立した列に移動 */
/* 旧スタイルは互換性のため残す（strong.product-quantity用） */
.ywraq-view-quote-wrapper .product-name-item .product-quantity {
    display: inline-block !important;
    background: #f5f5f5 !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-left: 8px !important;
    vertical-align: middle !important;
}


/* --- 下部カラム --- */
.ywraq-additional-information {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}
.ywraq-customer-information,
.ywraq-admin-message {
    flex: 1 1 400px;
    min-width: 300px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 25px;
}
.ywraq-customer-information header h3,
.ywraq-admin-message header h3 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}
.ywraq-view-quote__customer-info {
    display: flex;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
    margin: 0 !important;
}
.ywraq-view-quote__customer-info strong {
    width: 140px;
    flex-shrink: 0;
    color: #555;
    font-weight: 600;
}
.ywraq-admin-message .message-content {
    background: #f9f9f9;
    padding: 18px;
    border-left: 3px solid #333;
    font-size: 14px;
    line-height: 1.7;
}

/* --- ボタン --- */
.ywraq-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}
.ywraq-button {
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
}
.ywraq-button.ywraq-accept {
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
}
.ywraq-button.ywraq-accept:hover {
    background-color: #333;
    border-color: #333;
}
.ywraq-button.ywraq-reject {
    background-color: #fff;
    color: #d00;
    border: 2px solid #d00;
}
.ywraq-button.ywraq-reject:hover {
    background-color: #d00;
    color: #fff;
}

/* =========================================================================
   Product Carousel - Hide Partial Products at Edges
   カルーセルの端に見切れて表示される商品を非表示
   矢印ボタンは表示を維持
   ========================================================================= */

/* 外側コンテナは矢印のためにoverflow visible */
.wd-products-element {
    overflow: visible !important;
}

/* カルーセル内部のみオーバーフロー非表示 */
.wd-products-element .wd-carousel-container {
    overflow: hidden !important;
}

.wd-products-element .wd-carousel,
.wd-products-element .wd-carousel .swiper {
    overflow: hidden !important;
}

/* 矢印ボタンを確実に表示 */
.wd-products-element .wd-nav-arrows,
.wd-products-element .wd-btn-arrow {
    overflow: visible !important;
    z-index: 100;
}

/* =========================================================================
   Single Product Page - Tablet Layout Fix (769px - 1024px)
   製品ページのタブレットサイズでのレイアウト崩れを修正
   Elementorコンテナの固定幅設定を上書きして100%幅に
   ========================================================================= */

/* タブレットサイズでのレイアウト修正 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    
    /* ===== 根本原因の修正: Elementor固有のコンテナ幅を100%に ===== */
    
    /* サイドバーコンテナ - 固定幅を解除して100%に */
    .single-product .elementor-element-cd3749a,
    .single-product [data-id="cd3749a"],
    .single-product .e-con[data-id="cd3749a"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        --width: 100% !important;
        flex-basis: 100% !important;
    }
    
    /* 製品コンテンツエリアも100%幅に */
    .single-product .elementor-element-8293cdd,
    .single-product [data-id="8293cdd"],
    .single-product .e-con[data-id="8293cdd"] {
        width: 100% !important;
        max-width: 100% !important;
/* =====  スライド背景の統一設定 ===== */

/* 全スライドの背景画像設定を統一 */
.wd-slider .wd-slide .wd-slide-bg {
    background-position: center center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* 特定のスライドへの個別オーバーライド（念のため明示的に指定） */
#slide-211 .wd-slide-bg,
#slide-225 .wd-slide-bg,
#slide-231 .wd-slide-bg,
#slide-30293 .wd-slide-bg {
    background-position: center center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* ===== レスポンシブ設定 - モバイル対応 ===== */

/* タブレットサイズ (768px以下) */
@media screen and (max-width: 768px) {
    .wd-slider .wd-slide {
        min-height: 250px !important;
        aspect-ratio: auto !important;
    }
    
    .wd-slider .wd-slide .wd-slide-bg {
        background-size: contain !important;
        background-position: center center !important;
    }
}

/* モバイルサイズ (480px以下) */
@media screen and (max-width: 480px) {
    .wd-slider .wd-slide {
        min-height: 180px !important;
    }
}

/* =========================================================================
   Final Override - My Account Quote Detail Table
   ========================================================================= */
.woocommerce-account .ywraq-view-quote-wrapper .responsive-table {
    margin: 24px 0 38px !important;
    overflow-x: auto !important;
    border: 1px solid #dfe5ec !important;
    border-radius: 6px !important;
    background: #fff !important;
}

.woocommerce-account .ywraq-view-quote-wrapper .responsive-table table.shop_table.order_details,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details {
    width: 100% !important;
    min-width: 720px !important;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    box-shadow: none !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details th,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td {
    border: 0 !important;
    border-right: 1px solid #dfe5ec !important;
    border-bottom: 1px solid #dfe5ec !important;
    padding: 16px 18px !important;
    vertical-align: middle !important;
    line-height: 1.55 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details th:last-child,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td:last-child {
    border-right: 0 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead th {
    background: #f5f7fa !important;
    color: #253041 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead th.product-name {
    width: auto !important;
    text-align: left !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead th.product-quantity {
    width: 120px !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead th.product-unit-price,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details thead th.product-total {
    width: 180px !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td.product-name {
    display: table-cell !important;
    text-align: left !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-thumbnail {
    display: inline-block !important;
    width: 72px !important;
    margin-right: 16px !important;
    vertical-align: middle !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain !important;
    border: 1px solid #dfe5ec !important;
    border-radius: 6px !important;
    background: #fff !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-name-item {
    display: flex !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-name-item > a {
    color: #1f2937 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .wd-product-detail,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .wc-item-meta {
    color: #667085 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td.product-quantity {
    text-align: center !important;
    color: #253041 !important;
    font-weight: 700 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td.product-unit-price,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td.product-total,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot td {
    text-align: right !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td.product-total,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot td {
    color: #111827 !important;
    font-weight: 700 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot th,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot td {
    background: #fbfcfe !important;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot th {
    text-align: right !important;
    color: #475467 !important;
    font-weight: 600 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot tr:last-child th,
.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details tfoot tr:last-child td {
    border-bottom: 0 !important;
    background: #f0f5fa !important;
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}

.woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .woocommerce-Price-amount {
    display: inline-block !important;
    min-width: 7.5em !important;
}

@media (max-width: 768px) {
    .woocommerce-account .ywraq-view-quote-wrapper .responsive-table table.shop_table.order_details,
    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details {
        min-width: 660px !important;
    }

    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details th,
    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details td {
        padding: 13px 14px !important;
    }

    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-thumbnail {
        width: 56px !important;
        margin-right: 12px !important;
        flex-basis: 56px !important;
    }

    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-thumbnail img {
        width: 56px !important;
        height: 56px !important;
    }

    .woocommerce-account .ywraq-view-quote-wrapper table.shop_table.order_details .product-name-item {
        max-width: none !important;
    }
}
