/*
見積依頼一覧
*/
/* ヘッダーの見積もりアイコン */
.header-quote-cart-icon {
    display: flex; /* アイコンとテキストを横並びにする */
    flex-direction: column; /* アイコンとテキストを縦に並べる場合 */
    align-items: center; /* 中央寄せ */
    text-decoration: none; /* 下線なし */
    color: #333; /* リンクの色 */
    font-size: 14px;
    position: relative; /* バッジの配置基準 */
    padding: 5px; /* クリックしやすいようにパディング */
}

/* カートアイコンのコンテナ */
.quote-cart-icon {
    position: relative; /* バッジの配置基準 */
    display: block;
    width: 24px; /* SVGアイコンのサイズに合わせる */
    height: 24px; /* SVGアイコンのサイズに合わせる */
    margin-bottom: 5px; /* アイコンとテキストの間隔 */
}

/* SVGアイコンのスタイル (もしSVGを使う場合) */
.quote-cart-icon svg {
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

/* カートの数字バッジ */
.quote-item-count-badge {
    position: absolute;
    top: -8px; /* 上方向への位置調整 */
    right: -8px; /* 右方向への位置調整 */
    background-color: #ff0000; /* 赤色の背景 */
    color: #ffffff; /* 白色の文字 */
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%; /* 丸い形 */
    padding: 2px 5px; /* 内側の余白 */
    min-width: 18px; /* 1桁でも丸く見えるように最小幅 */
    text-align: center;
    line-height: 14px; /* 垂直方向の中央揃え */
    pointer-events: none; /* クリックイベントを透過させる */
    display: none;
}

/* ラベルのスタイル */
.quote-cart-label {
    display: block;
}

.js-final-send{
    margin-bottom: 30px;
}

.send-btn{
    text-align: right;
}

/*---------------------
数量調整ボタンデザイン（PC）
-----------------------*/
.quantity-list-qty {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quantity-list-wrapper {
    display: inline-flex;
    align-items: center;
    background: #f1ede9;
    border-radius: 10px;
    padding: 0 8px;
    user-select: none;
}

.quantity-list-wrapper .qty-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    width: 26px;
    height: 32px;
    line-height: 10px;
}

.js-list-qty-input {
    width: 55px;
    text-align: center;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 15px;
    padding: 0;
}

.quantity-list-wrapper input[type="number"]::-webkit-inner-spin-button,
.quantity-list-wrapper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-list-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

/* 削除ボタン */
.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.remove-btn svg {
    width: 20px;
    height: 20px;
    color: #c00;
}

.remove-btn:hover svg {
    color: #900;
}

/*----------------------------------
スマホ版最適化（767px 以下）
----------------------------------*/
@media only screen and (max-width: 767px) {

    /* テーブル見た目リセット */
    .shop_table.quote_list {
        width: 100%;
        border-collapse: collapse;
    }

    /* ヘッダー非表示 */
    .shop_table.quote_list thead {
        display: none;
    }

    /* 行デザイン */
    .shop_table.quote_list tr {
        display: block;
        border: 1px solid #ddd;
        padding: 12px;
        margin-bottom: 18px;
        border-radius: 8px;
        position: relative;
    }

    /* セル縦並び */
    .shop_table.quote_list td {
        display: block;
        padding: 4px 0;
    }

    /* 数量 */
    .shop_table.quote_list .quantity-list-qty {
        display: flex;
        align-items: center;
        margin-top: 6px;
    }

    /* 数量ボタン枠 */
    .shop_table.quote_list .quantity-list-wrapper {
        display: inline-flex;
        margin-left: 0;
    }

    /* 「点」 表示のズレを解消 */
    .shop_table.quote_list .quantity-list-qty span {
        font-size: 14px;
        display: inline-block;
        margin-left: 4px;
    }
        .shop_table.quote_list tr {
        position: relative;
    }

    /* 削除ボタンのセルを右上に固定 */
    .shop_table.quote_list td:last-child {
        position: absolute !important;
        top: 10px;
        right: 10px;
        display: block;
        padding: 0;
        margin: 0;
        width: auto;
    }

    /* ボタン自体 */
    .shop_table.quote_list .js-remove-item {
        background: none;
        border: none;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


