/*
Theme Name:     Pro Design
Theme URI:      n/a
Template:       kadence
Author:         Pro Author
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/


/* --- 1. DOSAGE SWITCHER STYLES --- */
.chumedic-dosage-wrapper {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.dosage-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dosage-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dosage-btn {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #334155 !important;
    background: #fff;
    transition: all 0.2s;
}

.dosage-btn:hover {
    border-color: #2563eb;
    color: #2563eb !important;
}

.dosage-btn.active {
    background: #2563eb;
    color: #fff !important;
    border-color: #2563eb;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    pointer-events: none; /* ห้ามคลิกตัวปัจจุบัน */
}

/* --- 2. BULK BUY TABLE STYLES --- */
.chumedic-prod-container {
    margin: 25px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.chumedic-table-header {
    background: #f1f5f9;
    color: #1e293b;
    padding: 12px 15px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
}

.chumedic-prod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.chumedic-prod-table th {
    background: #fff;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    padding: 12px;
    text-align: center;
    border-bottom: 2px solid #f1f5f9;
}

.chumedic-prod-table th.col-left { text-align: left; padding-left: 20px; }

.chumedic-prod-table td {
    padding: 12px;
    border-bottom: 1px solid #f8fafc;
    text-align: center;
    vertical-align: middle;
    color: #334155;
}

.chumedic-prod-table tr:last-child td { border-bottom: none; }

/* Column Specifics */
.col-package { text-align: left !important; padding-left: 20px !important; }

.col-unit-price .price-val {
    color: #059669; /* Green for cheap unit price */
    font-weight: 700;
    font-size: 15px;
}
.col-unit-price .price-suffix { font-size: 12px; color: #94a3b8; }

.col-total-price { font-weight: 700; color: #1e293b; }

.qty-input {
    width: 50px;
    text-align: center;
    padding: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

/* Action Button */
.btn-action {
    background: #2563eb; /* Medical Blue */
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-action:hover { background: #1d4ed8; }
.btn-action.added { background: #059669; }
