/* Makka Nuts B2B Multi-Item RFQ Basket Stylesheet */
/* Product Stepper Controls */
.makka-rfq-control-box {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}
.makka-rfq-ctx-single {
    background: linear-gradient(180deg, #FBF8F2 0%, #F2EBDD 100%);
    border: 1px solid rgba(197, 160, 89, 0.38);
    border-radius: 14px;
    padding: 16px 18px;
    margin: 18px 0;
}
.makka-rfq-single-hint {
    font-size: 13px;
    font-weight: 700;
    color: #0B172A;
    margin-bottom: 10px;
}
.makka-rfq-pack-opts {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.makka-rfq-pack-pill {
    flex: 1 1 0;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid rgba(197, 160, 89, 0.55);
    background: #FFFFFF;
    color: #0B172A;
    font-size: 11.8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
    white-space: nowrap;
}
.makka-rfq-pack-pill:hover {
    border-color: #C5A059;
    background: #FBF6EC;
}
.makka-rfq-pack-pill.is-active {
    background: linear-gradient(135deg, #0B172A 0%, #162844 100%);
    color: #DFBA73;
    border-color: #C5A059;
    box-shadow: 0 2px 8px rgba(11, 23, 42, 0.14);
}
.makka-rfq-stepper-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
}
.makka-rfq-ctx-loop .makka-rfq-stepper-row {
    flex-direction: column;
    gap: 7px;
}
.makka-rfq-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
    border: 1px solid rgba(197, 160, 89, 0.55);
    border-radius: 10px;
    overflow: hidden;
    height: 38px;
    flex: 0 0 auto;
}
.makka-rfq-ctx-loop .makka-rfq-stepper {
    width: 100%;
    height: 36px;
}
.makka-rfq-step-btn {
    width: 34px;
    height: 100%;
    border: none;
    background: #F4EFE4;
    color: #0B172A;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.makka-rfq-step-btn:hover {
    background: #C5A059;
    color: #07101E;
}
.makka-rfq-qty-input {
    flex: 1 1 auto;
    width: 48px !important;
    min-width: 40px;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-weight: 800 !important;
    font-size: 14px !important;
    color: #0B172A !important;
    padding: 0 2px !important;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
.makka-rfq-qty-input::-webkit-inner-spin-button,
.makka-rfq-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.makka-rfq-unit-suffix {
    font-size: 11.5px;
    font-weight: 700;
    color: #526077;
    padding-inline: 2px 8px;
    white-space: nowrap;
}
.makka-rfq-add-btn {
    flex: 1 1 160px;
    height: 38px;
    background: #FFFFFF;
    color: #0B172A !important;
    border: 1.5px solid #0B172A;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    padding: 0 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.makka-rfq-ctx-loop .makka-rfq-add-btn {
    width: 100%;
    height: 36px;
    flex: none;
    font-size: 12.5px;
}
.makka-rfq-add-btn:hover,
.makka-rfq-add-btn.is-added {
    background: linear-gradient(135deg, #0B172A 0%, #152540 100%);
    color: #DFBA73 !important;
    border-color: #C5A059;
}
.makka-rfq-live-units {
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #876322;
}

/* Floating Trigger (Positioned opposite #makka-floating-hub) */
.makka-rfq-floating-trigger {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #0B172A 0%, #152540 100%);
    color: #FAF8F5;
    border: 1.5px solid #C5A059;
    border-radius: 50px;
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 800;
    font-family: var(--makka-font-body, sans-serif);
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(7, 16, 30, 0.34);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.rtl .makka-rfq-floating-trigger {
    right: auto;
    left: 25px;
}
.makka-rfq-floating-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(197, 160, 89, 0.36);
}
.makka-rfq-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 50px;
    background: linear-gradient(135deg, #DFBA73 0%, #C5A059 100%);
    color: #07101E;
    font-size: 12px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

/* Slide-over Drawer */
.makka-rfq-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: none;
}
.makka-rfq-drawer.is-open {
    display: block;
}
.makka-rfq-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 16, 30, 0.65);
    backdrop-filter: blur(4px);
}
.makka-rfq-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 470px;
    background: #FAF8F5;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(7, 16, 30, 0.35);
    font-family: var(--makka-font-body, sans-serif);
}
.makka-rfq-drawer[dir="rtl"] .makka-rfq-panel {
    right: auto;
    left: 0;
    box-shadow: 10px 0 40px rgba(7, 16, 30, 0.35);
}
.makka-rfq-panel-header {
    background: linear-gradient(135deg, #07101E 0%, #0F2038 100%);
    color: #FAF8F5;
    padding: 18px 20px;
    border-bottom: 2px solid #C5A059;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.makka-rfq-panel-title {
    margin: 0 0 4px 0;
    font-size: 17px !important;
    font-weight: 800;
    color: #DFBA73 !important;
}
.makka-rfq-panel-sub {
    margin: 0;
    font-size: 12px;
    color: #CBD5E1;
}
.makka-rfq-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.makka-rfq-clear-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: #DFBA73;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}
.makka-rfq-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(197, 160, 89, 0.45);
    background: rgba(255, 255, 255, 0.1);
    color: #FAF8F5;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.makka-rfq-items-wrap {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.makka-rfq-row-card {
    background: #FFFFFF;
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(11, 23, 42, 0.04);
}
.makka-rfq-row-img {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    background: #F4EFE4;
    flex-shrink: 0;
}
.makka-rfq-row-main {
    flex: 1 1 auto;
    min-width: 0;
}
.makka-rfq-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.makka-rfq-row-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #0B172A;
    text-decoration: none;
    line-height: 1.35;
}
.makka-rfq-row-rm {
    border: none;
    background: transparent;
    color: #94A3B8;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.makka-rfq-row-rm:hover {
    color: #DC2626;
}
.makka-rfq-row-meta {
    font-size: 11.5px;
    color: #64748B;
    margin: 3px 0 8px 0;
}
.makka-rfq-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.makka-rfq-row-units {
    font-size: 12px;
    font-weight: 800;
    color: #9A7632;
}
.makka-rfq-empty-state {
    padding: 50px 24px;
    text-align: center;
    flex: 1 1 auto;
}
.makka-rfq-empty-icon {
    font-size: 46px;
    margin-bottom: 10px;
}
.makka-rfq-empty-state h4 {
    color: #0B172A;
    margin: 0 0 8px 0;
    font-size: 17px;
}
.makka-rfq-empty-state p {
    color: #64748B;
    font-size: 13.5px;
    margin: 0 0 18px 0;
}
.makka-rfq-browse-btn {
    display: inline-block;
    background: #0B172A;
    color: #DFBA73 !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid #C5A059;
}
.makka-rfq-panel-footer {
    background: #F4EFE4;
    border-top: 1px solid rgba(197, 160, 89, 0.45);
    padding: 14px 18px;
}
.makka-rfq-buyer-fields {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
}
.makka-rfq-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.makka-rfq-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(197, 160, 89, 0.45) !important;
    background: #FFFFFF !important;
    color: #0B172A !important;
    font-size: 12.5px !important;
    font-family: inherit !important;
}
.makka-rfq-totals-box {
    background: #FFFFFF;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12.5px;
    color: #334155;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.makka-rfq-totals-box > div {
    display: flex;
    justify-content: space-between;
}
.makka-rfq-tot-weight-row {
    border-top: 1px dashed rgba(197, 160, 89, 0.45);
    padding-top: 4px;
    margin-top: 2px;
    font-size: 14px;
    color: #0B172A;
}
.makka-rfq-status-banner {
    background: #ECFDF5;
    border: 1px solid #10B981;
    color: #065F46;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 10px;
}
.makka-rfq-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.makka-rfq-btn-wa {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #DFBA73 0%, #C5A059 60%, #9A7632 100%);
    color: #07101E;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(197, 160, 89, 0.35);
}
.makka-rfq-sec-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.makka-rfq-btn-crm,
.makka-rfq-btn-copy {
    border: 1px solid rgba(11, 23, 42, 0.25);
    background: #0B172A;
    color: #FAF8F5;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.makka-rfq-btn-copy {
    background: #FFFFFF;
    color: #0B172A;
}
@media (max-width: 768px) {
    .makka-rfq-floating-trigger {
        bottom: 14px;
        right: 12px;
        padding: 9px 13px;
        font-size: 12px;
        max-width: calc(100vw - 82px);
        gap: 6px;
    }
    body.rtl .makka-rfq-floating-trigger {
        right: auto;
        left: 12px;
    }
    .makka-rfq-panel {
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .makka-rfq-panel-header {
        padding: 14px 14px;
        position: sticky;
        top: 0;
        z-index: 4;
    }
    .makka-rfq-panel-title {
        font-size: 15.5px !important;
    }
    .makka-rfq-items-wrap {
        overflow-y: visible;
        flex: 0 0 auto;
        padding: 12px 14px;
    }
    .makka-rfq-panel-footer {
        padding: 12px 14px 18px;
    }
    .makka-rfq-input,
    .makka-rfq-qty-input {
        font-size: 16px !important;
    }
    .makka-rfq-add-btn {
        white-space: normal;
        line-height: 1.25;
        height: auto;
        min-height: 38px;
        padding: 6px 12px;
    }
}
@media (max-width: 480px) {
    .makka-rfq-two-cols,
    .makka-rfq-sec-actions {
        grid-template-columns: 1fr;
    }
    .makka-rfq-row-card {
        padding: 10px;
        gap: 10px;
    }
    .makka-rfq-row-img {
        width: 52px;
        height: 52px;
    }
}
