/* Discuss With Me — Frontend Styles */

/* ── Tab container ─────────────────────────────────────────── */
.dwm-profile-tab { padding: 16px 0; }

/* ── Owner notice ──────────────────────────────────────────── */
.dwm-owner-notice {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #3c4043;
}
.dwm-owner-notice p { margin: 0; }

/* ── Buyer intro ───────────────────────────────────────────── */
.dwm-buyer-intro { margin-bottom: 20px; font-size: 14px; color: #3c4043; }
.dwm-buyer-intro p { margin: 0 0 6px; }
.dwm-balance { font-size: 14px; color: #50575e; }
.dwm-balance strong { color: #1d2327; }

/* ── Booking success notice ────────────────────────────────── */
.dwm-booking-success-notice {
    background: #e8f5e9;
    border-left: 4px solid #27ae60;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #1d2327;
}
.dwm-booking-success-icon { font-size: 20px; line-height: 1.4; flex-shrink: 0; }
.dwm-booking-success-text { line-height: 1.6; }

/* ── Error notice ──────────────────────────────────────────── */
.dwm-error-notice {
    background: #fef2f2;
    border-left: 4px solid #e53e3e;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    color: #c53030;
}

/* ── Product card ──────────────────────────────────────────── */
.dwm-product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.dwm-product-title { font-size: 16px; font-weight: 600; margin: 0 0 16px; color: #1d2327; }
.dwm-no-variations { color: #8c8f94; font-size: 14px; }

/* ── Variations table ──────────────────────────────────────── */
.dwm-variations-table-wrap { overflow-x: auto; }
.dwm-variations-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dwm-variations-table th {
    background: #f8f9fa;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #3c4043;
    border-bottom: 2px solid #e2e8f0;
}
.dwm-variations-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f1;
    color: #1d2327;
    vertical-align: middle;
}
.dwm-variations-table tbody tr:last-child td { border-bottom: none; }
.dwm-variations-table tbody tr:hover td { background: #fafafa; }
.dwm-variations-table tr.dwm-unavailable { opacity: .55; }

.dwm-col-price { width: 120px; text-align: right; }
.dwm-col-enabled { width: 70px; text-align: center; }
.dwm-col-book { width: 100px; text-align: right; }

.dwm-price-display { font-weight: 600; color: #2271b1; }
.dwm-price-na { color: #adb5bd; }

/* ── Price input ───────────────────────────────────────────── */
.dwm-price-input {
    width: 90px;
    padding: 5px 8px;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    font-size: 13px;
    text-align: right;
}
.dwm-price-input:focus { border-color: #2271b1; outline: none; box-shadow: 0 0 0 2px rgba(34,113,177,.15); }

/* ── Toggle switch ─────────────────────────────────────────── */
.dwm-toggle { position: relative; display: inline-block; width: 38px; height: 22px; }
.dwm-toggle input { opacity: 0; width: 0; height: 0; }
.dwm-toggle-slider {
    position: absolute; inset: 0;
    background: #c3c4c7;
    border-radius: 22px;
    cursor: pointer;
    transition: .2s;
}
.dwm-toggle-slider::before {
    content: '';
    position: absolute;
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}
.dwm-toggle input:checked + .dwm-toggle-slider { background: #2271b1; }
.dwm-toggle input:checked + .dwm-toggle-slider::before { transform: translateX(16px); }

/* ── Save row ──────────────────────────────────────────────── */
.dwm-save-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f1; }
.dwm-save-btn { min-width: 110px; }
.dwm-save-status { font-size: 13px; color: #27ae60; }
.dwm-save-error { color: #c53030 !important; }

/* ── Book button ───────────────────────────────────────────── */
.dwm-book-btn {
    display: inline-block;
    padding: 7px 16px;
    background: #2271b1;
    border: 1px solid #2271b1;
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
    text-decoration: none;
}
.dwm-book-btn:hover:not(:disabled):not(.dwm-booked-state) {
    background: #135e96;
    border-color: #135e96;
}
.dwm-book-btn:disabled:not(.dwm-booked-state) {
    opacity: .65;
    cursor: not-allowed;
}
/* Green "Booked ✓" state */
.dwm-book-btn.dwm-booked-state,
button.dwm-book-btn.dwm-booked-state {
    background-color: #27ae60 !important;
    border-color: #27ae60 !important;
    color: #fff !important;
    cursor: default !important;
    pointer-events: none !important;
    opacity: 1 !important;
}

/* ── Mark as Responded (vendor Dokan page) ─────────────────── */
.dwm-respond-wrap {
    background: #fff8e1;
    border: 1px solid #f0b849;
    border-radius: 6px;
    padding: 18px 20px;
    margin-top: 24px;
}
.dwm-respond-wrap h3 { margin: 0 0 8px; font-size: 15px; color: #1d2327; }
.dwm-respond-wrap p  { margin: 0 0 14px; font-size: 14px; color: #50575e; }
.dwm-respond-btn {
    padding: 9px 22px;
    background: #27ae60;
    border: none;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.dwm-respond-btn:hover { background: #219150; }
.dwm-respond-btn:disabled { opacity: .65; cursor: not-allowed; }
.dwm-respond-success {
    display: inline-flex; align-items: center; gap: 6px;
    background: #e8f5e9; border: 1px solid #27ae60;
    padding: 8px 14px; border-radius: 4px;
    font-size: 14px; color: #1a6834; font-weight: 600;
}
