/*
Theme Name:  Listeo ChildTheme
Theme URI: http://listeo.pro
Author: Purethemes
Author URI: http://themeforest.net/user/purethemes
Description: Directory WordPress Theme by Purethemes
Version: 1.0
License: ThemeForest
License URI: http://themeforest.net/licenses
Text Domain: listeo
Domain Path: /languages/
Tags: light, responsive-layout, post-formats, theme-options, translation-ready, two-columns
Template:  listeo
*/

/* ===========================================
   Motigo – VRN widget
   =========================================== */

/* Wrapper */
.motigo-vrn-widget {
    max-width: 420px;
    margin: 0 auto 40px;
    padding: 32px 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Generic text */
.motigo-vrn-widget p {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
}

/* Top REG box */
.motigo-vrn-top-row {
    margin-bottom: 16px;
}

.motigo-vrn-input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid #e4e4e4;
    background: #ffffff;
    font-size: 16px;
    color: #222; /* dark grey text */
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 18px;
    height: 52px;
    outline: none;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.05s;
}

/* MATCH mileage glowing effect */
.motigo-vrn-input:focus {
    border-color: #ff2a7f;
    box-shadow: 0 0 0 2px rgba(255, 42, 127, 0.35);
    transform: translateY(-1px);
    background: #ffffff;
    color: #000; /* ensure dark text */
}

/* Mileage + Go row */
.motigo-vrn-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 18px;
}

/* Mileage box */
.motigo-vrn-mileage {
    flex: 1;
}

.motigo-vrn-mileage input {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid #e4e4e4;
    background: #ffffff;
    font-size: 16px;
    color: #222; /* dark grey text */
    padding: 0 18px;
    height: 52px;
    outline: none;
    -moz-appearance: textfield;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.05s;
}

/* Remove spinners */
.motigo-vrn-mileage input::-webkit-outer-spin-button,
.motigo-vrn-mileage input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.motigo-vrn-mileage input:focus {
    border-color: #ff2a7f;
    box-shadow: 0 0 0 2px rgba(255, 42, 127, 0.35);
    transform: translateY(-1px);
    background: #ffffff;
    color: #000;
}

/* GO BUTTON (Now exactly same radius as inputs) */
.motigo-vrn-go {
    box-sizing: border-box;
    border: none;
    border-radius: 12px; /* MATCH mileage & reg */
    background: #ff2a7f;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 0 26px;
    height: 52px;
    min-width: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(255, 42, 127, 0.35);
    transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
}

.motigo-vrn-go:hover {
    background: #ff0f6a;
    box-shadow: 0 12px 26px rgba(255, 15, 106, 0.45);
    transform: translateY(-1px);
}

.motigo-vrn-go:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(255, 15, 106, 0.35);
}

/* Results area */
.motigo-vrn-result {
    margin-top: 10px;
    font-size: 14px;
    color: #444;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.motigo-vrn-result strong {
    font-weight: 600;
}

/* BIG pink valuation */
.motigo-vrn-val-amount {
    margin: 4px 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: #ff2a7f;
}

/* Start selling now button */
.motigo-vrn-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 0 30px;
    height: 46px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #ff2a7f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 12px 26px rgba(255, 42, 127, 0.3);
    text-decoration: none;
    transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
}

.motigo-vrn-start-btn:hover {
    background: #ff0f6a;
    box-shadow: 0 14px 30px rgba(255, 15, 106, 0.4);
    transform: translateY(-1px);
}

.motigo-vrn-start-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 22px rgba(255, 15, 106, 0.3);
}

.motigo-vrn-note {
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

/* Animation states */
.motigo-vrn-form {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.motigo-vrn-widget.motigo-vrn-loaded .motigo-vrn-form {
    opacity: 0;
    transform: translateY(-30px) rotateX(6deg);
    pointer-events: none;
}

.motigo-vrn-widget.motigo-vrn-loaded .motigo-vrn-result {
    opacity: 1;
    transform: translateY(0);
}

/* === Motigo VRN overrides === */

/* Make REG + mileage text dark and radius consistent */
.motigo-vrn-widget .motigo-vrn-input,
.motigo-vrn-widget .motigo-vrn-mileage input {
    border-radius: 12px !important;
    color: #222 !important;          /* dark grey/black text */
    background: #ffffff !important;
}

/* Focus glow for REG to match mileage */
.motigo-vrn-widget .motigo-vrn-input:focus,
.motigo-vrn-widget .motigo-vrn-mileage input:focus {
    border-color: #ff2a7f !important;
    box-shadow: 0 0 0 2px rgba(255, 42, 127, 0.35) !important;
    transform: translateY(-1px);
}

/* GO button: same corner radius + align perfectly with mileage */
.motigo-vrn-widget .motigo-vrn-go {
    border-radius: 12px !important;   /* match inputs */
    height: 52px !important;          /* match input height */
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: normal !important;
    padding: 0 26px;
}

/* Ensure row keeps everything on the same baseline */
.motigo-vrn-widget .motigo-vrn-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Fix vertical alignment of GO button */
.motigo-vrn-row {
    align-items: center !important;
}

.motigo-vrn-go {
    margin-top: 0 !important;
    align-self: center !important;
}

/* After animation, completely hide the form so the result moves up */
.motigo-vrn-form-hidden {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* FINAL alignment fix for GO button */
.motigo-vrn-row {
    display: flex !important;
    align-items: center !important;   /* same vertical centre as mileage */
    gap: 12px !important;
}

.motigo-vrn-go {
    height: 52px !important;          /* match inputs */
    line-height: 1 !important;        /* stop extra vertical space */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ----------------------------------------------------------
   Motigo – Listeo checkbox fixes (Dealer Portal)
   ---------------------------------------------------------- */

/* 1) Dealer Portal – Registration: Privacy Policy checkbox */
form#register .checkboxes {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

form#register .checkboxes input#privacy_policy {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

form#register .checkboxes label[for="privacy_policy"] {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    position: static !important;
    white-space: normal !important;
}

/* hide the theme’s fake checkbox graphics so we just use the real box */
form#register .checkboxes label[for="privacy_policy"]::before,
form#register .checkboxes label[for="privacy_policy"]::after {
    display: none !important;
}


/* 2) Dealer Portal – Login: “Remember Me” checkbox */
form#login .checkboxes {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

form#login .checkboxes input[type="checkbox"] {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
}

form#login .checkboxes label {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* optional: if Listeo adds fake checkbox on this label too */
form#login .checkboxes label::before,
form#login .checkboxes label::after {
    display: none !important;
}

/* ----------------------------------------------------------
   Motigo – "Offers On My Car" table + buttons
   ---------------------------------------------------------- */

/* Wrapper */
.motigo-dealer-offers-table-wrapper {
    margin-top: 30px !important;
    overflow-x: auto !important;
}

/* Main table */
.motigo-dealer-offers-table-wrapper table,
.motigo-dealer-offers-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 14px !important;
}

/* Header cells */
.motigo-dealer-offers-table-wrapper thead th,
.motigo-dealer-offers-table thead th {
    text-align: left !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    color: #777 !important;
    border-bottom: 2px solid #e5e5e5 !important;
    white-space: nowrap !important;
}

/* Body cells */
.motigo-dealer-offers-table-wrapper tbody td,
.motigo-dealer-offers-table tbody td {
    padding: 10px 12px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    vertical-align: middle !important;
}

/* Zebra + hover */
.motigo-dealer-offers-table-wrapper tbody tr:nth-child(even),
.motigo-dealer-offers-table tbody tr:nth-child(even) {
    background: #fafafa !important;
}

.motigo-dealer-offers-table-wrapper tbody tr:hover,
.motigo-dealer-offers-table tbody tr:hover {
    background: #e9fbfb !important;
}

/* Amount / status / date columns */
.motigo-dealer-offers-table-wrapper td:nth-child(2),
.motigo-dealer-offers-table-wrapper td:nth-child(4),
.motigo-dealer-offers-table-wrapper td:nth-child(5),
.motigo-dealer-offers-table td:nth-child(2),
.motigo-dealer-offers-table td:nth-child(4),
.motigo-dealer-offers-table td:nth-child(5) {
    white-space: nowrap !important;
}

/* Status column a bit bolder */
.motigo-dealer-offers-table-wrapper td:nth-child(4),
.motigo-dealer-offers-table td:nth-child(4) {
    font-weight: 500 !important;
}

/* Actions column */
.motigo-dealer-offers-table-wrapper td:last-child,
.motigo-dealer-offers-table td:last-child {
    white-space: nowrap !important;
}

.motigo-dealer-offers-table-wrapper td:last-child form,
.motigo-dealer-offers-table td:last-child form {
    display: inline-block !important;
}

.motigo-dealer-offers-table-wrapper td:last-child form + form,
.motigo-dealer-offers-table td:last-child form + form {
    margin-left: 6px !important;
}

/* ACCEPT button (first form) */
.motigo-dealer-offers-table-wrapper td:last-child form:first-child button,
.motigo-dealer-offers-table td:last-child form:first-child button {
    background: #01d4d4 !important;
    border: 1px solid #01d4d4 !important;
    color: #fff !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important,
                border-color 0.15s ease !important;
}

.motigo-dealer-offers-table-wrapper td:last-child form:first-child button:hover,
.motigo-dealer-offers-table td:last-child form:first-child button:hover {
    background: #14dedc !important;
    border-color: #14dedc !important;
}

/* DECLINE button (second form) */
.motigo-dealer-offers-table-wrapper td:last-child form:last-child button,
.motigo-dealer-offers-table td:last-child form:last-child button {
    background: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    color: #666 !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important,
                border-color 0.15s ease !important;
}

.motigo-dealer-offers-table-wrapper td:last-child form:last-child button:hover,
.motigo-dealer-offers-table td:last-child form:last-child button:hover {
    background: #f5f5f5 !important;
    border-color: #b5b5b5 !important;
}

/* ----------------------------------------------------------
   Motigo – "Offers On My Car" mobile layout
   ---------------------------------------------------------- */
@media (max-width: 767px) {

  /* Wrapper: no horizontal scroll */
  body .motigo-dealer-offers-table-wrapper {
    margin-top: 16px !important;
    overflow-x: visible !important;
  }

  /* Table becomes a stack of cards */
  body .motigo-dealer-offers-table,
  body .motigo-dealer-offers-table-wrapper table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    font-size: 14px !important;
  }

  /* Hide header row on mobile */
  body .motigo-dealer-offers-table thead,
  body .motigo-dealer-offers-table-wrapper thead {
    display: none !important;
  }

  /* Each row = one card */
  body .motigo-dealer-offers-table tbody tr,
  body .motigo-dealer-offers-table-wrapper tbody tr {
    display: block !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid #eee !important;
    padding: 10px 12px 12px !important;
  }

  body .motigo-dealer-offers-table tbody td,
  body .motigo-dealer-offers-table-wrapper tbody td {
    display: block !important;
    width: 100% !important;
    border: none !important;
    padding: 4px 0 !important;
    white-space: normal !important;
  }

  /* Vehicle (first cell) – top line */
  body .motigo-dealer-offers-table tbody td:first-child,
  body .motigo-dealer-offers-table-wrapper tbody td:first-child {
    font-weight: 600 !important;
    margin-bottom: 4px !important;
  }

  /* HIDE Source column completely on mobile (3rd cell) */
  body .motigo-dealer-offers-table tbody td:nth-child(3),
  body .motigo-dealer-offers-table-wrapper tbody td:nth-child(3) {
    display: none !important;
  }

  /* Labels for Offer, Status, Received */
  body .motigo-dealer-offers-table tbody td:nth-child(2)::before,
  body .motigo-dealer-offers-table tbody td:nth-child(4)::before,
  body .motigo-dealer-offers-table tbody td:nth-child(5)::before,
  body .motigo-dealer-offers-table-wrapper tbody td:nth-child(2)::before,
  body .motigo-dealer-offers-table-wrapper tbody td:nth-child(4)::before,
  body .motigo-dealer-offers-table-wrapper tbody td:nth-child(5)::before {
    display: inline-block !important;
    font-weight: 600 !important;
    color: #777 !important;
    margin-right: 4px !important;
  }

  body .motigo-dealer-offers-table tbody td:nth-child(2)::before,
  body .motigo-dealer-offers-table-wrapper tbody td:nth-child(2)::before {
    content: "Offer: " !important;
  }

  body .motigo-dealer-offers-table tbody td:nth-child(4)::before,
  body .motigo-dealer-offers-table-wrapper tbody td:nth-child(4)::before {
    content: "Status: " !important;
  }

  body .motigo-dealer-offers-table tbody td:nth-child(5)::before,
  body .motigo-dealer-offers-table-wrapper tbody td:nth-child(5)::before {
    content: "Received: " !important;
  }

  /* Actions cell – buttons stacked under everything */
  body .motigo-dealer-offers-table tbody td:last-child,
  body .motigo-dealer-offers-table-wrapper tbody td:last-child {
    margin-top: 8px !important;
    white-space: normal !important;
  }

  body .motigo-dealer-offers-table tbody td:last-child form,
  body .motigo-dealer-offers-table-wrapper tbody td:last-child form {
    display: block !important;
    width: 100% !important;
    margin: 0 0 6px !important;
  }

  body .motigo-dealer-offers-table tbody td:last-child form button,
  body .motigo-dealer-offers-table-wrapper tbody td:last-child form button {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ----------------------------------------------------------
   Motigo – My Dealer Bids (Active offers + Won cars)
   ---------------------------------------------------------- */

.motigo-my-bids-wrapper {
    margin-top: 30px;
}

/* Section titles: Active offers / Won cars */
.motigo-my-bids-wrapper h3 {
    font-size: 20px;
    margin: 24px 0 10px;
    font-weight: 600;
}

/* Main tables */
.motigo-my-bids-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 26px;
}

/* Header cells */
.motigo-my-bids-table thead th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #777;
    border-bottom: 2px solid #e5e5e5;
    white-space: nowrap;
}

/* Body cells */
.motigo-my-bids-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

/* Zebra + hover */
.motigo-my-bids-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.motigo-my-bids-table tbody tr:hover {
    background: #e9fbfb;
}

/* Vehicle column slightly stronger */
.motigo-my-bids-table tbody td:first-child a,
.motigo-my-bids-table tbody td:first-child {
    font-weight: 600;
}

/* Offer + date keep on one line (general case) */
.motigo-my-bids-table td:nth-child(2),
.motigo-my-bids-table td:nth-child(4) {
    white-space: nowrap;
}

/* For "Cars you've sold" / won table, allow Sold for (£) to wrap
   so the final price note doesn't push the card off-screen */
.motigo-my-bids-table--won td:nth-child(2) {
    white-space: normal;
}

/* Status column a bit bolder */
.motigo-my-bids-table td:nth-child(3) {
    font-weight: 500;
}

/* Optional: give "Won cars" / "Cars you've sold" a slightly stronger look */
.motigo-my-bids-table--won tbody tr {
    background: #f5fffe;
}

/* ----------------------------------------------------------
   Motigo – My Dealer Bids: Mobile layout
   ---------------------------------------------------------- */
@media (max-width: 767px) {

  .motigo-my-bids-wrapper {
      margin-top: 18px;
  }

  .motigo-my-bids-wrapper h3 {
      margin: 18px 0 8px;
      font-size: 18px;
  }

  /* Tables become card stacks */
  .motigo-my-bids-table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0 10px;
      font-size: 14px;
  }

  .motigo-my-bids-table thead {
      display: none;
  }

  .motigo-my-bids-table tbody tr {
      display: block;
      background: #ffffff;
      border-radius: 10px;
      border: 1px solid #eee;
      padding: 10px 12px 12px;
  }

  .motigo-my-bids-table tbody td {
      display: block;
      width: 100%;
      border: none;
      padding: 4px 0;
      white-space: normal;
  }

  /* Vehicle – top line */
  .motigo-my-bids-table tbody td:first-child {
      font-weight: 600;
      margin-bottom: 4px;
  }

  /* Labels for Offer, Status, Placed */
  .motigo-my-bids-table tbody td:nth-child(2)::before,
  .motigo-my-bids-table tbody td:nth-child(3)::before,
  .motigo-my-bids-table tbody td:nth-child(4)::before {
      display: inline-block;
      font-weight: 600;
      color: #777;
      margin-right: 4px;
  }

  .motigo-my-bids-table tbody td:nth-child(2)::before {
      content: "Your offer: ";
  }

  .motigo-my-bids-table tbody td:nth-child(3)::before {
      content: "Status: ";
  }

  .motigo-my-bids-table tbody td:nth-child(4)::before {
      content: "Placed: ";
  }
}

/* ----------------------------------------------------------
   Motigo – Dealer bid form (single listing)
   ---------------------------------------------------------- */

.motigo-dealer-bid-form {
    margin-top: 32px;
    padding: 20px 22px;
    border-radius: 12px;
    border: 1px solid #dff7f7;
    background: #f9ffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.02);
}

.motigo-dealer-bid-form p {
    margin: 0 0 6px;
    font-size: 15px;
}

.motigo-dealer-bid-form .motigo-guide-val strong,
.motigo-dealer-bid-form .motigo-current-highest strong {
    color: #01d4d4;
    font-weight: 600;
}

.motigo-dealer-bid-form label {
    display: block;
    margin: 18px 0 6px;
    font-weight: 600;
    font-size: 14px;
}

/* Input */
.motigo-dealer-bid-form input[type="number"] {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 0 0 0 rgba(1, 212, 212, 0);
}

.motigo-dealer-bid-form input[type="number"]:focus {
    border-color: #01d4d4;
    box-shadow: 0 0 0 3px rgba(1, 212, 212, 0.18);
}

/* Submit button */
.motigo-dealer-bid-form button[type="submit"] {
    margin-top: 16px;
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid #01d4d4;
    background: #01d4d4;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease,
                box-shadow 0.15s ease, transform 0.05s ease;
}

.motigo-dealer-bid-form button[type="submit"]:hover {
    background: #14dedc;
    border-color: #14dedc;
    box-shadow: 0 8px 18px rgba(1, 212, 212, 0.35);
}

.motigo-dealer-bid-form button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(1, 212, 212, 0.25);
}

/* Success / error messages */
.motigo-bid-message {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
}

.motigo-bid-success {
    background: #e8f7fa;
    border: 1px solid #9edee8;
    color: #11737f;
}

.motigo-bid-error {
    background: #fdecec;
    border: 1px solid #e5a3a3;
    color: #a33b3b;
}

/* Mobile tweaks */
@media (max-width: 767px) {
    .motigo-dealer-bid-form {
        padding: 16px 14px;
        margin-top: 20px;
    }

    .motigo-dealer-bid-form input[type="number"] {
        max-width: 100%;
    }

    .motigo-dealer-bid-form button[type="submit"] {
        width: 100%;
        text-align: center;
    }
}

/* ----------------------------------------------------------
   Motigo – Sale status badge on listing
   ---------------------------------------------------------- */

.motigo-sale-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #eee;
    color: #555;
}

/* Under offer = teal */
.motigo-sale-badge--under_offer {
    background: #e0fbfb;
    color: #01d4d4;
    border: 1px solid #01d4d4;
}

/* Sold = stronger teal or green */
.motigo-sale-badge--sold {
    background: #e8f7ea;
    color: #1b8c57;
    border: 1px solid #1b8c57;
}

/* No deal = neutral / amber */
.motigo-sale-badge--not_sold {
    background: #fff4e5;
    color: #c97a00;
    border: 1px solid #f1b35c;
}

/* Final outcome details block (dealer "Cars you've won" table) */
.motigo-final-outcome-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.motigo-final-outcome-price,
.motigo-final-outcome-reason {
    max-width: 220px;
}

/* When in "No deal" mode, hide the final price input visually */
.motigo-final-outcome-details.motigo-no-deal-mode .motigo-final-outcome-price {
    display: none;
}

/* Keep the confirm buttons on one line and spaced nicely */
.motigo-final-outcome-details-actions {
    display: flex;
    gap: 6px;
}

/* Basic button styling hook (adjust if you already have button styles) */
.motigo-btn {
    cursor: pointer;
}

/* ----------------------------------------------------------
   Motigo – Seller "Accepted Offers" buttons
   (match "Offers On My Car" Accept / Decline styling)
   ---------------------------------------------------------- */

/* Base button style for all seller outcome buttons */
.motigo-my-bids-table .motigo-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    border: 1px solid transparent;
    background: #ffffff;
    color: #555;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

/* Primary turquoise buttons – same look as "Accept" */
.motigo-my-bids-table .motigo-btn-bought,
.motigo-my-bids-table .motigo-btn-confirm-revised {
    background: #01d4d4;
    border-color: #01d4d4;
    color: #ffffff;
}

.motigo-my-bids-table .motigo-btn-bought:hover,
.motigo-my-bids-table .motigo-btn-confirm-revised:hover {
    background: #14dedc;
    border-color: #14dedc;
}

/* Secondary grey outline buttons – "Revised price" + "No deal" */
.motigo-my-bids-table .motigo-btn-revised,
.motigo-my-bids-table .motigo-btn-nodeal,
.motigo-my-bids-table .motigo-btn-confirm-nodeal {
    background: #ffffff;
    border-color: #d0d0d0;
    color: #666;
}

.motigo-my-bids-table .motigo-btn-revised:hover,
.motigo-my-bids-table .motigo-btn-nodeal:hover,
.motigo-my-bids-table .motigo-btn-confirm-nodeal:hover {
    background: #f5f5f5;
    border-color: #b5b5b5;
}

/* Keep spacing between the three primary buttons */
.motigo-my-bids-table .motigo-final-outcome-primary .motigo-btn + .motigo-btn {
    margin-left: 6px;
}

/* Spacing between confirm buttons inside the details row */
.motigo-my-bids-table .motigo-final-outcome-details-actions .motigo-btn + .motigo-btn {
    margin-left: 6px;
}

/* Inputs inside the details row */
.motigo-my-bids-table .motigo-final-outcome-price,
.motigo-my-bids-table .motigo-final-outcome-reason {
    display: inline-block;
    max-width: 200px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #d0d0d0;
    margin-right: 6px;
    box-sizing: border-box;
}

/* Mobile: stack buttons full width */
@media (max-width: 767px) {
    .motigo-my-bids-table .motigo-final-outcome-primary .motigo-btn,
    .motigo-my-bids-table .motigo-final-outcome-details-actions .motigo-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-bottom: 6px;
    }

    .motigo-my-bids-table .motigo-final-outcome-price,
    .motigo-my-bids-table .motigo-final-outcome-reason {
        max-width: 100%;
        width: 100%;
        margin-right: 0;
        margin-bottom: 6px;
    }
}

/* ----------------------------------------------------------
   Motigo – Final price note (under "Sold for (£)")
   ---------------------------------------------------------- */

/* Allow wrapping and style the note text so it doesn't overflow */
.motigo-my-bids-table .motigo-final-price-note {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: #777;
}
/* ===== Motigo – Dealer Invoices list ===== */

.motigo-dealer-invoices-wrapper {
    margin-top: 40px;
}

/* Table container */
.motigo-dealer-invoices-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    font-size: 14px;
}

/* Header row */
.motigo-dealer-invoices-table thead tr {
    background: #f7f7f7;
}

.motigo-dealer-invoices-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

/* Body rows */
.motigo-dealer-invoices-table td {
    padding: 10px 16px;
    border-top: 1px solid #eee;
    vertical-align: middle;
}

/* Vehicle link */
.motigo-dealer-invoices-table td a {
    text-decoration: none;
}

/* Status column – make it stand out a bit */
.motigo-dealer-invoices-table td:nth-child(7) {
    font-weight: 600;
}

/* Actions column – keep buttons on one line on desktop */
.motigo-dealer-invoices-table td:nth-child(8) {
    white-space: nowrap;
}

/* Generic Motigo buttons on this page */
.motigo-dealer-invoices-wrapper .motigo-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.15s ease;
}

/* Primary action = Pay */
.motigo-dealer-invoices-wrapper .motigo-btn-pay-invoice {
    background: #ff5a5f; /* Listeo-style pink/red */
    color: #fff;
}

/* Secondary action = View / Print */
.motigo-dealer-invoices-wrapper .motigo-btn-view-invoice {
    background: #fff;
    color: #333;
    border-color: #ddd;
    margin-right: 6px;
}

.motigo-dealer-invoices-wrapper .motigo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .motigo-dealer-invoices-table {
        font-size: 13px;
    }

    .motigo-dealer-invoices-table th,
    .motigo-dealer-invoices-table td {
        padding: 8px 10px;
    }

    .motigo-dealer-invoices-table thead {
        display: none; /* simple stacked rows on small screens */
    }

    .motigo-dealer-invoices-table tr {
        display: block;
        border-bottom: 1px solid #eee;
    }

    .motigo-dealer-invoices-table td {
        display: flex;
        justify-content: space-between;
    }

    .motigo-dealer-invoices-table td:first-child {
        border-top: none;
    }
}
/* ===== Motigo – Single invoice view ===== */

.motigo-invoice-single {
    margin-top: 30px;
}

.motigo-invoice-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

/* Reuse button styling */
.motigo-invoice-single .motigo-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

/* Back button */
.motigo-invoice-single .motigo-btn-back {
    background: #fff;
    color: #333;
    border-color: #ddd;
}

/* Print button */
.motigo-invoice-single .motigo-btn-print {
    background: #ff5a5f;
    color: #fff;
}

/* Invoice card */
.motigo-invoice-document {
    background: #fff;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
    font-size: 14px;
}

.motigo-invoice-document h1 {
    font-size: 26px;
}

.motigo-invoice-document h3 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Line items table */
.motigo-invoice-document table {
    width: 100%;
    border-collapse: collapse;
}

.motigo-invoice-document th,
.motigo-invoice-document td {
    padding: 8px 0;
}

.motigo-invoice-document thead th {
    border-bottom: 1px solid #ddd;
    font-weight: 600;
}

.motigo-invoice-document tbody tr:last-child td {
    border-top: 1px solid #ddd;
    font-weight: 600;
}

/* Print styles – only print the invoice and start at the top */
@media print {

    /* Remove browser default body margins */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Optional: try to remove printer margins (Chrome honours this) */
    @page {
        margin: 0;
    }

    /* Hide everything by default */
    body * {
        visibility: hidden !important;
    }

    /* Show only the invoice area */
    .motigo-invoice-single,
    .motigo-invoice-single * {
        visibility: visible !important;
    }

    /* Kill the top gap from the wrapper */
    .motigo-invoice-single {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Put the invoice at the very top of the printable area */
    .motigo-invoice-document {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        margin: 0 auto !important;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: none;
        background: #fff;
    }

    /* Don’t print the back/print buttons bar */
    .motigo-invoice-actions {
        display: none !important;
        visibility: hidden !important;
    }
}
/* fee table */

/* ===== Motigo – Dealer fees table (page block) ===== */

.motigo-fees-block {
    margin: 40px 0 !important;
}

/* Heading + intro text */
.motigo-fees-block h2 {
    font-size: 28px !important;
    margin-bottom: 8px !important;
}

.motigo-fees-block .motigo-fees-intro {
    font-size: 15px !important;
    color: #666 !important;
    margin-bottom: 18px !important;
}

/* Wrapper to allow horizontal scroll on tiny screens */
.motigo-fees-block-table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
}

/* Main table */
.motigo-fees-block-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
    border-radius: 10px !important;
    border: 1px solid #e3e3e3 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.03) !important;
    font-size: 15px !important;
}

/* Header row */
.motigo-fees-block-table thead th {
    padding: 12px 18px !important;
    background: #f7f7f7 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border-bottom: 1px solid #e3e3e3 !important;
    white-space: nowrap !important;
}

/* Body cells */
.motigo-fees-block-table tbody td {
    padding: 12px 18px !important;
    border-bottom: 1px solid #f1f1f1 !important;
}

/* Last row line tidy */
.motigo-fees-block-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Light zebra */
.motigo-fees-block-table tbody tr:nth-child(even) {
    background: #fafafa !important;
}

/* Column alignment & spacing */
.motigo-fees-block-table th:first-child,
.motigo-fees-block-table td:first-child {
    text-align: left !important;
    width: 70% !important;
}

.motigo-fees-block-table th:last-child,
.motigo-fees-block-table td:last-child {
    text-align: right !important;
    width: 30% !important;
}

/* Mobile tweaks */
@media (max-width: 767px) {
    .motigo-fees-block-table {
        font-size: 14px !important;
    }

    .motigo-fees-block-table thead th {
        font-size: 12px !important;
    }
}
/* Little green bubble like the Messages counter */
.dashboard-nav a .motigo-menu-badge {
    display: inline-block;
    margin-left: 6px;
    min-width: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #26ae5f;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 600;
}
/* Motigo dashboard menu badges (Invoices, Cars I've Won, etc.) */
.dashboard-nav ul li a .motigo-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;
    padding: 0 6px;

    margin-left: 8px;

    border-radius: 999px;          /* perfectly round pill */
    background: #51c54b;           /* brighter green, like Messages */
    color: #ffffff;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;                /* stops the number drifting up/down */
}

/* optional – little tweak if it looks too close to the text */
.dashboard-nav ul li a {
    position: relative;
}

.motigo-auction-timer{
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.motigo-auction-timer__label{ font-size: 13px; color: #666; font-weight: 600; }
.motigo-auction-timer__time{ font-size: 16px; color: #222; letter-spacing: 0.02em; }

.motigo-auction-timer--ended{
  background:#fff4e5;
  border-color:#f1b35c;
}

