/* Qoene Logistics Frontend Styles */

:root {
  --theme-content-width: 1038px;
  --qd-bg: #f8fafc;
  --qd-surface: #ffffff;
  --qd-border: #e2e8f0;
  --qd-text: #1e293b;
  --qd-muted: #64748b;
  --qd-primary: #667eea;
  --qd-accent: #764ba2;
  --qd-gradient-start: #667eea;
  --qd-gradient-end: #764ba2;
}

/* Reduce paragraph spacing inside standard WordPress content areas */
.entry-content p {
  margin-bottom: 0.5em;
}

.qoene-container {
  max-width: min(100%, var(--theme-content-width));
  margin: 0 auto;
  padding: clamp(16px, 4vw, 28px);
}

.qoene-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.qoene-card {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.qoene-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.qoene-card h3 {
  margin: 0 0 16px 0;
  color: #2c3e50;
  font-size: 0.96rem;
  font-weight: 600;
}

.qoene-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.qoene-stat-label {
  color: #7f8c8d;
  font-size: 14px;
}

.qoene-stat-value {
  color: #2c3e50;
  font-weight: 600;
  font-size: 16px;
}

.qoene-address-card {
  background: #f8f9fa;
  border: 2px dashed #3498db;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}

.qoene-shipping-mark {
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
  margin-bottom: 16px;
}

.qoene-address {
  color: #2c3e50;
  line-height: 1.2;
  margin-bottom: 0;
}

.qoene-address + .qoene-address {
  margin-top: 20px;
}

.qoene-address-select {
  margin-bottom: 16px;
}

.qoene-address-select select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: auto;
  display: inline-block;
}

.qoene-form {
  background: #fff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 24px;
  margin: 20px 0;
}

.qoene-form-group {
  margin-bottom: 20px;
}

.qoene-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 500;
}

.qoene-form-group input,
.qoene-form-group textarea,
.qoene-form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.qoene-form-group input:focus,
.qoene-form-group textarea:focus,
.qoene-form-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.qoene-info-box {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.qoene-info-box summary {
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  list-style: none;
}

.qoene-results {
  margin-top: 32px;
  padding: 28px 24px;
  background: #fff;
  border: none;
  border-radius: 18px;
  box-shadow: none;
  width: 100%;
}

.qoene-results h4 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #f15a22;
}

.qoene-result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qoene-result-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5d9ff;
  border-radius: 16px;
  padding: 18px 20px;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qoene-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(59, 0, 97, 0.12);
}

.qoene-result-card.is-recommended {
  border: 1px solid #c59bff;
  box-shadow: 0 12px 20px rgba(197, 155, 255, 0.35);
  background: linear-gradient(135deg, #f4ecff 0%, #ffffff 100%);
}

.qoene-result-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qoene-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4ecff;
  font-size: 20px;
}

.qoene-result-card.is-recommended .qoene-result-icon {
  background: #3b0061;
  color: #ffffff;
}

.qoene-result-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.qoene-result-name {
  font-weight: 600;
  font-size: 16px;
  color: #3b0061;
}

.qoene-result-meta {
  font-size: 14px;
  color: #6b7280;
}

.qoene-result-pricing {
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  color: #3b0061;
}

.qoene-result-amount {
  display: inline-block;
  white-space: nowrap;
}

.qoene-result-base {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  color: #6b7280;
}

.qoene-recommended-summary {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px dashed #c59bff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.qoene-recommended-label {
  font-weight: 700;
  color: #3b0061;
}

.qoene-recommended-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-weight: 600;
  color: #3b0061;
}

.qoene-recommended-option .qoene-result-text {
  gap: 6px;
}

@media (max-width: 480px) {
  .qoene-result-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .qoene-result-pricing {
    width: 100%;
    text-align: left;
  }
}

.qoene-info-box ol {
  margin: 10px 0 0 20px;
}

.qoene-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.qoene-btn:hover {
  background: #000000;
  color: #ffffff;
}

.qoene-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.qoene-submit-button {
  background: #3b0061;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qoene-submit-button:hover {
  background: #000000;
}

.qoene-submit-button:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

/* Authentication shortcode forms */
.qoene-auth-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 32px 28px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #ffe4d6;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.qoene-auth-form--login,
.qoene-auth-form--reset {
  width: min(100%, 450px);
}

@media (min-width: 768px) {
  .qoene-auth-form--login,
  .qoene-auth-form--reset {
    width: min(100%, 480px);
  }
}

.qoene-auth-form--register {
  width: min(100%, 470px);
}

.qoene-auth-form__title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: #3b0061;
}

.qoene-auth-form__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qoene-auth-form__identifier-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: -6px;
}

.qoene-auth-form__identifier-icons img {
  width: 24px;
  height: 24px;
  display: block;
}

@media (min-width: 640px) {
  .qoene-auth-form--register .qoene-auth-form__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4px;
    row-gap: 18px;
  }

  .qoene-auth-form--register .qoene-auth-form__policy,
  .qoene-auth-form--register .qoene-auth-form__actions,
  .qoene-auth-form--register .qoene-auth-form__links,
  .qoene-auth-form--register .qoene-auth-form__errors,
  .qoene-auth-form--register .qoene-auth-form__success {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .qoene-auth-form {
    padding: 24px 20px;
    border-radius: 16px;
  }
}

.qoene-auth-form__field {
  margin: 0;
}

.qoene-auth-form__password-wrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.qoene-auth-form__password-wrapper input[type="password"],
.qoene-auth-form__password-wrapper input[type="text"] {
  padding-right: 60px;
}

.qoene-auth-form__toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #4b008f;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.qoene-auth-form__toggle:hover,
.qoene-auth-form__toggle:focus {
  color: #ff4b00;
}

.qoene-auth-form__toggle:focus-visible {
  outline: 2px solid #ff4b00;
  outline-offset: 2px;
}

.qoene-auth-form__field input[type="text"],
.qoene-auth-form__field input[type="email"],
.qoene-auth-form__field input[type="tel"],
.qoene-auth-form__field input[type="password"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #ff4b00;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  color: #2f2933;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.qoene-auth-form__field input[type="text"]::placeholder,
.qoene-auth-form__field input[type="email"]::placeholder,
.qoene-auth-form__field input[type="tel"]::placeholder,
.qoene-auth-form__field input[type="password"]::placeholder {
  color: rgba(47, 41, 51, 0.7);
}

.qoene-auth-form__field input[type="text"]:focus,
.qoene-auth-form__field input[type="email"]:focus,
.qoene-auth-form__field input[type="tel"]:focus,
.qoene-auth-form__field input[type="password"]:focus {
  outline: none;
  border-color: #ff3a00;
  box-shadow: 0 0 0 3px rgba(255, 74, 0, 0.2);
}

.qoene-auth-form__actions {
  margin: 8px 0 0;
}

.qoene-auth-form .button,
.qoene-auth-form .button.button-primary {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  background: #ff4b00;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  box-shadow: 0 10px 20px rgba(255, 75, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.qoene-auth-form .button:hover,
.qoene-auth-form .button.button-primary:hover,
.qoene-auth-form .button:focus,
.qoene-auth-form .button.button-primary:focus {
  background: #ff3600;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(255, 54, 0, 0.35);
}

.qoene-auth-form__links {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.qoene-auth-form__links a {
  color: #4b008f;
  font-weight: 600;
  text-decoration: none;
}

.qoene-auth-form__links a:hover,
.qoene-auth-form__links a:focus {
  text-decoration: underline;
}

.qoene-auth-form__policy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #3b0061;
  line-height: 1.6;
}

.qoene-auth-form__remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: #3b0061;
}

.qoene-auth-form__remember input[type="checkbox"] {
  margin: 0;
  min-width: 16px;
  min-height: 16px;
}

.qoene-auth-form__policy input[type="checkbox"] {
  margin-top: 4px;
  min-width: 16px;
  min-height: 16px;
}

.qoene-auth-form__policy a {
  color: #4b008f;
  font-weight: 600;
}

.qoene-auth-form__errors,
.qoene-auth-form__success {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.qoene-auth-form__errors {
  background: #ffe4db;
  border: 1px solid #ff4b00;
  color: #822000;
}

.qoene-auth-form__two-factor-timer {
  display: inline-block;
  font-size: 50%;
  line-height: 1.4;
}

.qoene-auth-form__errors ul {
  margin: 0;
  padding-left: 18px;
}

.qoene-auth-form__success {
  background: #e5f8ed;
  border: 1px solid #27ae60;
  color: #1b7a43;
}

.qoene-auth-form--has-success .qoene-auth-form__success {
  margin-top: -32px;
  margin-left: -28px;
  margin-right: -28px;
  margin-bottom: 24px;
  padding: 10px 22px;
  border-radius: 20px 20px 0 0;
  background: #1f8f4c;
  border: none;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
  .qoene-auth-form--has-success .qoene-auth-form__success {
    margin-top: -28px;
    margin-left: -20px;
    margin-right: -20px;
  }
}

@media (max-width: 480px) {
  .qoene-auth-form {
    padding: 28px 20px;
  }

  .qoene-auth-form__title {
    font-size: 22px;
  }
}

.qoene-alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin: 16px 0;
}

.qoene-alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.qoene-alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.qoene-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.qoene-table th,
.qoene-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e1e5e9;
}

.qoene-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #2c3e50;
}

.qoene-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.qoene-status-pending {
  background: #fff3cd;
  color: #856404;
}

.qoene-status-processing {
  background: #cce5ff;
  color: #004085;
}

.qoene-status-completed {
  background: #d4edda;
  color: #155724;
}

.qoene-status-cancelled {
  background: #f8d7da;
  color: #721c24;
}


.ql-invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5em;
}

.ql-invoice-meta h2 {
  margin: 0;
  font-size: 0.625rem;
}

.ql-invoice-meta p {
  margin: 2px 0 0;
}

.ql-invoice-table {
  width: 100%;
  margin-top: 0;
}

.ql-invoice-totals {
  border-collapse: collapse;
  margin-top: 10px;
}

.ql-invoice-totals th,
.ql-invoice-totals td {
  padding: 8px;
  border-bottom: 1px solid #e1e5e9;
}

.ql-invoice-totals th {
  text-align: left;
}

.ql-invoice-totals td {
  text-align: right;
}

.ql-invoice-totals tr:last-child th,
.ql-invoice-totals tr:last-child td {
  border-bottom: none;
}

.ql-invoice-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

/* Shared button styles */
.qd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  background-color: #3b0061;
  color: #ffffff;
}

.qd-btn:hover,
.qd-btn:focus-visible {
  background-color: #ff4000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 64, 0, 0.2);
  outline: none;
}

.qd-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(59, 0, 97, 0.35), 0 6px 18px rgba(255, 64, 0, 0.2);
}

.qd-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Consistent primary button styling across invoice pages */
.button.button-primary {
  background: #3b0061;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-weight: 200;
  font-size: 0.875rem;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button.button-primary:hover,
.button.button-primary:focus {
  background: #ff4000;
  color: #ffffff;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 64, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
  .qoene-container {
    padding: 15px;
  }

  .qoene-dashboard {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .qoene-card {
    padding: 20px;
  }

  .qoene-table {
    font-size: 14px;
  }

  .qoene-table th,
  .qoene-table td {
    padding: 8px;
  }
}

@media print {
  .qd-support-link { display: none; }
}

/* === Invoice header (title + right-aligned badge on a single row) === */
.qlm-invoice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 0 0 .25rem;
}

.qlm-invoice-title {
  margin: 0;
  line-height: 1.1;
  flex: 1 1 auto;       /* title takes available space */
  min-width: 0;         /* prevent pushing the badge */
  font-size: 0.625rem;
}

/* Date beneath the row */
.qlm-invoice-meta {
  margin: .25rem 0 1rem;
  opacity: .9;
}

/* Status badge (pill) */
.qlm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .375rem .625rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;   /* never wrap */
  line-height: 1;
}

/* Map to your palette; tweak colors if needed */
.qlm-badge--paid {
  background: #16a34a;  /* green-600 */
  color: #fff;
}
.qlm-badge--pending,
.qlm-badge--unpaid {
  background: #f59e0b;  /* amber-500 */
  color: #111827;
}
.qlm-badge--void,
.qlm-badge--cancelled {
  background: #e5e7eb;  /* gray-200 */
  color: #374151;
}

/* Small screens: keep layout intact; badge stays on same row */
@media (max-width: 480px) {
  .qlm-invoice-title { font-size: 0.675rem; }
  .qlm-badge { font-size: .8rem; }
}

.qlm-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
}

.qlm-hd {
  font-size: 0.625rem;
  font-weight: 600;
  margin: 0;
}

.qlm-table { width:100%; border-collapse:collapse; table-layout:auto; }
.qlm-table th, .qlm-table td {
  padding: clamp(0.35rem, 0.45vw + 0.3rem, 0.6rem);
  border-bottom:1px solid #eee;
  text-align:center;
  font-size: 14px;
  word-break: break-word;
  vertical-align: middle;
}

.qlm-table th { font-weight: 600; }

.qlm-table--bfm {
  table-layout: fixed;
  min-width: 720px;
}

.qlm-table--bfm .qlm-table__col--image { width: 96px; }
.qlm-table--bfm .qlm-table__col--url { width: 40%; }
.qlm-table--bfm .qlm-table__col--spec { width: 28%; }
.qlm-table--bfm .qlm-table__col--qty { width: 80px; }
.qlm-table--bfm .qlm-table__col--amount { width: 120px; }

.qlm-table--bfm th,
.qlm-table--bfm td {
  text-align: left;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.qlm-table--bfm th {
  white-space: nowrap;
  text-align: left;
}

.qlm-table--bfm th:first-child,
.qlm-table--bfm td:first-child {
  text-align: center;
}

.qlm-table--bfm th:nth-child(4),
.qlm-table--bfm th:nth-child(5) {
  text-align: center;
}

.qlm-table--bfm td:nth-child(2) a {
  word-break: break-all;
}

.qlm-table--bfm td:nth-child(4),
.qlm-table--bfm td:nth-child(5) {
  text-align: center;
}

.qlm-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 16px 0 0;
  padding: 0;
}

.qlm-pagination a,
.qlm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #3b0061;
  font-weight: 600;
}

.qlm-pagination a:hover,
.qlm-pagination a:focus-visible {
  color: #ff4000;
  border-color: #ff4000;
  outline: none;
}

.qlm-pagination .current {
  background-color: #3b0061;
  color: #ffffff;
  border-color: #3b0061;
}

@media (max-width: 900px) {
  .qlm-table {
    width: 100%;
    min-width: 600px;
  }

  .qlm-table th,
  .qlm-table td {
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .qlm-table--bfm {
    min-width: 640px;
  }

  .qlm-table--bfm th,
  .qlm-table--bfm td {
    white-space: normal;
  }

  .qlm-table--bfm th {
    white-space: nowrap;
  }
}
.qlm-packages-table th,
.qlm-packages-table td {
  white-space: nowrap;
  vertical-align: middle;
}

.qlm-actions-col {
  width: 1%;
  text-align: center;
}

.qlm-actions-col .button.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qlm-actions-col .qd-btn {
  font-size: clamp(0.7rem, 0.35vw + 0.6rem, 0.85rem);
  padding: 0.45rem 1.1rem;
}
/* Remove the purple outline on the selected/first row */
.qoene-result-card.is-recommended {
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 16px 0 !important; /* keep row spacing consistent */
}

/* Recommended bar: put amount on the right, same styling as rows */
.qoene-recommended-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qoene-recommended-option .qoene-result-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.qoene-recommended-option .qoene-result-pricing {
  text-align: right;
  flex-shrink: 0;
}

.qoene-recommended-option .qoene-result-amount {
  display: inline-block;
  font-size: 17px;
  font-weight: 800;
  color: #111827;
}

.qoene-recommended-option .qoene-result-base {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  color: var(--qd-muted, #64748b);
}
/* Qoene — Minimal Results Tab (exact look from screenshot) */
.qoene-results {
  margin-top: 32px;
  padding: 28px 24px;
  background: #fff;
  border: none;
  border-radius: 18px;
  box-shadow: none;
  width: 100%;
}

.qoene-results h4 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

/* List rows */
.qoene-result-list { display: flex; flex-direction: column; gap: 0; }
.qoene-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid #edf1f5;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.qoene-result-card:first-child { border-top: 0; }

/* Remove any purple outline on the first/selected row */
.qoene-result-card.is-recommended {
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 14px 0 !important;
  border: 0 !important;
  background: inherit !important;
}

/* Left side */
.qoene-result-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qoene-result-icon { font-size: 18px; line-height: 1; transform: translateY(1px); }
.qoene-result-text { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.qoene-result-name,
.qoene-result-name a { font-size: 16px; font-weight: 600; color: #111827; text-decoration: none; }
.qoene-result-meta { font-size: 13px; color: #6b7280; }

/* Right side amounts */
.qoene-result-pricing { text-align: right; white-space: nowrap; }
.qoene-result-amount { font-size: 17px; font-weight: 800; color: #111827; }
.qoene-result-base { margin-left: 8px; font-size: 13px; color: #6b7280; }

/* Recommended bar */
.qoene-recommended-summary {
  border: 0;
  border-top: 3px solid #7c3aed;
  background: none;
  margin-top: 12px;
  padding: 12px 0 0;
}
.qoene-recommended-label { display: block; font-size: 12px; color: #6b7280; margin: 0 0 8px; }
.qoene-recommended-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}
.qoene-recommended-option .qoene-result-main { gap: 10px; }
.qoene-recommended-option .qoene-result-pricing { text-align: right; }
.qoene-recommended-option .qoene-result-amount { font-size: 17px; font-weight: 800; }
.qoene-recommended-option .qoene-result-base { margin-left: 8px; font-size: 13px; color: #6b7280; }

/* Mobile */
@media (max-width: 480px) {
  .qoene-result-card,
  .qoene-recommended-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .qoene-result-pricing,
  .qoene-recommended-option .qoene-result-pricing {
    text-align: left;
  }
}

.qoene-estimator-error {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fee2e2;
  color: #7f1d1d;
  font-size: 14px;
}

.qoene-estimator-error[hidden] {
  display: none !important;
}

.qoene-results--message {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5d9ff;
}

.qoene-estimator-message {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
}

.qoene-estimator-message.is-loading {
  color: #5b21b6;
}

