.modal {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: 10;
  pointer-events: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  opacity: 0;
  z-index: 9999;
}
body.darkmode .modal {
  background-color: rgba(0, 0, 0, 0.16);
}
.modal::-webkit-scrollbar {
  display: none;
}
.modal-window .gridRow {
  display: grid !important;
}
.modal-window {
  position: relative;
  width: 100%;
  border-radius: 8px;
  padding: 0 24px 44px;
  margin: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 4px;
  border: 1px solid #D0D0D0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0px 24px 24px 0px rgba(0, 0, 0, 0.16);
  -webkit-box-shadow: 0px 24px 24px 0px rgba(0, 0, 0, 0.16);
  gap: 24px;
}
body.darkmode .modal-window{
  border: 1px solid #445C83;
  background-color: #344D76;
}
.modal-window .modal-content{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
}
.image_preview{
  position: relative;
  display: flex;
  justify-content: center;
  height: 256px;
  width: 100%;
  grid-column: 1 / span 2;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}
.image_preview.file{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  font-weight: 500;
  background-image: url('../../assets/icons/file_present_FILL.svg');
  background-size: 124px;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.12);
  background-repeat: no-repeat;
}
.image_preview.missing{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  font-weight: 500;
  background-image: url('../../assets/icons/question_mark.svg');
  background-size: 124px;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.12);
  background-repeat: no-repeat;
}
.image_preview.pdf{
  background-image: url('../../assets/icons/picture_as_pdf_FILL.svg');
  background-color: rgba(0, 0, 0, 0.12);
  background-size: 124px;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.12);
  background-repeat: no-repeat;
}
.image_preview.doc{
  background-image: url('../../assets/icons/description.svg');
  background-color: rgba(0, 0, 0, 0.12);
  background-size: 124px;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.12);
  background-repeat: no-repeat;
}
.image_preview.certificado{
  background-image: url('../../assets/icons/verified.svg');
  background-color: rgba(0, 0, 0, 0.12);
  background-size: 124px;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.12);
  background-repeat: no-repeat;
}
.image_preview .image{
  display: flex;
  height: inherit;
  width: 100%;
  border-radius: 6px;
  background-size: contain;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.84);
  background-repeat: no-repeat;
  opacity: 1 !important;
}
.show-modal-content{
  display: flex !important;
  opacity: 1 !important;
}
.modal-window .title {
  display: grid;
  align-items: center;
  grid-template-columns: auto 32px;
  min-height: 52px;
  width: 100%;
  gap: 24px;
  margin: 0 !important;
  padding: 16px 0;
  color: #444;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #D0D0D0;
}
body.darkmode .modal-window .title{
  color: #fff;
  border-bottom: 1px solid rgba(208, 208, 208, 0.32);
}
.modal-window .title.center {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
}
.modal-window .closeWindow {
  height: 32px;
  width: 32px;
  background: url("../../assets/icons/close.svg") no-repeat;
  background-position: center;
  filter: invert(41%) sepia(9%) saturate(4416%) hue-rotate(314deg) brightness(99%) contrast(74%);
  border-radius: 4px;
  cursor: pointer;
}
.modal-window .closeWindow:hover {
  background-color: rgba(198, 89, 89, 0.04);
}
.modal-window .historyItem{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.modal-window .historyItem *{
  text-align: center;
}
.modal-window .historyIcon{
  height: 64px;
  width: 64px;
  border-radius: 64px;
  background-color: rgba(0, 0, 0, 0.04);
  background-size: 32px;
  background-repeat: no-repeat;
  background-position: center;
}
.modal-window .historyItem p:first-of-type{
  font-size: 16px;
  font-weight: 500;
}
.modal-window .historyItem p{
  font-size: 14px;
}
.modal-window h4{
  font-size: 16px;
  margin: 0;
  padding: 0;
  color: #365382;
  font-weight: 700;
}
.modal-window form{
  display: flex;
  width: 100%;
  gap: 16px;
}
.close {
  position: absolute;
  top: 0;
  right: 0;
  color: rgba(0, 0, 0, 0.3);
  height: 30px;
  width: 30px;
  font-size: 30px;
  line-height: 30px;
  text-align: center;
}
.open {
  pointer-events: all;
  opacity: 1;
}
p{
  font-size: 16px;
}
p.center{
  text-align: center;
}
.modal .codeDisplay{
  display: flex;
  align-self: center;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 20px;
  font-weight: 600;
  background: #FFF;
  border: 0.5px solid #EEE;
  box-shadow: 0px 6px 6px 0px rgba(0, 0, 0, 0.04);
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}
.modal .codeError{
  display: none;
  align-self: center;
  text-align: center;
}
.modal .options {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  height: auto;
  width: 100%;
  gap: 16px;
}
.modal .options a {
  flex-grow: 1;
  width: fit-content;
  justify-content: center;
  box-sizing: border-box;
  text-align: center;
}
.modal .modalDetails{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}
.modal .modalDetails .status img{
  height: 32px;
  width: 32px;
}
.modal .modalDetails .status{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.modal .modalDetails .date{
  display: flex;
  align-items: center;
  text-align: right;
  font-size: 12px;
}
.modal .petName{
  display: inline-block;
  height: 24px;
  font-size: 32px;
  color: #EF943F;
  font-weight: 700;
  text-align: center;
  line-height: 26px;
}
.modal .petDetails{
  display: grid;
  align-self: center;
  width: 100%;
  max-width: 226px;
  grid-template-columns: 32px auto;
  grid-template-rows: auto;
  gap: 16px;
}
.modal .petDetails img{
  height: 32px;
  width: 32px;
  grid-column: 1;
}
.modal .petDetails p{
  width: 100%;
  grid-column: 2;
}
.plan-preview-scroll,
.plan-preview-scroll .plans{
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 256;
  gap: 16px;
}
.plan-preview-scroll .plans .plan{
  width: calc(100% - 16px);
}
.plan-preview-scroll .plans .plan .title{
  margin: none !important;
}