.albatec-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  font-family: "Cairo", sans-serif;
}

.albatec-quote-modal.is-open {
  display: block;
}

.albatec-quote-modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--primary-blue-500);
  opacity: 0.55;
}

.albatec-quote-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  max-width: 1280px;
  width: calc(100% - 4rem);
  max-height: calc(100vh - 4rem);
  margin: 2rem auto;
  border-radius: 8px;
  overflow-y: auto;
  padding: 2rem;
}

.albatec-quote-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.albatec-quote-modal__title {
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #14213d;
}

.albatec-quote-modal__subtitle {
  margin: 0;
  color: #5b6472;
  font-size: 15px;
}

.albatec-quote-modal__close {
  background: none !important;
  border: none !important;
  font-family: inherit !important;
  font-size: 18px !important;
  color: var(--primary-blue-500) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  padding: 0 !important;
}

.albatec-quote-modal__close-icon {
  font-size: 26px !important;
  line-height: 0;
}

.albatec-quote-modal__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--secondary-blue-100);
}

.albatec-quote-modal__index {
  font-weight: 600;
  color: #14213d;
  font-size: 24px;
}

.albatec-quote-modal__image {
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--secondary-blue-100);
  border-radius: 5px;
  flex-shrink: 0;
}

.albatec-quote-modal__details {
  flex: 1;
  min-width: 0;
}

.albatec-quote-modal__item-title {
  font-weight: 600;
  color: #14213d;
  margin-bottom: 12px;
  font-size: 24px;
}

.albatec-quote-modal__item-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.albatec-quote-modal__field-label {
  display: block;
  font-size: 14px;
  color: #5b6472;
  margin-bottom: 8px;
}

.albatec-quote-modal__counter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.albatec-quote-modal__qty-btn {
  width: 32px !important;
  height: 32px !important;
  padding: 0.5rem !important;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  background: #a9bdf5 !important;
  color: #1a1a2e !important;
  font-family: inherit !important;
  font-size: 18px !important;
  line-height: 0.6 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.albatec-quote-modal__qty-input {
  width: 3ch;
  field-sizing: content;
  height: 32px;
  text-align: center;
  border: 1px solid var(--secondary-blue-100) !important;
  border-radius: 5px !important;
  background: #fff !important;
  font-family: inherit;
  font-size: 15px;
  box-shadow: none !important;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.albatec-quote-modal__qty-input::-webkit-outer-spin-button,
.albatec-quote-modal__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.albatec-quote-modal__note-field {
  flex: 1 1 240px;
}

.albatec-quote-modal__note {
  width: 100%;
  min-height: 85px;
  padding: 10px 12px;
  border: 1px solid var(--secondary-blue-100) !important;
  border-radius: 5px !important;
  background: #fff !important;
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  box-shadow: none !important;
  outline: none;
}

.albatec-quote-modal__remove {
  background: none !important;
  border: none !important;
  font-family: inherit !important;
  font-size: 15px !important;
  color: #c62828 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  padding-top: 8px !important;
}

.albatec-quote-modal__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--secondary-blue-100);
  margin-bottom: 24px;
}

.albatec-quote-modal__browse-link {
  color: var(--primary-blue-500);
  font-size: 18px;
  text-decoration: none;
}

.albatec-quote-modal__browse-link:hover {
  text-decoration: underline;
}

.albatec-quote-modal__remove-all {
  background: none !important;
  border: none !important;
  font-family: inherit !important;
  font-size: 15px !important;
  color: #c62828 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  padding-top: 8px !important;
  display: none !important;
}

.albatec-quote-modal__remove-all.is-visible {
  display: inline-block !important;
}

.albatec-quote-modal__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #f4f7fb;
  border-radius: 8px;
  padding: 24px;
}

.albatec-quote-modal__ready-title {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 600;
  color: var(--primary-blue-500);
}

.albatec-quote-modal__ready-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--primary-blue-500);
  max-width: 420px;
}

.albatec-quote-modal__send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-blue-500) !important;
  border: 1px solid var(--primary-blue-500) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 5px !important;
  cursor: pointer;
  box-shadow: none !important;
  outline: none;
  white-space: nowrap;
}

.albatec-quote-modal__send:hover {
  background: #0d1730 !important;
}

.albatec-quote-modal__empty {
  padding: 32px 0;
  text-align: center;
  color: #5b6472;
}

body.albatec-quote-modal-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .albatec-quote-modal__dialog {
    width: calc(100% - 2rem);
    margin: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 700px) {
  .albatec-quote-modal__item {
    flex-wrap: wrap;
  }

  .albatec-quote-modal__details {
    display: contents;
  }

  .albatec-quote-modal__item-title {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    font-size: 18px;
  }

  .albatec-quote-modal__item-row {
    flex-basis: 100%;
  }

  .albatec-quote-modal__remove {
    flex-basis: 100%;
    text-align: right !important;
  }
}
