/* ============================================================
   WC Request a Quote v2.0
   ============================================================ */

/* ── Add to Quote Button ─────────────────────────────────── */
.wrq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    touch-action: manipulation;
    min-height: 44px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    gap: 8px;
}
.wrq-btn:hover            { background-color: #333; color: #fff; }
.wrq-btn:active           { transform: scale(0.97); }
.wrq-btn.wrq-btn--loading { opacity: 0.7; cursor: wait; }
.wrq-btn.wrq-btn--success { background-color: #00a32a; }
.wrq-btn.wrq-btn--out-of-stock {
    background-color: #e0e0e0;
    color: #888888;
    cursor: not-allowed;
    opacity: 1;
}
.wrq-btn--sm { padding: 8px 16px;  font-size: 12px; min-height: 36px; }
.wrq-btn--lg { padding: 16px 32px; font-size: 16px; min-height: 52px; }
.wrq-btn--xl { padding: 20px 40px; font-size: 18px; min-height: 60px; }
@media (max-width: 480px) { .wrq-btn--loop { width: 100%; } }

/* ── Pill Button ─────────────────────────────────────────── */
.wrq-mini-cart-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.wrq-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 9px 18px 9px 14px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
    min-height: 40px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-sizing: border-box;
}
.wrq-pill-btn:hover { background-color: #333; color: #fff; }
.wrq-pill-icon {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.wrq-pill-icon i, .wrq-pill-icon svg { font-size: inherit; width: inherit; height: inherit; }
.wrq-pill-label { font-weight: 600; }
.wrq-pill-count { font-weight: 700; opacity: 0.85; }

/* ── Drawer — built by JS and appended to <body> ─────────── */
/* Lives on body so Elementor overflow:hidden cannot clip it  */
.wrq-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: -4px 0 32px rgba(0,0,0,0.18);
    overflow: hidden;
}
.wrq-drawer.wrq-open {
    transform: translateX(0);
}
@media (max-width: 500px) {
    .wrq-drawer { width: 100vw; }
}

/* Drawer header */
.wrq-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
}
.wrq-drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.wrq-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 6px;
    border-radius: 6px;
    min-width: 36px;
    min-height: 36px;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.wrq-drawer-close:hover { background: #f5f5f5; }
.wrq-drawer-close svg { display: block; stroke: currentColor; }

/* Drawer body */
.wrq-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Drawer footer */
.wrq-drawer-footer {
    flex-shrink: 0;
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}
.wrq-drawer-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    padding: 13px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
    min-height: 48px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
.wrq-drawer-view-btn:hover { background: #333; color: #fff; }

/* Drawer items */
.wrq-mini-loading {
    padding: 40px 20px;
    text-align: center;
    color: #bbb;
    font-size: 14px;
}
.wrq-mini-empty {
    padding: 40px 20px;
    color: #bbb;
    font-size: 14px;
    text-align: center;
    margin: 0;
}
.wrq-mini-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
}
.wrq-mini-item + .wrq-mini-item { border-top: 1px solid #f0f0f0; }
.wrq-mini-item-img {
    width: 60px; height: 60px;
    object-fit: cover; border-radius: 8px;
    border: 1px solid #eee; flex-shrink: 0;
}
.wrq-img-placeholder {
    width: 60px; height: 60px;
    background: #f5f5f5; border-radius: 8px;
    border: 1px solid #eee; flex-shrink: 0;
}
.wrq-mini-item-info { flex: 1; min-width: 0; }
.wrq-mini-item-name {
    display: block; font-size: 14px; font-weight: 500;
    color: #1a1a1a; line-height: 1.4; white-space: normal;
}
.wrq-mini-item-qty { display: block; font-size: 12px; color: #888; margin-top: 3px; }
.wrq-mini-remove {
    background: none; border: none; cursor: pointer;
    color: #ccc; padding: 8px; flex-shrink: 0;
    transition: color 0.15s; min-width: 36px; min-height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px; -webkit-tap-highlight-color: transparent;
}
.wrq-mini-remove:hover { color: #d63638; }

/* Body scroll lock */
body.wrq-drawer-open { overflow: hidden; }

/* ── Quote Form ──────────────────────────────────────────── */
.wrq-form-wrap { background: #ffffff; padding: 40px; box-sizing: border-box; }
@media (max-width: 600px) { .wrq-form-wrap { padding: 20px 16px; } }

.wrq-form-empty { color: #999; font-size: 15px; text-align: center; padding: 40px 20px; background: #f9f9f9; border-radius: 8px; }

/* Steps */
.wrq-steps { display: flex; align-items: center; margin-bottom: 36px; }
.wrq-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.wrq-step-num { width: 34px; height: 34px; border-radius: 50%; background: #e8e8e8; color: #888; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.wrq-step-label { font-size: 12px; font-weight: 500; color: #888; white-space: nowrap; transition: color 0.2s; }
.wrq-step.active .wrq-step-num   { background: #1a1a1a; color: #fff; }
.wrq-step.active .wrq-step-label { color: #1a1a1a; font-weight: 600; }
.wrq-step.done   .wrq-step-num   { background: #00a32a; color: #fff; }
.wrq-step.done   .wrq-step-num::before { content: '✓'; }
.wrq-step-line { flex: 1; height: 2px; background: #e8e8e8; margin: 0 6px; margin-bottom: 20px; min-width: 16px; }
@media (max-width: 480px) {
    .wrq-step-label { display: none; }
    .wrq-step.active .wrq-step-label { display: block; font-size: 11px; }
    .wrq-step-num { width: 28px; height: 28px; font-size: 12px; }
    .wrq-steps { margin-bottom: 24px; }
}

.wrq-section-heading { font-size: 17px; font-weight: 700; color: #1a1a1a; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }

.wrq-field-grid { display: grid; gap: 0 20px; }
.wrq-grid-2 { grid-template-columns: 1fr 1fr; }
.wrq-grid-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .wrq-grid-2 { grid-template-columns: 1fr; } .wrq-grid-full { grid-column: 1; } }

.wrq-field { margin-bottom: 20px; }
.wrq-field-label { display: block; font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; letter-spacing: 0.01em; }
.wrq-required { color: #d63638; margin-left: 2px; }
.wrq-field input, .wrq-field select, .wrq-field textarea {
    width: 100%; padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: 6px;
    font-size: 16px; color: #1a1a1a; background: #f8f8f8; box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s; font-family: inherit;
    min-height: 48px; -webkit-appearance: none; appearance: none;
}
.wrq-field input:focus, .wrq-field select:focus, .wrq-field textarea:focus {
    outline: none; border-color: #1a1a1a; box-shadow: 0 0 0 3px rgba(26,26,26,0.08); background: #fff;
}
.wrq-field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.wrq-same-billing-wrap { margin: 4px 0 20px; }
.wrq-checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; color: #555; user-select: none; }
.wrq-checkbox-label input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; cursor: pointer; flex-shrink: 0; accent-color: #1a1a1a; -webkit-appearance: auto; appearance: auto; }

.wrq-form-items-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.wrq-form-items-table th, .wrq-form-items-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.wrq-form-items-table th { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #999; background: #fafafa; }
.wrq-form-items-table tr:last-child td { border-bottom: none; }
@media (max-width: 600px) {
    .wrq-form-items-table, .wrq-form-items-table tbody, .wrq-form-items-table tr { display: block; width: 100%; }
    .wrq-form-items-table thead { display: none; }
    .wrq-form-items-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
    .wrq-form-items-table tr:last-child { border-bottom: none; }
    .wrq-form-items-table td { display: block; padding: 0; border: none; }
    .wrq-col-img { width: auto !important; flex-shrink: 0; }
    .wrq-col-sku { width: 100% !important; padding-left: 68px; order: 10; }
    .wrq-col-qty { order: 11; }
    .wrq-col-remove { order: 12; margin-left: auto; }
    .wrq-form-items-table td:not(.wrq-col-img):not(.wrq-col-qty):not(.wrq-col-remove):not(.wrq-col-sku) { flex: 1; min-width: 0; }
}
.wrq-col-img { width: 68px; padding-right: 0 !important; }
.wrq-col-sku { width: 100px; }
.wrq-col-qty { width: 80px; }
.wrq-col-remove { width: 40px; text-align: center; }
.wrq-form-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; display: block; }
.wrq-form-item-name { display: block; font-weight: 500; color: #1a1a1a; font-size: 14px; line-height: 1.4; }
.wrq-form-item-sku  { display: block; font-size: 12px; color: #aaa; margin-top: 2px; }
.wrq-qty-input { width: 60px; padding: 8px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 14px; text-align: center; min-height: 40px; box-sizing: border-box; background: #f8f8f8; }
.wrq-form-remove { background: none; border: none; cursor: pointer; color: #ccc; padding: 8px; transition: color 0.15s; min-width: 32px; min-height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 4px; -webkit-tap-highlight-color: transparent; }
.wrq-form-remove:hover { color: #d63638; }

.wrq-form-nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.wrq-btn-next, .wrq-btn-back, .wrq-btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 28px; border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; min-height: 50px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; box-sizing: border-box; font-family: inherit; }
.wrq-btn-next   { background: #1a1a1a; color: #fff; margin-left: auto; }
.wrq-btn-next:hover   { background: #333; }
.wrq-btn-back   { background: #f0f0f0; color: #555; }
.wrq-btn-back:hover   { background: #e0e0e0; }
.wrq-btn-submit { background: #1a1a1a; color: #fff; margin-left: auto; }
.wrq-btn-submit:hover    { background: #333; }
.wrq-btn-submit:disabled { opacity: 0.7; cursor: wait; }
@media (max-width: 480px) {
    .wrq-form-nav { flex-direction: column-reverse; }
    .wrq-btn-next, .wrq-btn-back, .wrq-btn-submit { width: 100%; margin-left: 0; }
}

.wrq-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .wrq-review-grid { grid-template-columns: 1fr; } }
.wrq-review-section { background: #f8f8f8; border-radius: 8px; padding: 16px 20px; }
.wrq-review-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #999; margin: 0 0 12px; }
.wrq-review-row { display: flex; gap: 8px; margin-bottom: 8px; font-size: 13px; line-height: 1.4; }
.wrq-review-row:last-child { margin-bottom: 0; }
.wrq-review-label { color: #888; font-weight: 500; flex-shrink: 0; min-width: 80px; }
.wrq-review-value { color: #1a1a1a; font-weight: 500; word-break: break-word; }

.wrq-form-message { margin-bottom: 20px; padding: 14px 18px; border-radius: 6px; font-size: 14px; font-weight: 500; border: 1px solid transparent; line-height: 1.5; }
.wrq-form-message.wrq-success { background: #edfaee; border-color: #b5e8b7; color: #1a6b1d; }
.wrq-form-message.wrq-error   { background: #fdecea; border-color: #f5c6c6; color: #9b1c1c; }

/* Admin */
.wrq-admin-wrap .postbox-header h2 { padding: 12px; font-size: 14px; }
