.vcc-wrap .vcc-card{border:1px solid rgba(0,0,0,.12);border-radius:4px;background:#fff;margin-bottom:18px;}
.vcc-wrap .vcc-head{padding:10px 12px;border-bottom:1px solid rgba(0,0,0,.08);font-weight:600;}
.vcc-wrap .vcc-body{padding:12px;}
.vcc-saved-default{border-color:#c6d8ff;background:linear-gradient(180deg,#fbfdff 0%,#f2f7ff 100%);}
.vcc-saved-default .vcc-head{border-bottom-color:#dbe6ff;}
.vcc-saved-default__status{font-weight:700;color:#234284;margin-bottom:8px;}
.vcc-saved-default__row{margin-bottom:4px;}
.vcc-saved-action{margin-top:8px;padding:8px 12px;border:1px solid #234284;background:#fff;color:#234284;font-weight:600;border-radius:6px;}
.vcc-saved-action:hover,.vcc-saved-action:focus{background:#eef4ff;color:#1a356c;border-color:#1a356c;}
.vcc-saved-choices{margin-top:8px;display:flex;flex-direction:column;gap:6px;}
.vcc-saved-choice{width:100%;text-align:left;background:#fff;border:1px solid rgba(35,66,132,.22);border-radius:6px;padding:8px 10px;cursor:pointer;display:flex;flex-direction:column;gap:2px;}
.vcc-saved-choice:hover{border-color:#234284;background:#f8fbff;}
.vcc-saved-choice__carrier{font-weight:600;font-size:.9em;}
.vcc-saved-choice__addr{font-size:.82em;opacity:.8;}
.vcc-wrap .vcc-radio,.vcc-wrap .vcc-payment,.vcc-wrap .vcc-check{display:block;margin-bottom:10px;cursor:pointer;}
.vcc-wrap .vcc-radio input,.vcc-wrap .vcc-payment input{margin-right:8px;}
.vcc-radio__box{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;border:1px solid rgba(0,0,0,.15);border-radius:4px;padding:10px;}
.vcc-radio__price{white-space:nowrap;font-weight:600;}
.vcc-payment__card{display:flex;justify-content:space-between;border:1px solid rgba(0,0,0,.15);border-radius:4px;padding:14px;text-align:start;font-weight:600;}
.vcc-payments{display:flex;gap:12px;flex-wrap:wrap;}
.vcc-payment{flex:1 1 200px;}
.vcc-totals{margin-top:10px;}
.vcc-totalrow{display:flex;justify-content:space-between;padding:6px 0;}
.vcc-totalrow--sum{font-weight:700;border-top:1px solid rgba(0,0,0,.12);margin-top:6px;padding-top:10px;}
.vcc-confirm{width:100%;margin-top:10px;}
.vcc-tos{margin-top:12px;}
.vcc-muted{opacity:.75;font-size:.9em;}
.vcc-login-banner{text-align:right;margin-bottom:18px;}
.vcc-login-btn{display:inline-block;}
.vcc-logged-user{padding:12px 14px;border:1px solid #b8e0c8;background:linear-gradient(135deg,#f2faf5 0%,#eaf6ef 100%);border-radius:8px;margin-bottom:4px;}
.vcc-logged-user__badge{font-weight:700;color:#1a7a3c;margin-bottom:10px;font-size:.95em;}
.vcc-logged-user__rows{display:grid;gap:4px;margin-bottom:10px;}
.vcc-logged-user__row{display:flex;gap:6px;font-size:.92em;}
.vcc-logged-user__label{color:#555;min-width:68px;}
.vcc-logged-user__value{font-weight:600;color:#222;}
.vcc-logged-user__link{font-size:.85em;color:#1a7a3c;text-decoration:none;border-bottom:1px solid #9dd4b0;}
.vcc-logged-user__link:hover{color:#145e2e;border-bottom-color:#145e2e;}
.vcc-existing-customer{margin-top:10px;padding:10px 12px;border:1px solid #d6e3ff;background:#f6f9ff;border-radius:8px;}
.vcc-existing-customer__question{font-weight:700;color:#1a356c;margin-bottom:8px;}
.vcc-existing-customer__actions{display:flex;gap:8px;}
.vcc-existing-btn{appearance:none;border:1px solid #129ec3;border-radius:4px;padding:7px 16px;line-height:1.2;font-weight:600;cursor:pointer;background:#fff;color:#0d8fb2;}
.vcc-existing-btn--yes{background:#12a9cf;color:#fff;border-color:#12a9cf;}
.vcc-existing-btn--yes:hover,.vcc-existing-btn--yes:focus{background:#1099bb;border-color:#1099bb;}
.vcc-existing-btn--no:hover,.vcc-existing-btn--no:focus{background:#f3fbfe;}
.vcc-existing-customer__details{margin-top:10px;padding-top:10px;border-top:1px dashed #bfd1ff;display:grid;gap:4px;font-size:.92em;}
.vcc-existing-customer__details span{font-weight:700;color:#1a356c;}
.vcc-existing-customer__login{margin-top:8px;}

/* Login modal */
.vcc-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.5);
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(2px);
}
.vcc-modal-card{
  width:min(440px,calc(100% - 32px));
  background:#fff;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  overflow:hidden;
}
.vcc-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  border-bottom:1px solid rgba(0,0,0,.1);
  font-weight:700;
  font-size:1.05em;
}
.vcc-modal-close{
  background:none;
  border:none;
  font-size:1.5em;
  line-height:1;
  cursor:pointer;
  opacity:.6;
  padding:0 2px;
}
.vcc-modal-close:hover{opacity:1;}
.vcc-modal-body{padding:20px 18px;}
.vcc-modal-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:18px;
}
.vcc-modal-forgot{font-size:.88em;opacity:.75;}
.vcc-modal-forgot:hover{opacity:1;}
.vcc-preloader{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.vcc-preloader__card{
  width: min(420px, calc(100% - 32px));
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
  text-align: center;
}

.vcc-spinner{
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,.12);
  border-top-color: rgba(0,0,0,.65);
  animation: vcc-spin 0.9s linear infinite;
}

.vcc-preloader__title{
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}

.vcc-preloader__subtitle{
  font-size: 13px;
  opacity: .75;
}

@keyframes vcc-spin{
  to { transform: rotate(360deg); }
}

#vcc-tot-shipping[data-vcc-pending="1"] .vcc-spinner{
  display: inline-block;
  vertical-align: -2px;
  width: 12px;
  height: 12px;
  margin: 0 6px 0 0;
  border-width: 2px;
}

.vcc-tot-shipping__label{
  font-style: italic;
  opacity: .7;
}

/* Sticky Card */
.shopping-card {
  position: sticky;
  top: 30px;
  align-self: flex-start;
}

/* Carrier Styles */
.vcc-radio__main {
  display: flex;
  gap: 6px;
  align-items: center;
}

.vcc-radio__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.vcc-radio--selected .vcc-radio__box {
  border-color: #24b9d7;
}

.vcc-radio--selected .vcc-radio__title {
  font-weight: 700;
  color: #24b9d7;
}

.vcc-radio--selected .vcc-radio__price {
  color: #24b9d7;
}

.vcc-radio:not(.vcc-radio--selected) .vcc-radio__title {
  color: #888;
  font-weight: 400;
}

.vcc-radio:not(.vcc-radio--selected) .vcc-radio__price {
  color: #aaa;
}

.vcc-radio__badge {
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 600;
  color: #24b9d7;
  align-self: center;
  text-align: right;
}

/* Payment Styles */
.vcc-payment__card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 4px;
  padding: 10px;
  font-weight: 600;
}

.vcc-payment__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.vcc-payment__name {
  flex: 1;
}

.vcc-payment__badge {
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 600;
  color: #24b9d7;
  min-width: 48px;
  text-align: right;
  align-self: center;
}

.vcc-payment--selected .vcc-payment__card {
  border-color: #24b9d7;
  color: #24b9d7;
  font-weight: 700;
}

.vcc-payment:not(.vcc-payment--selected) .vcc-payment__card {
  color: #888;
  font-weight: 400;
}

.vcc-payment__badge {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #24b9d7;
}

/* Table Styles */
.vcc-cart-table {
  max-height: 270px;
  overflow-y: auto;
}

/* Select2 overrides — match .vs-method-footer { max-width: 520px } */
.select2-container { width: 100% !important; max-width: 520px !important; }
.select2-results { max-height: 250px; }
.select2-container--open { z-index: 1050; }
.select2-selection { min-height: 38px; }

/* Saved-default-card: warning pill shown when the courier's live calculate
   failed and the card is displaying the STATIC_PRICE fallback. */
.vcc-saved-shipping-warn {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #fff4e0;
    color: #8a4d00;
    border: 1px solid #f0ad4e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.4;
    cursor: help;
    vertical-align: middle;
}

/* ---- Cart line rows -------------------------------------------------- */
.vcc-cart-line td { vertical-align: top; padding: 10px 8px; }
.vcc-cart-line__img { width: 88px; }
.vcc-cart-line__img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.vcc-cart-line__name { font-weight: 600; }
.vcc-cart-line__attrs {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
.vcc-cart-line__total { white-space: nowrap; font-weight: 600; }

/* ---- Qty controls ---------------------------------------------------- */
.vcc-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.vcc-qty__btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.vcc-qty__btn:hover { background: #f5f5f5; }

.vcc-qty__val {
    width: 40px;
    height: 28px;
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 2px;
    -moz-appearance: textfield;
}
.vcc-qty__val::-webkit-outer-spin-button,
.vcc-qty__val::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.vcc-cart-lines--busy .vcc-qty__btn,
.vcc-cart-lines--busy .vcc-qty__val {
    pointer-events: none;
    opacity: .5;
}

/* ---- Carrier delay --------------------------------------------------- */
/* Second row inside .vcc-radio__box, visible only when the carrier is selected. */
.vcc-radio__delay {
    display: none;
    flex-basis: 100%;
    order: 2;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed rgba(0,0,0,.08);
    font-weight: 400;
}
.vcc-radio--selected .vcc-radio__delay {
    display: block;
}

/* ===== Field validation ===== */
.vcc-field-error {
    display: none;
    color: #c0392b;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 4px;
}
.vcc-input-error.form-control,
.form-control.vcc-input-error {
    border-color: #c0392b;
    box-shadow: 0 0 0 1px rgba(192, 57, 43, .25);
}
.vcc-phone-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 10px;
    background: #fff8e1;
    border: 1px solid #f0d58a;
    border-radius: 6px;
    color: #7a5c00;
    font-size: 13px;
    line-height: 1.4;
}
.vcc-phone-warning__text { flex: 1 1 auto; }
.vcc-phone-warning__close {
    flex: 0 0 auto;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #7a5c00;
    padding: 0 2px;
}
.vcc-phone-warning__close:hover { color: #4d3a00; }