.dts-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fdfdfd;
    font-family: inherit;
}

.dts-form-section {
    margin-bottom: 20px;
}

.dts-form-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
}

#dts-income-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.dts-menu-item-label {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    cursor: pointer;
}

.dts-menu-item-label:hover {
    background-color: #f9f9f9;
}

.dts-price {
    font-weight: bold;
}

.dts-result-section {
    background: #f0f4f8;
    padding: 15px;
    border-radius: 5px;
    text-align: right;
}

.dts-result-row {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.dts-highlight {
    color: #e53935;
    font-weight: bold;
    font-size: 1.4em;
}

.dts-menu-checkbox-wrapper {
    margin-bottom: 5px;
}


/* 文字色を強制的に濃いグレーに、背景を白にする */
#dts-container, .dts-wrapper {
    color: #333333 !important;
    background-color: #ffffff !important;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* 金額表示を大きく太くする */
.dts-result-value {
    font-weight: bold;
    color: #000000 !important;
    font-size: 1.2em;
}


/* 本数セレクトボックスのデザイン調整 */
.dts-menu-qty {
    appearance: auto; /* ブラウザ標準の矢印を表示させる */
    -webkit-appearance: auto;
    -moz-appearance: auto;
    
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin: 0 5px;
}

/* マウスを乗せた時に色を変えて「押せる感」を出す */
.dts-menu-qty:hover {
    border-color: #007cba; /* WordPressの標準的なブルー */
}

/* メニュー行のレイアウト微調整（スマホ対応含む） */
.dts-menu-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.dts-menu-item-row label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* セレクトボックスの幅を強制的に狭くする */
select.dts-menu-qty {
    width: 70px !important;        /* 幅を70pxに固定 */
    min-width: auto !important;    /* テーマの最小幅設定を解除 */
    max-width: 100px !important;   /* 最大幅も制限 */
    padding: 4px 8px !important;   /* 内側の余白を調整 */
    height: auto !important;       /* 高さをなりゆきに */
    display: inline-block !important; /* インライン表示に */
    margin: 0 5px !important;      /* 前後の隙間 */
    font-size: 14px !important;    /* 文字サイズ */
    line-height: 1.5 !important;   /* 行間 */
}