@import url("https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&family=Poiret+One&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sl-focus-ring-color: red !important;

  --large-shadow: 1px 2px 2px hsl(220deg 0% 50% / 0.1),
    2px 4px 4px hsl(220deg 0% 50% / 0.1), 4px 8px 8px hsl(220deg 0% 50% / 0.1),
    8px 16px 16px hsl(220deg 0% 50% / 0.1),
    16px 32px 32px hsl(220deg 0% 50% / 0.1) !important;
  --small-shadow: 1px 2px 2px hsl(220deg 0% 50% / 0.1),
    2px 4px 4px hsl(220deg 0% 50% / 0.1) !important;

  --large-rgb-shadow: 2px 2px 2px rgba(255, 0, 0, 0.1),
    2px 4px 5px rgba(0, 255, 0, 0.1), 4px 8px 8px rgba(0, 0, 255, 0.1) !important;

  --small-rgb-shadow: 1px 2px 1px rgba(255, 0, 0, 0.1),
    2px 4px 2px rgba(0, 255, 0, 0.1), 4px 8px 5px rgba(0, 0, 255, 0.05) !important;

  --sprayloc-glassy-gradient-bg: radial-gradient(
    rgba(23, 23, 23, 0.788) 47%,
    rgba(38, 38, 38, 0.692) 71%
  );
  --sprayloc-glassy-backdrop-filter: blur(5px);
  --sprayloc-glassy-box-shadow: var(--wp--preset--shadow--deep), none;
}

.large-shadow {
  box-shadow: var(--large-rgb-shadow);
}

.box {
  display: block;
  /* padding: 1em; */
  height: fit-content;
  width: fit-content;

  margin-bottom: 1em;
  border-radius: var(--border-radius);
  outline: 1px solid rgba(0, 0, 0, 0.05);
}

#spray-admin-front-end-panel {
  position: fixed;
  bottom: 50px;
  right: 0px;
  z-index: 1;
  color: white;

  padding: 1em;
  padding-left: 1em;

  background-color: black;
}
#rentman-equipment-details {
  container-type: inline-size;
  display: grid;
  grid-template-areas:
    "bread_crums bread_crums"
    "title price"
    "pictures-and-accessories content";
  grid-auto-columns: 50% 50%;
  grid-template-rows: auto auto auto;
  gap: 1em;

  #bread_crums {
    grid-area: bread_crums;
  }

  .pictures-and-accessories {
    grid-area: pictures-and-accessories;
  }

  & h1 {
    font-family: inherit;
    & strong {
      color: var(--wp--preset--color--foreground) !important;
    }
    &.title {
      font-size: 3em;
      margin-bottom: 15px;
      font-weight: 400;
      color: var(--wp--preset--color--primary);

      @media screen and (max-width: 600px) {
        & {
          font-size: 2em;
        }
      }
    }
  }
  & h2 {
    margin-top: 0.3em;
    margin-bottom: 0.6em;
  }
  & hr {
    width: 50%;
    margin: 2em auto;
    color: transparent;
    border: none;
    margin: 12px 0 12px 0;
  }
  & .title {
    grid-area: title;
  }
  & .price {
    grid-area: price;
    display: flex;
    align-items: flex-end;
    margin-bottom: 15px;
  }
  & .content {
    grid-area: content;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;

    gap: 40px;
    /* & > div {
      padding: 0px 10px 20px 10px;
    } */
  }

  & .kit-content {
    position: relative;

    & li {
      position: relative;
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: baseline;
      list-style: none;
      padding: 0.1em 0;
      /* font-weight: bold; */
      & i {
        display: inline-block;
        font-size: 0.9em;
        opacity: 0.7;
      }
      & a {
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-decoration: none;
        &:hover {
          text-decoration: underline;
        }

        & > span.quantity {
          font-size: 0.9em !important;
        }
      }
    }
  }
  & .content {
    position: relative;

    margin-bottom: 1em;
    border-radius: var(--border-radius);
    padding: 0em 0em;
    padding-right: 2em;
    font-size: 0.9em;
    /* outline: 1px solid rgba(0, 0, 0, 0.1) !important; */

    overflow-x: hidden;
    overflow-y: auto;

    & h2 {
      margin: 0 0 5px 0;
      font-size: 1.2em;
      text-transform: uppercase;
      color: var(--wp--preset--color--primary);
    }
    & p {
      display: block;
      margin-bottom: 0.5em;
      /* max-width: 40ch; */
    }
  }

  & .pictures {
    grid-area: pictures;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    align-content: start;
    width: 100%;
    max-width: 500px;
    height: auto;
    gap: 1em;

    & img {
      cursor: zoom-in;
      border-radius: 5px;
      display: block;
      line-height: 0;
      width: 100px;
      height: 100px;
      object-fit: cover;
      outline: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    @container (min-width: 500px) {
      /* max-width: unset; */
      & img {
        width: 130px;
        height: 130px;
      }
    }
  }

  & .accessories {
    grid-area: accessories;
    overflow: hidden;
    max-width: 600px;
    width: fit-content;

    & .accessories_cards {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 0.5em;

      & .card {
        margin-bottom: 1em;
        position: relative;
        width: 150px;

        outline: 1px solid black;
        & a {
          position: relative;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          width: 100%;
          height: 100%;
          color: red !important;
          & .thumbnail {
            position: relative;
            width: 100%;
            height: 100%;
          }
          & img {
            display: block;
            width: 100%;
            height: 100%;
            aspect-ratio: 1/1;
            object-fit: cover;
            outline: 1px solid rgba(0, 0, 0, 0.1) !important;
          }

          & span {
            display: block;
            width: 100%;
            height: 100%;
            aspect-ratio: 1/1;
            background-color: lightgrey !important;
          }

          & .title {
            font-size: 0.8em;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
          }
        }
      }
    }
  }

  @media screen and (max-width: 1000px) {
    & {
      grid-template-areas:
        "bread_crums"
        "title"
        "price"
        "pictures-and-accessories"
        "content";
      grid-auto-columns: 1fr;
    }
  }
}
#bread_crums {
  margin-bottom: 0.3em;

  & a {
    font-weight: thin;
  }
  & span {
    display: inline-block;
    margin: 0 0.25em;
    user-select: none;
    letter-spacing: -0.2em;
  }
}

.glide {
  grid-area: accessories;
}

.gdesc-inner {
  padding: 0em !important;
  padding-left: 0.5em !important;
  border-top: 1px solid gray;
  & .gslide-title {
    font-weight: bold !important;
    margin-block: 0.2em !important;
  }
}
