/* ================================
   ViralFind – Shipping UI (V3.8)
================================ */

/* Slot container (shortcode output) */
.vf-shipping-slot:empty {
  display: none;
}

/* Merchant row: keep name + flag aligned */
.widget_merchant_list .merchant_thumb a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Badge (merchant row flags) ---------- */
.vf-shipflag {
  --vf-badge-size: 24px;
  --vf-badge-inner: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--vf-badge-size);
  height: var(--vf-badge-size);
  margin-left: 6px;
  border-radius: 999px;

  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .06);

  outline: 2px solid rgba(0, 182, 122, .18);
  outline: 2px solid color-mix(in srgb, var(--vf-accent) 22%, transparent);
  outline-offset: 0;

  cursor: help;
  transition: transform .15s ease, background .2s ease, outline-color .2s ease, border-color .2s ease;
}

.vf-shipflag:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .20);
  outline-color: rgba(0, 182, 122, .30);
  outline-color: color-mix(in srgb, var(--vf-accent) 32%, transparent);
}

.vf-shipflag svg {
  width: var(--vf-badge-inner);
  height: var(--vf-badge-inner);
  display: block;
}

.vf-shipflag.vf-shipflag--flag {
  padding: 2px;
}

.vf-shipflag.vf-shipflag--flag svg {
  border-radius: 999px;
  overflow: hidden;
}

/* ---------- Shipping summary box ---------- */
.vf-shipping-summary {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 16px 0 16px;
  padding: 10px 12px;

  border: 1px solid var(--vf-border);
  border-radius: 12px;

  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.vf-shipping-summary .vf-ship-ico {
  width: 34px;
  height: 34px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
}

.vf-shipping-summary .vf-ship-ico svg {
  width: 18px;
  height: 18px;
  display: block;
  opacity: .9;
}

/* Text block */
.vf-shipping-summary .vf-ship-text {
  line-height: 1.2;
  padding-top: 0.5px;
  /* tiny optical alignment */
}

/* Title row: align text + title flag perfectly */
.vf-shipping-summary .vf-ship-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--vf-text-strong);
  letter-spacing: .2px;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.15;
}

/* Title flag (in summary title) */
.vf-ship-title-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  margin-left: 0;
  transform: none;
  line-height: 0;
}

.vf-ship-title-flag svg {
  width: 15px;
  height: 15px;
  display: block;
  border-radius: 999px;
  overflow: hidden;
}

/* Sub text */
.vf-shipping-summary .vf-ship-sub {
  margin-top: 3px;
  font-size: 11px;
  color: var(--vf-text-muted);
  line-height: 1.25;
}

/* Hint row (subtle line under sub) */
.vf-ship-hint {
  margin-top: 4px;
  font-size: 10.5px;
  opacity: .85;
  color: var(--vf-text-muted);

  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hint flag (in hint line) */
.vf-ship-hint-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  line-height: 0;
}

.vf-ship-hint-flag svg {
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 999px;
  overflow: hidden;
}

/* If summary is placed inside merchant card, keep it tight */
.widget_merchant_list .vf-shipping-summary {
  margin-top: 0;
}