@import url('https://fonts.googleapis.com/css2?family=Playwrite+IN&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&family=Quicksand:wght@300..700&display=swap');

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #a21db19c;
  border-radius: 5px;
  transition: 0.3s;
  margin-right: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a31db1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
  letter-spacing: 0.5px;
}

body {
  background-color: #F2DFE2;
  display: flex;
  align-items: center;
  flex-direction: column;
  /* min-height: 100dvh; */
  padding: 40px 20px;
  padding-bottom: 60px;
  overflow: hidden;
  overflow-y: auto;
  position: relative;
  color: black;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  max-width: 650px;
  margin: 0 auto;
}

img {
  pointer-events: none;
}

body::before {
  content: "";
  display: block;
  background-color: #F2DFE2;
  background-image: radial-gradient(circle, #F2DFE2 60% 60%, #a31db1 100%);
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

@keyframes rainbow {
  0% {
    background-position: 0% 82%
  }

  50% {
    background-position: 100% 19%
  }

  100% {
    background-position: 0% 82%
  }
}

body::after {
  content: "";
  display: block;
  background-image: url(../images/bg1.jpg);
  background-size: cover;
  position: fixed;
  inset: 0;
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

@keyframes dialog-show {
  from {
    transform: scale(.75) translateY(20px);
  }

  to {
    transform: scale(1) translateY(0px);
  }
}

@keyframes dialog-hide {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(.75);
  }
}

dialog {
  position: fixed;
  width: 400px;
  height: 250px;
  margin: auto;
  inset: 0;
  padding: 0;
  border-radius: 20px;
  background-color: #2a2e32;
  box-shadow: 0 5px 70px #00000091;
  border: 1px solid #495057;
}

dialog[inert]:not([open]) {
  display: flex;
  pointer-events: none;
  opacity: 0;

  animation: dialog-hide 0.3s forwards;
  animation-timing-function: cubic-bezier(.5, -.5, .1, 1.5);
}

dialog[open] {
  animation: dialog-show 0.3s forwards;
}

dialog::backdrop {
  backdrop-filter: blur(10px);
  background-color: #46464642;
}

#profile {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #000000;
  box-shadow: 0 1px 10px #00000047;
}

.decoration-profile {
  width: 160px;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  font-family: "Playwrite IN", cursive;
}

body>h2 {
  font-size: 17px;
  line-height: 19px;
  font-weight: 400;
  margin-bottom: 25px;
  font-family: "Playwrite IN", cursive;
}

body>p.summary {
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
  margin: 20px 0;
}

button.pix {
  display: flex;
  align-items: center;
  border-radius: 15px;
  border: none;
  padding: 10px 15px;
  margin-top: 60px;
  width: 100%;
  gap: 15px;
  cursor: pointer;
  background-color: white;
  box-shadow: 0 0 10px #a31db12e;
  outline: 3px solid transparent;
  transition: outline 0.3s ease;
}

button.pix:focus,
button.pix:hover {
  outline-color: #a31db1;
}

button.pix.copied {
  outline-color: #4CAF50;
}

button.pix>img {
  width: 50px;
  height: 50px;
}

button.pix>.infos {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: start;
}

button.pix>.infos>.code {
  font-size: 17px;
  font-weight: 600;
}

button.pix>.infos>.name {
  font-size: 15px;
  line-height: 19px;
}

button.pix>.infos>.copy-default,
button.pix>.infos>.copy-success {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  margin-top: 5px;
}

button.pix>.infos>.copy-default {
  display: inline;
  color: #a31db1;
}

button.pix>.infos>.copy-success {
  display: none;
  color: #4CAF50;
}

button.pix.copied>.infos>.copy-default {
  display: none;
}

button.pix.copied>.infos>.copy-success {
  display: inline;
}

#products {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 50px;
}

#products>h2 {
  text-align: center;
  font-size: 30px;
  color: #a31db1;
  text-shadow:
    2px 2px 0px rgba(111, 9, 123, 0.2),
    4px 4px 0px rgba(111, 9, 123, 0.1);
  display: flex;
  gap: 5px;
  justify-content: center;
}

#products>h2>img {
  display: inline;
  width: 30px;
  height: 30px;
  position: relative;
  top: 2px;
}

#products>p {
  text-align: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
}

#products>p>em {
  font-size: 14px;
  line-height: 20px;
}

#products>.list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

#products>.list>div {
  display: flex;
  align-items: center;
  border-radius: 15px;
  border: none;
  padding: 10px 15px 10px 10px;
  width: 100%;
  gap: 15px;
  cursor: pointer;
  background-color: white;
  box-shadow: 0 0 10px #a31db12e;
  outline: 3px solid transparent;
  transition: outline 0.3s ease;
}

#products>.list>div:focus,
#products>.list>div:hover {
  outline-color: #a31db1;
}

#products>.list>div>.icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 15px;
  outline: 2px solid rgba(128, 128, 128, 0.2);
  background: white;
  padding: 4px;
}

#products>.list>div>.infos {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: start;
  gap: 8px;
}

#products>.list>div>.infos>.name {
  font-size: 19px;
  font-weight: 600;
}

#products>.list>div>.infos>.owner {
  font-size: 17px;
  line-height: 19px;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#products>.list>div.available>.infos>.owner {
  color: #a31db1;
  font-weight: 600;
}

#products>.list>div.another>.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 41px;
  line-height: 41px;
  color: #a31db1;
}

#products>.list>div.custom>.icon {
  padding: 15px;
}

.decoration-footer {
  width: 160px;
  transform: rotate(-2deg);
}

body>.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

body>.hearts>div {
  position: absolute;
  top: -100%;
  width: var(--size);
  height: var(--size);
  left: var(--left);
  background-color: #c169c4;
  opacity: 0.6;
  animation: heart-animation 15s ease-in infinite;
  animation-delay: var(--delay);
}

@keyframes heart-animation {
  from {
    top: -30px;
    transform: rotate(-45deg) scale(0.4);
  }

  to {
    top: 110vh;
  }
}

body>.hearts>div:before {
  position: absolute;
  top: -50%;
  left: 0;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 100%;
}

body>.hearts>div:after {
  position: absolute;
  top: 0;
  right: -50%;
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: 100%;
}

body>.hearts>div:nth-child(1) {
  --size: 24px;
  --left: 5%;
  --delay: 0s;
}

body>.hearts>div:nth-child(2) {
  --size: 27px;
  --left: 18%;
  --delay: 2s;
}

body>.hearts>div:nth-child(3) {
  --size: 18px;
  --left: 30%;
  --delay: 10.6s;
}

body>.hearts>div:nth-child(4) {
  --size: 30px;
  --left: 43%;
  --delay: 5.1s;
}

body>.hearts>div:nth-child(5) {
  --size: 28px;
  --left: 56%;
  --delay: 6.4s;
}

body>.hearts>div:nth-child(6) {
  --size: 23px;
  --left: 64%;
  --delay: 8.5s;
}

body>.hearts>div:nth-child(7) {
  --size: 19px;
  --left: 73%;
  --delay: 6.2s;
}

body>.hearts>div:nth-child(8) {
  --size: 20px;
  --left: 81%;
  --delay: 12s;
}

body>.hearts>div:nth-child(9) {
  --size: 16px;
  --left: 90%;
  --delay: 7.5s;
}

body>.hearts>div:nth-child(10) {
  --size: 26px;
  --left: 24%;
  --delay: 8.7s;
}

#reservation {
  overflow: hidden;
  width: 450px;
  height: fit-content;
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #fdf4f9 100%);
}

#reservation>form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#reservation>form>header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  background: linear-gradient(135deg, #a31db1 0%, #7b1689 100%);
}

#reservation>form>header>img {
  width: 32px;
  height: 32px;
  filter: grayscale(1) brightness(2);
}

#reservation>form>header>h4 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#reservation>form>header>.close {
  justify-content: center;
  display: flex;
  align-items: center;
  margin-left: auto;
  border-radius: 30px;
  width: 35px;
  height: 35px;
  padding: 0;
  stroke: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
  stroke-width: 2px;
  border: none;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

#reservation>form>header>.close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(163, 29, 177, 0.5);
}

#reservation>form>main {
  flex: 1;
  display: flex;
  padding: 25px;
  flex-direction: column;
  gap: 25px;
}

#reservation>form .row {
  display: grid;
  gap: 25px;
  grid-template-columns: 1fr 120px;
}

#reservation>form .input-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #2c2c2c;
  flex: 1;
  padding: 2px;
  margin: -2px;
}

#reservation>form .input-label>span {
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: #2c2c2c;
}

#reservation>form .input-label>span>small {
  opacity: 0.5;
}

#reservation>form .input-label>input {
  background-color: #ffffff;
  color: #2c2c2c;
  border: 2px solid #e0b3e6;
  font-size: 18px;
  line-height: 22px;
  border-radius: 10px;
  padding: 12px 15px;
  height: 48px;
  font-weight: 600;
  box-sizing: border-box;
  flex: 1;
  outline: 1px solid transparent;
  transition: all 0.3s ease;
}

#reservation>form .input-label>.input-file {
  position: relative;
  background-color: #ffffff;
  border: 2px solid #e0b3e6;
  padding: 6px;
  border-radius: 10px;
  font-size: 17px;
  height: 48px;
  flex: 1;
  cursor: pointer;
  box-sizing: border-box;
  outline: 1px solid transparent;
  transition: all 0.3s ease;
}

#reservation>form .input-label>.input-file>div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 8px;
}

#reservation>form .input-label>.input-file>div>img {
  width: 23px;
  height: 23px;
  filter: grayscale(1) brightness(0.3);
}

#reservation>form .input-label>.input-file>div>span {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2c2c2c;
}

#reservation>form .input-label>.input-file>img {
  width: 25px;
  height: 25px;
  filter: grayscale(1) brightness(0.3);
}

#reservation>form .input-label>.input-file>input {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
}

#reservation>form .input-label>input:hover,
#reservation>form .input-label>.input-file:hover {
  border-color: #a31db1;
  box-shadow: 0 0 10px rgba(163, 29, 177, 0.3);
}

#reservation>form .input-label>input:focus,
#reservation>form .input-label>.input-file:focus-within {
  border-color: #c43dcc;
  box-shadow: 0 0 15px rgba(196, 61, 204, 0.5);
}

#reservation>form>footer {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  background-color: #fdf4f9;
  border-top: 2px solid #e0b3e6;
}

#reservation>form>footer>.delete {
  background-color: transparent;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #e63946;
  border-radius: 10px;
  border: 2px solid #f6868e;
  padding: 12px 18px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

#reservation>form>footer>.delete:hover {
  border-color: #e63946;
  background-color: rgba(230, 57, 70, 0.08);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.25);
}

#reservation>form>footer>.cancel {
  background-color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #6c757d;
  margin-right: auto;
  border-radius: 10px;
  border: 2px solid #e0b3e6;
  padding: 12px 18px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

#reservation>form>footer>.cancel:hover {
  background-color: #e9ecef;
  border-color: #a31db1;
  color: #495057;
  box-shadow: 0 0 10px rgba(163, 29, 177, 0.15);
}

#reservation>form>footer>.confirm {
  background: linear-gradient(135deg, #a31db1 0%, #7b1689 100%);
  font-size: 16px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  border-radius: 10px;
  border: 2px solid #c43dcc;
  padding: 12px 18px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

#reservation>form>footer>.confirm:hover {
  box-shadow: 0 0 20px rgba(163, 29, 177, 0.6);
  transform: translateY(-2px);
  border-color: #d65de3;
}

#reservation>form>footer>.confirm.loading,
#reservation>form>footer>.delete.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
  opacity: 0.7;
}

#reservation>form>footer>.confirm.loading::after,
#reservation>form>footer>.delete.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

#reservation>form>footer>.delete.loading::after {
  border-top-color: #e63946;
}

@keyframes spinner {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#reservation>form>header>button:hover,
#reservation>form>footer>button:hover {
  box-shadow: 0 0 2px 6px rgba(163, 29, 177, 0.15);
}

@media (max-width: 500px) {
  #reservation {
    width: 95vw;
    max-width: 95vw;
    margin: auto;
    top: auto;
    bottom: 20px;
    transform: translateY(0);
  }

  #reservation[open] {
    animation: dialog-show-mobile 0.3s forwards;
  }

  @keyframes dialog-show-mobile {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

  #reservation>form>header,
  #reservation>form>main,
  #reservation>form>footer {
    padding: 20px 15px;
  }

  #reservation>form>header>h4 {
    font-size: 20px;
  }

  #reservation>form>header>img {
    width: 28px;
    height: 28px;
  }

  #reservation>form>header>.close {
    width: 32px;
    height: 32px;
  }

  #reservation>form .row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #reservation>form .input-label>span {
    font-size: 15px;
  }

  #reservation>form>footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  #reservation>form>footer>.cancel {
    display: none;
  }

  #reservation>form>footer>.confirm,
  #reservation>form>footer>.delete {
    width: 100%;
  }
}

@media (max-width: 380px) {
  #reservation {
    width: 98vw;
  }

  #reservation>form>header,
  #reservation>form>main,
  #reservation>form>footer {
    padding: 10px 12px;
  }

  #reservation>form>header>h4 {
    font-size: 18px;
  }
}