/* Cart quotes: cart-page button + dialog, My quotes page. Colours match ift-cart-page-v2.css. */
.ift-iq {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.ift-iq__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ift-iq__bar-text {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.ift-iq__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #c75012;
  border-radius: 6px;
  background: #fff;
  color: #c75012;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ift-iq__open:hover,
.ift-iq__open:focus-visible {
  background: #c75012;
  color: #fff;
}
.ift-iq__hint {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #6b7280;
}

.ift-iq-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, .25);
  color: #374151;
  overflow: auto;
}
.ift-iq-dialog::backdrop {
  background: rgba(17, 24, 39, .45);
}
.ift-iq-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.ift-iq-dialog__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.ift-iq-dialog__close {
  display: inline-flex;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #6b7280;
  cursor: pointer;
}
.ift-iq-dialog__close:hover {
  background: #f3f4f6;
  color: #111827;
}
.ift-iq-dialog__body {
  padding: 16px 20px 20px;
}
.ift-iq-dialog__intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
}
.ift-iq-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ift-iq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.ift-iq-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.ift-iq-field em {
  font-style: normal;
  color: #b91c1c;
}
.ift-iq-field input {
  height: 40px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #111827;
  background: #fff;
}
.ift-iq-field input:focus {
  outline: 0;
  border-color: #c75012;
  box-shadow: 0 0 0 3px rgba(199, 80, 18, .15);
}
.ift-iq-field.is-invalid input {
  border-color: #b91c1c;
}
.ift-iq-error {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}
.ift-iq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ift-iq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ift-iq-btn:hover,
.ift-iq-btn:focus-visible {
  border-color: #9ca3af;
  color: #111827;
  text-decoration: none;
}
.ift-iq-btn--primary {
  border-color: #c75012;
  background: #c75012;
  color: #fff;
}
.ift-iq-btn--primary:hover,
.ift-iq-btn--primary:focus-visible {
  border-color: #a8410b;
  background: #a8410b;
  color: #fff;
}
/* the theme greys links with a:link:not(.nav-link):not(.btn) (0,3,1) */
a.ift-iq-btn.ift-iq-btn.ift-iq-btn:link,
a.ift-iq-btn.ift-iq-btn.ift-iq-btn:visited,
a.ift-iq-btn.ift-iq-btn.ift-iq-btn:hover {
  color: #111827;
}
a.ift-iq-btn.ift-iq-btn--primary.ift-iq-btn--primary:link,
a.ift-iq-btn.ift-iq-btn--primary.ift-iq-btn--primary:visited,
a.ift-iq-btn.ift-iq-btn--primary.ift-iq-btn--primary:hover {
  color: #fff;
}
.ift-iq-btn[disabled] {
  opacity: .6;
  cursor: progress;
}
.ift-iq-fine {
  margin: 12px 0 0;
  font-size: 12px;
  color: #6b7280;
}
.ift-iq-done__ref {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}
.ift-iq-done__msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 575px) {
  .ift-iq-grid {
    grid-template-columns: 1fr;
  }
  .ift-iq-actions .ift-iq-btn {
    flex: 1 1 100%;
  }
}

/* My quotes */
.ift-iq-page__title {
  margin: 0 0 4px;
  font-size: 22px;
  color: #111827;
}
.ift-iq-page__intro {
  margin: 0 0 18px;
  color: #6b7280;
}
.ift-iq-page__empty {
  padding: 24px;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  text-align: center;
}
.ift-iq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ift-iq-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
}
.ift-iq-card__main {
  flex: 1 1 auto;
  min-width: 0;
}
.ift-iq-card__ref {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #111827;
}
.ift-iq-card__cref {
  font-size: 13px;
  color: #374151;
}
.ift-iq-card__badge {
  padding: 1px 6px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
}
.ift-iq-card__meta {
  margin-top: 2px;
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ift-iq-card__total {
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}
.ift-iq-card__actions {
  display: flex;
  gap: 6px;
}
.ift-iq-card__actions .ift-iq-btn {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
@media (max-width: 767px) {
  .ift-iq-card {
    flex-wrap: wrap;
  }
  .ift-iq-card__actions {
    width: 100%;
  }
  .ift-iq-card__actions .ift-iq-btn {
    flex: 1;
  }
}

/* Delivery choice for the quote */
.ift-iq-freight {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.ift-iq-freight legend {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.ift-iq-freight legend em {
  font-style: normal;
  color: #b91c1c;
}
.ift-iq-freight__to {
  margin: 0 0 6px;
  font-size: 13px;
  color: #4b5563;
}
.ift-iq-freight__change {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #c75012;
  text-decoration: underline;
  cursor: pointer;
}
.ift-iq-freight__postcode {
  max-width: 260px;
  margin: 0 0 8px;
}
.ift-iq-freight__opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ift-iq-freight.is-loading .ift-iq-freight__opts {
  opacity: .5;
}
.ift-iq-freight__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
}
.ift-iq-freight__opt:hover {
  border-color: #9ca3af;
}
.ift-iq-freight__opt:has(input:checked) {
  border-color: #c75012;
  background: #fff7ed;
}
.ift-iq-freight__opt.is-only {
  cursor: default;
}
.ift-iq-freight__opt input[type="radio"] {
  flex: 0 0 auto;
  margin: 0;
  accent-color: #c75012;
}
.ift-iq-freight__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.ift-iq-freight__info strong {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}
.ift-iq-freight__info small {
  font-size: 12px;
  color: #6b7280;
}
.ift-iq-freight__price {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.ift-iq-freight__price.is-free {
  color: #c75012;
}
.ift-iq-freight.is-invalid .ift-iq-freight__opt {
  border-color: #b91c1c;
}
