.modal::-webkit-scrollbar {
  background: lightgray;
  width: 0.25rem;
}

.modal::-webkit-scrollbar-thumb {
  background: hsla(220, 60%, 50%, 1);
  border-radius: 1rem;
}

.modal::-webkit-scrollbar-thumb,
.modal::-moz-scrollbar-thumb {
  scrollbar-color: hsla(220, 60%, 50%, 1) #f0f0f0;
  border-radius: 1rem;
}

.modal {
  position: relative;
  padding: 4rem;
  max-width: 1000px;
  color: hsla(0, 0%, 0%, 0.8);
  border: 3px solid hsla(220, 60%, 50%, 1);
  border-radius: 5px;
  box-shadow: 0 0 1rem hsla(0, 0%, 0%, 0.3);
    scrollbar-color: hsla(220, 60%, 50%, 1) lightgray;
}

/* exclusive to shipping estimate modal only */
.shipping-modal {
  width: calc(90% - 2rem) !important;
  padding: 1rem !important;
}

.shipping-modal ul {
  padding-left: 2rem;
}

@media only screen and (max-width: 1000px) {
  .modal {
    padding: 1rem;
    width: calc(90% - 2rem);
  }
}

.modal::backdrop {
  background: hsla(0, 0%, 0%, 0.6);
}

.modal-container h3 {
  font-weight: 600;
  margin: 0;
}

.modal-container h4 {
  font-weight: 600;
  margin: 0;
  text-decoration: none;
}

.modal-container p {
  margin: 0;
}

.modal-container ul {
  padding-left: 40px;
  background-color: none;
}

.modal-container ol {
  background-color: none;
}

.modal-container li {
  background-color: none;
}

.modal-margin-bottom-large {
  margin-bottom: 15px !important;
}

.modal-margin-bottom-small {
  margin-bottom: 5px !important;
}

.modal-section {
  margin-bottom: 20px;
}

.general-info__title {
  margin-bottom: 7px !important;
}

.general-info__text {
  margin-bottom: 15px !important;
}

.modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

@media only screen and (max-width: 500px) {
  .modal-cta {
    flex-direction: column;
  }
}

.modal-cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-cta-container a:visited {
  text-decoration: none;
  color: white !important;
  background-color: hsla(220, 60%, 50%, 1) !important;
}

.modal-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  border: none;
  font-weight: 600;
  color: white !important;
  background-color: hsla(220, 60%, 50%, 1) !important;
  border-radius: 5px;
  padding: 3px 10px;
  line-height: 1;
  cursor: pointer;
  transition: all 300ms ease-in-out;
}

.modal-cta-button:hover {
  background-color: hsla(220, 60%, 50%, 0.5) !important;
  /* transform: translateY(-1px); */
  text-decoration: none !important;
}

.modal-cta-button:active {
  background-color: hsla(220, 60%, 50%, 0.5);
  /* transform: translateY(3px); */
}

.modal-open-image {
  max-width: 10rem;
  height: auto;
}

.modal-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  text-decoration: none;
  background-image: none;
}

@media only screen and (max-width: 800px) {
  .modal-title {
    margin-top: 2rem;
  }
}

.modal-open-button {
  height: 25px;
  border: none;
  font-weight: 600;
  color: white;
  background-color: hsla(220, 60%, 50%, 1);
  border-radius: 5px;
  padding: 5px 10px;
  line-height: 1;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  white-space: nowrap;
}

.modal-open-button:hover {
  background-color: hsla(220, 60%, 50%, 0.5);
  /* transform: translateY(-1px); */
}

.modal-open-button:active {
  background-color: hsla(220, 60%, 50%, 0.5);
  /* transform: translateY(3px); */
}

.modal-close-button {
  background-color: hsla(0, 6%, 80%, 0.5);
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.5rem;
  border-radius: 0.3rem;
  border: none;
  cursor: pointer;
  transition: all 100ms ease-in-out;
}

.modal-close-button:hover {
  background-color: hsla(0, 6%, 80%, 1);
}

.modal-subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.1rem;
  font-style: italic;
  color: hsla(0, 0%, 0%, 0.6);
  margin-bottom: 2rem !important;
}

.modal-picture {
  width: 100%;
  height: auto;
}

.category__learn-more {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.category__title {
  text-align: center;
  padding: 0;
  margin: 1rem auto;
  font-size: 32px;
  font-weight: 700;
}

.category__subtitle {
  text-align: center;
}

@media only screen and (max-width: 1000px) {
  .category__title {
    font-size: 24px;
  }

  .category__learn-more {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 1rem;
  }
}
