﻿/* ============================================================
   RideLink ブランドスタイル
   プライマリオレンジ: #ED8C26 (CTA、アクセント)
   ============================================================ */

/* CTAボタン (オレンジ solid) - btn-warningは黄色なので使わず専用クラス */
.btn-rl-primary {
    background-color: #ED8C26;
    border-color: #ED8C26;
    color: #fff;
}
.btn-rl-primary:hover,
.btn-rl-primary:focus,
.btn-rl-primary:active {
    background-color: #D67A1F;
    border-color: #D67A1F;
    color: #fff;
}
.btn-rl-primary:disabled,
.btn-rl-primary.disabled {
    background-color: #ED8C26;
    border-color: #ED8C26;
    color: #fff;
    opacity: 0.65;
}

/* MW12 タブ (位置登録モーダル内) - 黒帯背景 + 白抜きオレンジpill、アイコン付き */
.MW12_tab_container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px 0;
    justify-content: center;
}
.MW12_tab {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #ED8C26;
    border: 1.5px solid #ED8C26;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s;
    cursor: pointer;
    line-height: 1.5;
}
.MW12_tab i {
    margin-right: 5px;
    font-size: 13px;
}
.MW12_tab:hover:not(.disabled):not(.active) {
    background: #fff5e8;
}
.MW12_tab.active {
    background: #ED8C26;
    color: #fff;
    border-color: #ED8C26;
    box-shadow: 0 2px 5px rgba(237, 140, 38, 0.4);
}
.MW12_tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.4);
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.35);
}
.MW12_tab_count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    background: rgba(237, 140, 38, 0.15);
    color: #ED8C26;
    line-height: 1.4;
    min-width: 18px;
    text-align: center;
}
.MW12_tab.active .MW12_tab_count {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.MW12_tab.disabled .MW12_tab_count {
    background: rgba(255, 255, 255, 0.15);
    color: #999;
}

/* MW12 カテゴリセレクト (5階層) - getCodeSelect 出力の .btn-secondary グレー塗りを MW10系に合わせて上書き */
#MW12_LocationSelect select.btn-secondary {
    background-color: #fafafa !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23666'%3E%3Cpath d='M3 6l5 5 5-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    background-size: 12px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 3px 22px 3px 8px !important;
    font-size: 12px !important;
    height: auto !important;
    margin: 0 4px 4px 0;
    width: auto;
    min-width: 110px;
    display: inline-block;
}

/* MW12 フォームエラーラベル (空のとき高さゼロ、余計な余白を防ぐ) */
label.text-danger.fs-7:empty {
    display: none;
}
