/* Discogs WooCommerce Sync — Frontend Styles */

/* ── Conditiesectie op productpagina ──────────────────────────────────────── */
.dws-condition-section {
    margin: 12px 0 16px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.dws-condition-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.dws-condition-row:last-of-type { margin-bottom: 0; }

.dws-cond-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
    flex-shrink: 0;
}

.dws-cond-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid;
    border-radius: 20px;
    font-size: 13px;
}

.dws-cond-info-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    border: none;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s;
}
.dws-cond-info-btn:hover { background: #374151; color: #fff; }

.dws-seller-notes {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
    align-items: flex-start;
    flex-wrap: wrap;
}
.dws-seller-notes-text {
    font-size: 13px;
    color: #374151;
    font-style: italic;
    flex: 1;
}

.dws-full-guide-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 1px dashed #d1d5db;
}
.dws-full-guide-link:hover { color: #374151; border-color: #374151; }

/* ── Modal overlay ────────────────────────────────────────────────────────── */
.dws-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dws-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
}

.dws-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: dws-modal-in 0.2s ease;
}

@keyframes dws-modal-in {
    from { opacity:0; transform: scale(0.96) translateY(8px); }
    to   { opacity:1; transform: scale(1)    translateY(0); }
}

.dws-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.dws-modal-header h2 { margin: 0; font-size: 18px; color: #111; }

.dws-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
}
.dws-modal-close:hover { background: #f3f4f6; color: #374151; }

.dws-modal-body {
    overflow-y: auto;
    padding: 20px 24px;
}

.dws-modal-intro {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}
.dws-modal-intro a { color: #f59e0b; }

/* ── Conditie kaarten in modal ────────────────────────────────────────────── */
.dws-condition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 540px) { .dws-condition-grid { grid-template-columns: 1fr; } }

.dws-cond-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    transition: box-shadow 0.15s;
}
.dws-cond-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.dws-cond-current {
    box-shadow: 0 0 0 2px #f59e0b;
    background: #fffbeb;
}

.dws-cond-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
    margin-bottom: 8px;
}
.dws-cond-icon  { font-size: 20px; flex-shrink: 0; }
.dws-cond-name  { display: block; font-size: 14px; line-height: 1.3; }
.dws-cond-current-badge {
    display: inline-block;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    margin-top: 2px;
}
.dws-cond-stars {
    margin-left: auto;
    color: #f59e0b;
    font-size: 13px;
    flex-shrink: 0;
}
.dws-cond-desc { font-size: 12px; color: #6b7280; line-height: 1.6; margin: 0; }

.dws-modal-footer-note {
    font-size: 12px;
    color: #9ca3af;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.dws-modal-footer-note a { color: #f59e0b; }

/* ── Vraag badges (wantlist) ──────────────────────────────────────────────── */
.dws-demand-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 8px 0 !important;
    line-height: 1.4 !important;
    vertical-align: middle;
}

/* ── Prijs Advisor widget (product admin) ─────────────────────────────────── */
.dws-price-advisor-widget {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
}
.dws-price-advisor-widget h4 { margin: 0 0 10px; font-size: 14px; }
.dws-strategy-list { display: flex; flex-direction: column; gap: 6px; }
.dws-strategy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 12px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.dws-strategy-row:hover { border-color: #f59e0b; background: #fffbeb; }
.dws-strategy-row.recommended { border-color: #22c55e; background: #f0fdf4; }
.dws-strategy-price { margin-left: auto; font-weight: 700; color: #374151; }
.dws-strategy-badge { font-size: 10px; background: #dcfce7; color: #166534; padding: 1px 6px; border-radius: 3px; }
