/* Vendor registration wizard - steps, panels and the inventory shipment table. */

.vr-head { margin: 10px 0 22px; }
.vr-head h2 { font-size: 32px; font-weight: 800; color: #1b3a8f; margin: 0 0 6px; }
.vr-head p { font-size: 14.5px; color: #6b7076; margin: 0; }

/* ---- stepper ---- */
.vr-stepper { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px;
              position: relative; margin-bottom: 26px; }
.vr-stepper::before { content: ''; position: absolute; top: 17px; left: 8%; right: 8%; height: 2px;
                      background: #e3e7f0; z-index: 0; }
.vr-stepper__item { position: relative; z-index: 1; flex: 1; text-align: center; }
.vr-stepper__dot { width: 34px; height: 34px; border-radius: 50%; background: #c7cee0; color: #fff;
                   font-weight: 700; font-size: 14px; display: flex; align-items: center;
                   justify-content: center; margin: 0 auto 7px; transition: background .2s; }
.vr-stepper__label { font-size: 12px; color: #8a90a0; line-height: 1.3; padding: 0 2px; }
.vr-stepper__item.is-active .vr-stepper__dot { background: #e2231a; }
.vr-stepper__item.is-active .vr-stepper__label { color: #e2231a; font-weight: 700; }
.vr-stepper__item.is-done .vr-stepper__dot { background: #1b5fd9; }
.vr-stepper__item.is-done .vr-stepper__label { color: #1b3a8f; }
.vr-stepper__item.is-skipped { opacity: .4; }

/* ---- panels ---- */
.vr-panel { background: #fff; border: 1px solid #e6eaf2; border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.vr-panel__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.vr-panel__num { width: 34px; height: 34px; border-radius: 8px; background: #e2231a; color: #fff;
                 font-weight: 800; font-size: 16px; display: flex; align-items: center;
                 justify-content: center; flex-shrink: 0; }
.vr-panel__head h4 { font-size: 20px; font-weight: 800; color: #1b3a8f; margin: 0 0 2px; }
.vr-panel__head p { font-size: 13px; color: #6b7076; margin: 0; }
.vr-panel__note { margin-left: auto; display: flex; align-items: center; gap: 10px; background: #fdeeec;
                  border-radius: 8px; padding: 10px 14px; max-width: 340px; }
.vr-panel__note i { font-size: 22px; color: #1b3a8f; }
.vr-panel__note span { font-size: 12px; color: #4a4f55; line-height: 1.4; }

.vr-label { display: block; font-size: 13px; font-weight: 700; color: #3c4046; margin-bottom: 6px; }
.vr-readonly { background: #f5f6f8; border: 1px solid #e6eaf2; border-radius: 6px; padding: 9px 12px;
               font-size: 13.5px; color: #16181d; min-height: 40px; word-break: break-all; }

.vr-radio-row { display: flex; flex-direction: row; gap: 8px; }
.vr-radio { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 0; min-width: 0;
            border: 1px solid #e6eaf2; border-radius: 6px;
            padding: 9px 10px; cursor: pointer; margin: 0; font-size: 13.5px; white-space: nowrap; }
.vr-radio input[type="radio"] { accent-color: #e2231a; width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
.vr-radio:has(input:checked) { border-color: #e2231a; background: #fdeeec; font-weight: 700; }

.vr-info-box { display: flex; gap: 14px; background: #eaf1fd; border-radius: 10px; padding: 18px; height: 100%; }
.vr-info-box i { font-size: 26px; color: #1b5fd9; flex-shrink: 0; }
.vr-info-box strong { display: block; font-size: 15px; color: #1b3a8f; margin-bottom: 6px; }
.vr-info-box p { font-size: 13px; color: #4a4f55; margin: 0 0 3px; line-height: 1.5; }

/* ---- fulfilment choice ---- */
.vr-choice { display: flex; gap: 14px; border: 2px solid #e6eaf2; border-radius: 12px; padding: 18px;
             cursor: pointer; height: 100%; margin: 0; position: relative; transition: border-color .15s, background .15s; }
.vr-choice input[type="radio"] { position: absolute !important; width: 1px !important; height: 1px !important;
    opacity: 0 !important; pointer-events: none; margin: 0 !important; padding: 0 !important;
    border: 0 !important; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
    appearance: none; -webkit-appearance: none; }
.vr-choice input[type="radio"]::before,
.vr-choice input[type="radio"]::after { display: none !important; content: none !important; }
/*
 * The theme styles spans inside a <label> as its own radio control, which zeroed
 * this element's size and painted a black dot through ::after. Force our own box
 * and take ownership of both pseudo-elements so only one circle can ever render.
 */
.vr-choice .vr-choice__radio { width: 22px !important; height: 22px !important; min-width: 22px;
                    border-radius: 50% !important; border: 2px solid #c7cee0 !important; background: #fff !important;
                    flex-shrink: 0; margin: 2px 0 0 !important; padding: 0 !important; position: relative !important;
                    display: block !important; box-shadow: none !important; }
.vr-choice .vr-choice__radio::before { content: none !important; display: none !important; }
/* Explicit geometry rather than `inset` + auto sizing, which the theme's own
   rules left half-resolved and rendered as a half-moon. */
.vr-choice .vr-choice__radio::after { content: '' !important; position: absolute !important;
                    top: 50% !important; left: 50% !important; right: auto !important; bottom: auto !important;
                    width: 12px !important; height: 12px !important;
                    margin: 0 !important; padding: 0 !important; border: 0 !important;
                    border-radius: 50% !important; background: transparent !important;
                    box-shadow: none !important; transform: translate(-50%, -50%) !important; }
.vr-choice__art { font-size: 40px; color: #e2231a; flex-shrink: 0; }
.vr-choice__body strong { display: block; font-size: 16px; font-weight: 800; color: #1b3a8f; margin-bottom: 4px; }
.vr-choice__body p { font-size: 13px; color: #4a4f55; margin: 0 0 10px; line-height: 1.45; }
.vr-choice__body ul { list-style: none; margin: 0; padding: 0; }
.vr-choice__body li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #3c4046;
                      line-height: 1.6; margin-bottom: 5px; }
.vr-choice__body li i { color: #e2231a; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.vr-choice.is-selected { border-color: #e2231a; background: #fdf4f3; }
.vr-choice.is-selected .vr-choice__radio { border-color: #e2231a !important; }
.vr-choice.is-selected .vr-choice__radio::after { background: #e2231a !important; }
.vr-choice[data-choice="vendorre"].is-selected .vr-choice__body li i { color: #1b5fd9; }

/* ---- warehouse card ---- */
.vr-warehouse-card { display: flex; gap: 12px; background: #fdeeec; border-radius: 10px; padding: 14px 16px; height: 100%; }
.vr-warehouse-card i { font-size: 22px; color: #e2231a; flex-shrink: 0; }
.vr-warehouse-card strong { display: block; font-size: 14px; color: #1b3a8f; margin-bottom: 3px; }
.vr-warehouse-card div { color: #4a4f55; line-height: 1.5; }

/* ---- products table ---- */
.vr-products-table { margin-bottom: 0; }
.vr-products-table thead th { background: #eaf1fd; color: #1b3a8f; font-size: 12.5px; font-weight: 700;
                              border: 0; padding: 11px 10px; white-space: nowrap; }
.vr-products-table tbody td { padding: 8px 10px; border-bottom: 1px solid #f0f2f6; vertical-align: middle; }
.vr-products-table input { font-size: 13px; }
.vr-products-table .vr-row-total { font-weight: 700; color: #16181d; font-size: 13.5px; }
.vr-remove-row { background: none; border: 0; color: #e2231a; font-size: 17px; cursor: pointer; padding: 4px 8px; }
.vr-remove-row:disabled { opacity: .3; cursor: not-allowed; }
.vr-total-weight { display: flex; align-items: center; gap: 12px; background: #eaf1fd; border-radius: 8px; padding: 10px 18px; }
.vr-total-weight span { font-size: 13.5px; font-weight: 700; color: #1b3a8f; }
.vr-total-weight strong { font-size: 20px; font-weight: 800; color: #1b3a8f; }

/* ---- documents ---- */
.vr-doc { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px dashed #c7cee0;
          border-radius: 10px; padding: 18px 12px; cursor: pointer; margin: 0; text-align: center; min-height: 126px;
          justify-content: center; transition: border-color .15s, background .15s; }
.vr-doc:hover { border-color: #e2231a; background: #fffafa; }
.vr-doc input { display: none; }
.vr-doc i { font-size: 26px; color: #e2231a; }
.vr-doc strong { font-size: 13.5px; color: #e2231a; }
.vr-doc small { font-size: 11px; color: #8a90a0; line-height: 1.3; }
.vr-doc__name { font-size: 11px; color: #1a9d4b; font-weight: 700; word-break: break-all; }
.vr-doc.has-file { border-style: solid; border-color: #1a9d4b; background: #f6fcf8; }

/* ---- submitting state ---- */
.vr-spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45);
              border-top-color: #fff; border-radius: 50%; animation: vr-spin .7s linear infinite;
              vertical-align: -2px; margin-right: 4px; }
@keyframes vr-spin { to { transform: rotate(360deg); } }
#vendor-apply-submit.is-submitting { opacity: .85; cursor: progress; }
#vendor-apply-submit:disabled, #vr-next:disabled, #vr-back:disabled { opacity: .6; cursor: not-allowed; }

/* ---- nav ---- */
.vr-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 40px; }
.vr-nav .btn { display: inline-flex; align-items: center; gap: 8px; }
#vr-next, #vendor-apply-submit { margin-left: auto; }

@media (max-width: 767px) {
    .vr-head h2 { font-size: 23px; }
    .vr-stepper { overflow-x: auto; gap: 14px; padding-bottom: 6px; }
    .vr-stepper::before { display: none; }
    .vr-stepper__item { flex: 0 0 90px; }
    .vr-panel { padding: 16px; }
    .vr-panel__note { margin-left: 0; max-width: none; }
    .vr-total-weight { width: 100%; justify-content: space-between; }
}
