:root{
  --rbq-green: #10b981;
  --rbq-green-dark: #059669;
  --rbq-gray: #6b7280;
  --rbq-border: #e5e7eb;
}

.btn-primary{background:var(--rbq-green);color:#fff;border:0;border-radius:12px;padding:10px 16px;font-weight:600;cursor:pointer;box-shadow:0 4px 14px rgba(16,185,129,.25);}
.btn-primary:hover{background:var(--rbq-green-dark);}
.btn-primary[disabled]{opacity:.75;cursor:not-allowed;position:relative}
.btn-primary.loading{position:relative}
.btn-primary.loading::after{
  content:"";
  width:18px;height:18px;border:2px solid rgba(255,255,255,.6);border-top-color:#fff;border-radius:50%;
  animation:rbqspin .8s linear infinite;position:absolute;right:14px;top:50%;transform:translateY(-50%);
}
@keyframes rbqspin{to{transform:translateY(-50%) rotate(360deg);}}
.rbq-form .btn-block{width:100%;display:block}

/* Widgets */
.rbq-widget{display:inline-block;max-width:640px;width:100%;padding:12px 0}
.rbq-price-line{font-size:18px;margin-bottom:10px;display:flex;gap:8px;align-items:baseline}
.rbq-price{font-weight:700}
.rbq-unit{color:var(--rbq-gray);font-size:14px}

.rbq-stepper{display:inline-flex;align-items:center;gap:10px;background:#1f2937;color:#fff;border-radius:14px;padding:8px 12px;margin-right:12px}
.rbq-stepper.small{padding:6px 10px;border-radius:10px}
.rbq-stepper button{background:transparent;border:0;color:#fff;font-size:22px;line-height:1;cursor:pointer}
.rbq-stepper input{width:54px;text-align:center;background:transparent;border:0;color:#fff;font-weight:600;font-size:16px}

.rbq-options{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 14px}
.rbq-opt{display:flex;align-items:center;gap:6px;border:1px solid var(--rbq-border);padding:6px 10px;border-radius:10px}

.rbq-feedback{margin-top:8px;color:#065f46;background:#ecfdf5;padding:8px 12px;border-radius:10px;display:none}
.rbq-feedback .rbq-view{margin-left:6px;font-weight:600}

/* Bundle */
.rbq-brow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0}
.rbq-brow .rbq-blabel{font-weight:600}
.rbq-bopts{margin-top:6px;border-top:1px dashed var(--rbq-border);padding-top:8px}

/* Offerte tabel */
.rbq-table-wrap{overflow:auto;border:1px solid var(--rbq-border);border-radius:12px}
.rbq-table{width:100%;border-collapse:separate;border-spacing:0;background:#fff}
.rbq-table th, .rbq-table td{padding:12px;border-bottom:1px solid var(--rbq-border)}
.rbq-table th{background:#fafafa;text-align:left}
.rbq-table tfoot td{font-size:16px;font-weight:700}
.rbq-empty{padding:20px;text-align:center;color:var(--rbq-gray)}
.rbq-remove{background:#ef4444;color:#fff;border:0;border-radius:10px;padding:8px 10px;cursor:pointer}

/* Form */
.rbq-form{margin-top:20px}
.rbq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.rbq-field label{font-weight:600;display:block;margin-bottom:6px}
.rbq-field input{width:100%;border:1px solid var(--rbq-border);border-radius:10px;padding:10px}
.rbq-terms{display:flex;align-items:center;gap:8px;margin:14px 0}
.rbq-form-feedback{margin-top:10px;color:#065f46}
.rbq-field label .req, .rbq-terms .req{color:#ef4444;margin-left:4px}

/* Responsive stacked offertetabel */
@media (max-width: 840px){
  .rbq-table-wrap{overflow:visible;border:0}
  .rbq-table thead{display:none}
  .rbq-table, .rbq-table tbody, .rbq-table tr, .rbq-table td{display:block;width:100%}
  .rbq-table tr{border:1px solid var(--rbq-border);border-radius:12px;margin-bottom:12px;padding:8px;background:#fff}
  .rbq-table td{border:0;padding:8px 12px;display:flex;justify-content:space-between;gap:10px}
  .rbq-table td::before{content:attr(data-label); color:var(--rbq-gray); font-weight:600}
  .rbq-table tfoot{display:block}
  .rbq-table tfoot tr{border:0; background:transparent; padding:0}
  .rbq-table tfoot td{display:inline-block; width:auto; padding:8px 0; font-size:18px}
  .rbq-total-label{display:none}
}

/* Addons inherit .rbq-options styling */
.rbq-addon small{color:var(--rbq-gray)}
