/* ==========================================================================
   BuyerOrderView.css
   Matches the reference "Order Information" summary page design.
   ========================================================================== */

:root {
  --bov-bg: #f4f5f7;
  --bov-card-bg: #ffffff;
  --bov-border: #eceef1;
  --bov-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.03);

  --bov-text-primary: #171a1f;
  --bov-text-secondary: #4b5563;
  --bov-text-muted: #98a1ac;

  --bov-icon-bg: #eef0f3;
  --bov-icon-color: #6b7280;

  --bov-blue: #2f6fed;
  --bov-blue-bg: #eaf1ff;

  --bov-green: #17a34a;
  --bov-green-bg: #e9f9ee;

  --bov-red: #e0455b;
  --bov-red-bg: #fdedf0;

  --bov-radius-lg: 16px;
  --bov-radius-md: 10px;
  --bov-radius-sm: 7px;

  --bov-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
}

/* ---------------------------- Page shell ---------------------------- */

.bov-page {
  font-family: var(--bov-font);
  /* background: var(--bov-bg); */
  color: var(--bov-text-primary);
  padding: 28px;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.bov-page * {
  box-sizing: border-box;
}

.bov-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  /* max-width: 1320px; */
  margin: 0 auto;
  align-items: start;
}

.bov-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* ----------------------------- Card shell ---------------------------- */

.bov-card {
  background: var(--bov-card-bg);
  border: 1px solid var(--bov-border);
  border-radius: var(--bov-radius-lg);
  box-shadow: var(--bov-shadow);
  padding: 24px;
}

.standalone-title {
  margin: 0 0 20px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--bov-radius-sm);
  background: var(--bov-icon-bg);
  color: var(--bov-icon-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon svg {
  width: 17px;
  height: 17px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bov-text-primary);
}

/* ------------------------- Order Information ------------------------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 22px;
  column-gap: 18px;
}

.info-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--bov-radius-sm);
  background: var(--bov-icon-bg);
  color: var(--bov-icon-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 16px;
  height: 16px;
}

.info-text {
  min-width: 0;
}

.info-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--bov-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.info-value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--bov-text-primary);
  line-height: 1.5;
  word-break: break-word;
}

.paid-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0FDF4;
  color: #62A32C;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
}

.paid-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62A32C;
  flex-shrink: 0;
}

.link-text {
  color:#0676B3;
  font-weight: 700;
}

.link-text.bold {
  font-weight: 700;
}

/* ----------------------------- Items table ---------------------------- */

.items-count-pill {
  background: var(--bov-blue-bg);
  color: var(--bov-blue);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 5px;
  white-space: nowrap;
}

.items-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.items-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bov-text-muted);
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--bov-border);
}

.items-table tbody td {
  padding: 16px 4px;
  border-bottom: 1px solid var(--bov-border);
  vertical-align: middle;
  font-size: 14px;
  color: var(--bov-text-primary);
}

.items-table tbody tr:last-child td {
  border-bottom: none;
}

.col-qty,
.col-unit,
.col-total {
  color: var(--bov-text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.col-total {
  font-weight: 700;
}

.col-status {
  white-space: nowrap;
}

.item-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}

.item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-thumb svg {
  width: 20px;
  height: 20px;
}

.item-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.item-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--bov-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-sku {
  font-size: 12px;
  color: var(--bov-text-muted);
}

/* ------------------------------ Badges -------------------------------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 5px;
  white-space: nowrap;
}

.status-delivered {
  background: #41A5081A;
  color: #338306;
}

.status-returning {
  background: var(--bov-red-bg);
  color: var(--bov-red);
}

/* --------------------------- Supplier card ----------------------------- */

.supplier-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--bov-border);
}

.supplier-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #1f2430;
  color: #ffd166;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.supplier-logo svg {
  width: 20px;
  height: 20px;
}

.supplier-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--bov-text-primary);
}

.supplier-location {
  font-size: 13px;
  color: var(--bov-text-muted);
  margin-top: 2px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--bov-text-secondary);
  font-weight: 500;
  padding: 7px 0;
}

.contact-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--bov-radius-sm);
  background: var(--bov-icon-bg);
  color: var(--bov-icon-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 14px;
  height: 14px;
}

/* -------------------------- Payment summary ---------------------------- */

.summary-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-size: 14px;
}

.summary-row dt {
  color: var(--bov-text-secondary);
  font-weight: 500;
}

.summary-row dd {
  margin: 0;
  font-weight: 700;
  color: var(--bov-text-primary);
}

.discount-value {
  color: var(--bov-red) !important;
}

.summary-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--bov-border);
  font-size: 15px;
  font-weight: 700;
}

.summary-total-value {
  font-size: 17px;
}

/* -------------------------- Shipping details ---------------------------- */

.ship-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ship-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  font-size: 14px;
}

.ship-row dt {
  color: var(--bov-text-secondary);
  font-weight: 500;
}

.ship-row dd {
  margin: 0;
  font-weight: 700;
  color: var(--bov-text-primary);
  text-align: right;
}

/* ================================================================
   Responsive breakpoints
   ================================================================ */

/* Large tablets / small laptops: tighten spacing, keep two columns */
@media (max-width: 1180px) {
  .bov-grid {
    gap: 18px;
  }

  .bov-col {
    gap: 18px;
  }

  .bov-card {
    padding: 20px;
  }
}

/* Tablets: stack the two columns, sidebar cards become a responsive row */
@media (max-width: 992px) {
  .bov-grid {
    grid-template-columns: 1fr;
  }

  .bov-col-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .bov-col-side .bov-card {
    flex: 1 1 260px;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Small tablets / large phones */
@media (max-width: 640px) {
  .bov-page {
    padding: 16px;
  }

  .bov-card {
    padding: 18px;
    border-radius: 14px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .section-title {
    font-size: 16.5px;
  }

  .bov-col-side {
    flex-direction: column;
  }

  .bov-col-side .bov-card {
    flex: 1 1 auto;
  }

  /* Convert the items table into stacked cards */
  .items-table,
  .items-table thead,
  .items-table tbody,
  .items-table th,
  .items-table td,
  .items-table tr {
    display: block;
    width: 100%;
  }

  .items-table {
    min-width: 0;
  }

  .items-table thead {
    display: none;
  }

  .items-table tbody tr {
    border: 1px solid var(--bov-border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
  }

  .items-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .items-table tbody td {
    border-bottom: none;
    padding: 6px 0;
  }

  .col-qty,
  .col-unit,
  .col-total,
  .col-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .col-qty::before,
  .col-unit::before,
  .col-total::before,
  .col-status::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bov-text-muted);
  }

  .item-cell {
    min-width: 0;
  }

  .summary-total-row {
    flex-wrap: wrap;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .item-thumb {
    width: 38px;
    height: 38px;
  }

  .supplier-logo {
    width: 40px;
    height: 40px;
  }

  .summary-total-value {
    font-size: 16px;
  }
}

.order-date-css{
     display: flex;
    align-items: center;
    gap: 6px;
}

.order-date-css span{
        margin-top: 2px;
    padding: 0;
    font-size: .85rem;
}

.info-value.billing-address{
      font-size: .85rem;
    font-weight: 500;
    color: #475569;
}

.shopHomeDescription{
  display: flex ;
  gap: 15px;
}
.breadCss a{
	color: #4b5563;
	text-decoration: none;
}
.breadCss .activeBread, .breadCss a:hover{
	text-decoration: underline;
    color: #57970C;
}