/* =====================================================================
   v30: bilde av flasken, tydelig og lett å nå
   ===================================================================== */
.sr-file {
  position: absolute !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.photocard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 24px;
  padding: 18px;
  background: var(--garnet);
  color: #fff;
  border-radius: 14px;
}
.photocard-text b {
  display: block;
  font-family: var(--title);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.photocard-text span {
  font-size: 15.5px;
  opacity: 0.95;
}
.photocard-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.photobtn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  min-height: 52px !important;
}
.photocard .btn:not(.quiet) {
  background: #fff !important;
  color: var(--garnet) !important;
  border-color: #fff !important;
}
.photocard .btn:not(.quiet):hover {
  background: var(--pink) !important;
}
.photocard .btn.quiet {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
}
.photocard .btn.quiet:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}
.photocard .photobtn:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 2px;
}

/* the photo window */
.photo-intro {
  font-size: 16.5px;
  margin: 0 0 16px;
}
.photo-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.photo-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-height: 150px;
  padding: 18px;
  background: #fff;
  border: 2px solid var(--rule);
  border-radius: 14px;
  cursor: pointer;
  color: var(--ink);
}
.photo-choice:hover,
.photo-choice:focus-visible {
  border-color: var(--garnet);
  background: var(--pink);
  outline: none;
}
.photo-choice b {
  font-size: 17.5px;
}
.photo-choice small {
  font-size: 14px;
  color: var(--stone);
}
.pc-ico {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--garnet);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.photo-drop {
  margin: 14px 0;
  padding: 18px;
  border: 2px dashed var(--rule);
  border-radius: 12px;
  text-align: center;
  color: var(--stone);
  font-size: 15px;
}
.photo-drop.over {
  border-color: var(--garnet);
  background: var(--pink);
  color: var(--garnet);
}
.photo-tips {
  margin: 0 0 10px;
}
.photo-tips summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--garnet);
}
.photo-tips ul {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 15px;
}
.photo-again {
  margin: 14px 0 0;
}
.photo-btn {
  cursor: pointer;
  font: inherit;
}

/* always within reach: header button on large screens, round button on phones */
.photolink {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.photofab {
  display: none;
}
@media (max-width: 760px) {
  .photolink {
    display: none !important;
  }
  .photofab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: fixed;
    right: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 74;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 0;
    background: var(--garnet);
    color: #fff;
    box-shadow: 0 6px 18px rgba(28, 23, 21, 0.28);
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
  }
  body.has-dock .photofab {
    bottom: calc(132px + env(safe-area-inset-bottom));
  }
  body.modal-open .photofab,
  body.sheet-open .photofab {
    display: none;
  }
  .totop {
    right: auto !important;
    left: 14px;
  }
  .photo-drop {
    display: none;
  }
  .photo-choice {
    min-height: 130px;
    padding: 14px;
  }
  .photocard-text b {
    font-size: 21px;
  }
}
@media (max-width: 360px) {
  .photo-choices,
  .photocard-btns {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 961px) {
  .top {
    grid-template-columns: 1fr auto auto auto auto !important;
  }
  .top .tabs {
    grid-column: 2;
  }
  .photolink {
    grid-column: 3;
    justify-self: end;
  }
  .helplink:not(.photolink) {
    grid-column: 4;
  }
  .top .modeswitch {
    grid-column: 5;
  }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .helplink span {
    display: none;
  }
}
body[data-view="hjem"] .photofab {
  display: none !important;
}
.photolink span::after {
  content: " av flaske";
}
@media (max-width: 1180px) {
  .photolink span::after {
    content: "";
  }
}
