.quote-items-page {
  color: #08346d;
}

.quote-items-page.non-editable #show_custom_items,
.quote-items-page.no-custom-items #custom_items,
.quote-items-page.has-custom-items #show_custom_items {
  display: none;
}

.quote-items-page.non-editable main a.remove {
  display: none;
}

.quote-items-layout {
  flex: 1;
  padding: 0 clamp(24px, 6vw, 88px) 56px;
}

.quote-items-heading {
  position: relative;
  margin: 12px 0 2px;
}

.quote-items-heading h1 {
  margin: 0;
  color: var(--heading-color);
  font-size: clamp(32px, 4vw, 38px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quote-items-heading p {
  margin: 4px 0 0;
  color: rgba(6, 61, 131, .72);
  font-size: 16px;
}

#items-section {
  display: none;
}

.items-skeleton {
  width: 100%;
}

.items-skeleton-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 2px 0 18px;
}

.items-skeleton-tabs span,
.items-skeleton-select,
.items-skeleton-button,
.items-skeleton-qty,
.items-skeleton-x,
.items-skeleton-add {
  display: block;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .42);
}

.items-skeleton-tabs span::after,
.items-skeleton-select::after,
.items-skeleton-button::after,
.items-skeleton-qty::after,
.items-skeleton-x::after,
.items-skeleton-add::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: items-skeleton-shimmer 1.25s infinite;
}

.items-skeleton-tabs span {
  height: 56px;
  border-radius: 6px;
}

.items-skeleton-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px 32px 24px 20px;
  align-items: center;
  column-gap: 9px;
  margin-bottom: 8px;
}

.items-skeleton-select {
  height: 36px;
  border-radius: 9px;
}

.items-skeleton-button {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(11, 63, 145, .38);
  border-radius: 999px;
  background: transparent;
}

.items-skeleton-qty {
  width: 32px;
  height: 36px;
  border-radius: 9px;
}

.items-skeleton-x {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: rgba(226, 11, 11, .16);
}

.items-skeleton-add {
  width: 138px;
  height: 36px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(30, 67, 136, .36);
}

@keyframes items-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.items-page {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.items-page hr,
.items-page .separator {
  display: none;
}

#pills-tab {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 2px 0 18px !important;
}

#pills-tab .nav-item {
  width: 100%;
}

#pills-tab .nav-link {
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 16px 18px;
  border: 2px solid var(--nav-pill-border-color);
  border-radius: 6px;
  background: var(--nav-pill-bg);
  color: var(--nav-pill-color);
  font-weight: 700;
  text-align: center;
}

#pills-tab .nav-link:hover,
#pills-tab .nav-link:focus {
  border-color: var(--nav-pill-active-border-color);
  background: var(--nav-pill-hover-bg);
  color: var(--nav-pill-color);
}

#pills-tab .nav-link.active,
#pills-tab .show > .nav-link {
  border-color: var(--nav-pill-active-border-color);
  background: var(--nav-pill-active-bg);
  color: var(--nav-pill-active-color);
}

.dropdown-tab .room-heading,
.dropdown-tab > .row.mb-2.d-none.d-md-flex {
  display: none !important;
}

.container-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown-tab .parent-item {
  display: grid !important;
  align-items: center;
  column-gap: 9px;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal;
}

.dropdown-tab.no-lifts .parent-item {
  grid-template-columns: minmax(0, 1fr) 88px 20px;
}

.dropdown-tab.has-lifts {
  overflow-x: auto;
  padding-bottom: 2px;
}

.dropdown-tab.has-lifts .lift-header-row,
.dropdown-tab.has-lifts .parent-item {
  grid-template-columns: minmax(0, 1fr) 88px repeat(var(--lift-count), 62px) 20px;
}

.lift-header-row {
  display: grid;
  align-items: end;
  column-gap: 9px;
  margin: 0 0 6px;
}

.lift-header-cell {
  color: #07356d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.dropdown-tab .parent-item > .col-md-7,
.dropdown-tab .parent-item > .col-md-2,
.dropdown-tab .parent-item > .col-md-1,
.dropdown-tab .parent-item > .col,
.dropdown-tab .parent-item > [class*="col-"] {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
  flex: initial;
}

.col-select {
  order: 1;
}

.col-handle-counter {
  order: 2;
}

.col-toobig {
  order: 3;
}

.lift-controls {
  display: contents;
}

.col-toobig-text {
  order: 4;
}

.col-remove {
  order: 4;
  align-self: center;
  text-align: center !important;
}

.select2-container {
  width: 100% !important;
}

.select2-container .select2-choice {
  height: 36px;
  border: 0 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, .82) !important;
  background-image: none !important;
  box-shadow: 0 10px 20px rgba(6, 61, 131, .08), inset 0 1px 0 rgba(255, 255, 255, .65) !important;
  color: #6f6f6f !important;
  line-height: 36px;
}

.select2-container .select2-choice > .select2-chosen {
  margin-right: 34px;
  padding-left: 12px;
  color: #6f6f6f;
  font-size: 14px;
  font-weight: 400;
}

.select2-container .select2-choice .select2-arrow {
  width: 34px;
  border-left: 0 !important;
  border-radius: 0 9px 9px 0 !important;
  background: transparent !important;
  background-image: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}

.select2-container .select2-choice .select2-arrow b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: none;
  background: none !important;
  font-family: 'Font Awesome 5 Free';
  font-style: normal;
  font-size: 14px;
  color: #555;
  line-height: 1;
}

.select2-container .select2-choice .select2-arrow b::before {
  content: '\f078';
  display: inline-block;
  transition: transform 0.2s ease;
}

.select2-container.select2-dropdown-open .select2-choice .select2-arrow b::before {
  transform: rotate(180deg);
}

.handle-counter {
  display: grid;
  grid-template-columns: 24px 32px 24px;
  align-items: center;
  gap: 4px;
  width: 88px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.handle-counter .btn,
.handle-counter .counter-minus,
.handle-counter .counter-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #0b3f91;
  border-radius: 999px !important;
  background: transparent !important;
  color: #0b3f91 !important;
  box-shadow: none !important;
  font-size: 11px;
  line-height: 1;
}

.handle-counter .btn i {
  line-height: 1;
}

.handle-counter input.form-control {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .92);
  color: #0b3f91;
  box-shadow: 0 8px 18px rgba(6, 61, 131, .08);
  font-size: 18px;
  font-weight: 400;
  line-height: 36px;
  text-align: center;
}

.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 36px;
  text-decoration: none;
}

.remove:hover,
.remove:focus {
  text-decoration: none;
}

.remove img,
.remove-custom-item img {
  display: none;
}

.remove::before,
.remove-custom-item::before {
  content: "X";
  color: #e20b0b;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

#show_custom_items {
  margin: 8px 0 0;
  color: var( --helper-text-color);
  font-size: 12px;
}

#show_custom_items a,
#custom_items a {
  color: #063d83;
  text-decoration: underline;
}

#custom_items {
  margin-top: 18px;
}

#custom_items textarea.form-control {
  min-height: 160px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
}

.handle-counter .btn:hover,
.handle-counter .btn:focus {
  border-color: #0b3f91;
  background: transparent !important;
  color: #0b3f91 !important;
}

.hide,
.custom-item-note {
  display: none;
}

div.badge-hide {
  visibility: hidden;
}

.alert-warning-custom {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #07356d;
}
.badge-secondary {
  background-color: #1e4388 !important;
}

.modal-header {
  border-bottom: 0;
}

button.close {
  padding: 0;
  border: 0;
  background: transparent;
  color: #07356d;
  font-size: 24px;
  line-height: 1;
}

.modal-btn {
  width: 150px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

.form-inline {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

.text-right {
  text-align: right !important;
}

.custom-control {
  position: relative;
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5rem;
}

.custom-control-input {
  position: absolute;
  left: 0;
  z-index: -1;
  width: 1rem;
  height: 1.25rem;
  opacity: 0;
}

.custom-control-label {
  position: relative;
  margin-bottom: 0;
  font-size: 16px;
}

.custom-control-label::before {
  content: "";
  position: absolute;
  top: .25rem;
  left: -1.5rem;
  width: 1rem;
  height: 1rem;
  border: 1px solid #8697bb;
  background: #fff;
}

.custom-radio .custom-control-label::before {
  border-radius: 50%;
}

.custom-control-input:checked ~ .custom-control-label::before {
  border-color: #1e4388;
  background: #1e4388;
}

.custom-control-input:checked ~ .custom-control-label::after {
  content: "";
  position: absolute;
  top: .5rem;
  left: -1.25rem;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #fff;
}

.address-letter {
  display: inline-block;
  width: 3rem;
  height: 2rem;
  border-radius: .25rem;
  font-weight: 700;
  line-height: 2rem;
  text-align: center;
}

.container-label {
  display: block;
  position: relative;
  min-height: 24px;
  margin-bottom: 2px;
  padding-left: 2px;
  cursor: pointer;
  font-size: 17px;
  user-select: none;
}

.container-label input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 6px;
  left: 0;
  width: 23px;
  height: 22px;
  border: 1px solid #333;
}

.container-label:hover input ~ .checkmark {
  background-color: #ccc;
}

.container-label input:checked ~ .checkmark {
  background-color: #fff;
}

.checkmark::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  display: none;
  width: 7px;
  height: 13px;
  border: solid #0073bb;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.container-label input:checked ~ .checkmark::after {
  display: block;
}

.col-toobig {
  align-self: center;
  text-align: center;
}

.lift-fit-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0;
  gap: 2px;
  color: #07356d;
  font-size: 10px;
  line-height: 1.05;
}

.lift-fit-label .checkmark {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #0b3f91;
  border-radius: 4px;
  background: rgba(255, 255, 255, .7);
}

.lift-fit-label:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, .92);
}

.lift-fit-label input:checked ~ .checkmark {
  background-color: #fff;
}

.lift-fit-label .checkmark::after {
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-color: #0b3f91;
  border-width: 0 2px 2px 0;
}

.lift-checkbox-label {
  display: block;
  max-width: 58px;
  color: rgba(7, 53, 109, .78);
  font-size: 9px;
  line-height: 1.05;
  text-align: center;
}

.lift-mobile-title {
  color: #07356d;
  font-size: 11px;
  font-weight: 700;
}

.liftbadge {
  display: inline-block;
  margin-top: 1px;
  min-width: 18px;
  min-height: 14px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
}

.custom-input {
  width: 70px;
}

.custom-item-name {
  width: 550px;
}

.custom-men-required {
  width: 124px;
}

.row-custom-item input {
  margin-right: 5px;
  margin-bottom: 5px;
}

.custom-item-note {
  color: rgba(6, 61, 131, .72);
  font-size: 13px;
}

@media (max-width: 767px) {
  .quote-items-layout {
    padding: 0 18px 40px;
  }

  #pills-tab {
    grid-template-columns: 1fr;
  }

  .items-skeleton-tabs {
    grid-template-columns: 1fr;
  }

  .dropdown-tab.no-lifts .parent-item {
    grid-template-columns: minmax(0, 1fr) 82px 18px;
    column-gap: 7px;
  }

  .dropdown-tab.has-lifts .lift-header-row {
    display: none;
  }

  .dropdown-tab.has-lifts .parent-item {
    grid-template-columns: minmax(0, 1fr) 82px 18px;
    column-gap: 6px;
    row-gap: 6px;
  }

  .dropdown-tab.has-lifts .col-select {
    grid-column: auto;
    order: 1;
  }

  .dropdown-tab.has-lifts .col-handle-counter {
    order: 2;
  }

  .dropdown-tab.has-lifts .col-remove {
    order: 3;
  }

  .dropdown-tab.has-lifts .col-toobig-text {
    grid-column: 1 / -1;
    order: 4;
    color: rgba(7, 53, 109, .76);
    line-height: 1.15;
    text-align: left;
  }

  .dropdown-tab.has-lifts .col-toobig {
    width: 54px;
    margin-right: 0;
  }

  .dropdown-tab.has-lifts .lift-controls {
    display: flex;
    grid-column: 1 / -1;
    order: 5;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
  }

  .lift-checkbox-label {
    display: none;
  }

  .lift-fit-label {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 58px;
    gap: 3px;
  }

  .lift-mobile-title {
    display: block !important;
  }

  .lift-fit-label .checkmark {
    order: 2;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .86);
  }

  .liftbadge {
    order: 3;
    margin-top: 2px;
  }

  .items-skeleton-row {
    grid-template-columns: minmax(0, 1fr) 22px 28px 22px 18px;
    column-gap: 7px;
  }

  .custom-item-name {
    width: 100%;
  }
}
.row-custom-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 8px;
}
.row-custom-item input {
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 6px 14px rgba(6,61,131,.06);
}
.row-custom-item .custom-item-name { flex: 1 1 200px; min-width: 0; }
.row-custom-item hr { display: none; }
.row-custom-item input:not(.custom-item-name) {
  min-width: 75px;
  text-align: center;
}
@media (max-width: 420px) {
  .dropdown-tab.no-lifts .parent-item {
    grid-template-columns: minmax(0, 1fr) 76px 16px;
    column-gap: 5px;
  }

  .dropdown-tab.has-lifts .parent-item {
    grid-template-columns: minmax(0, 1fr) 76px 16px;
    column-gap: 4px;
  }

  .dropdown-tab.has-lifts .col-toobig {
    width: 50px;
  }

  .dropdown-tab.has-lifts .lift-controls {
    gap: 4px;
  }

  .items-skeleton-row {
    grid-template-columns: minmax(0, 1fr) 22px 28px 22px 16px;
    column-gap: 5px;
  }

  .select2-container .select2-choice {
    height: 32px;
    border-radius: 8px !important;
    line-height: 32px;
  }

  .select2-container .select2-choice > .select2-chosen {
    margin-right: 28px;
    padding-left: 10px;
    font-size: 13px;
  }

  .select2-container .select2-choice .select2-arrow {
    width: 28px;
  }

  .select2-container .select2-choice .select2-arrow b {
    margin-top: 13px;
    border-top-width: 8px;
    border-right-width: 7px;
    border-left-width: 7px;
  }

  .handle-counter {
    grid-template-columns: 22px 28px 22px;
    gap: 2px;
    width: 76px;
    height: 32px;
  }

  .handle-counter .btn,
  .handle-counter .counter-minus,
  .handle-counter .counter-plus {
    width: 22px;
    height: 22px;
    border-width: 2px;
    font-size: 10px;
    line-height: 1;
  }

  .handle-counter input.form-control {
    width: 28px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 32px;
  }

  .remove {
    width: 16px;
    height: 32px;
  }

  .remove::before {
    font-size: 18px;
  }

  .items-skeleton-select,
  .items-skeleton-qty {
    height: 32px;
    border-radius: 8px;
  }

  .items-skeleton-button {
    width: 22px;
    height: 22px;
  }

  .items-skeleton-x {
    width: 16px;
    height: 18px;
  }
}

input.input-qty::-webkit-outer-spin-button,
input.input-qty::-webkit-inner-spin-button,
input.no-arrows::-webkit-outer-spin-button,
input.no-arrows::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input.input-qty[type=number],
input.no-arrows[type=number] {
  -moz-appearance: textfield;
}

@media (max-width: 575.98px) {
  /* Keep modal quantity controls usable on narrow screens. */
  .modal .d-flex.flex-column.flex-sm-row.align-items-center {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px;
  }

  .modal .d-flex.flex-column.flex-sm-row.align-items-center button[id$="-minus"] {
    order: 1 !important;
  }

  .modal .d-flex.flex-column.flex-sm-row.align-items-center input[type="number"] {
    order: 2 !important;
    flex: 0 0 50px;
    width: 50px;
    max-width: 50px;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .modal .d-flex.flex-column.flex-sm-row.align-items-center button[id$="-plus"] {
    order: 3 !important;
  }

  .modal .d-flex.flex-column.flex-sm-row.align-items-center button[id$="-minus"],
  .modal .d-flex.flex-column.flex-sm-row.align-items-center button[id$="-plus"] {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

.btn-next-wrap {
  max-width: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
