@import url("widget.css");

/* Retire the previous homepage side banner and reservation/flow buttons. */
.cotomaru-floating-cta {
  display: none !important;
}

.cfd-options--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(620px, 100%);
  gap: 12px;
}

.cfd-launcher {
  position: relative;
  right: auto;
  bottom: auto;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: var(--cfd-banner-height, 150px);
  padding: 18px 18px 18px 190px;
  overflow: hidden;
  background-image: linear-gradient(90deg, transparent 0 31%, rgba(255, 254, 250, .82) 48%, rgba(255, 254, 250, .97) 100%), var(--cfd-banner-image);
  background-position: center;
  background-size: cover;
}

.cfd-launcher:hover,
.cfd-launcher:focus,
.cfd-launcher:focus-visible {
  border-color: rgba(64, 40, 29, .13) !important;
  outline: none !important;
}

.cfd-launcher-wrap {
  position: fixed;
  z-index: 8000;
  right: 24px;
  bottom: 24px;
  width: min(var(--cfd-banner-width, 510px), calc(100vw - 48px));
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 36px));
  transition: transform .56s cubic-bezier(.22, .72, .18, 1), opacity .28s ease;
  will-change: transform, opacity;
}

.cfd-widget.is-visible .cfd-launcher-wrap {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cfd-dismiss-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cfd-dismiss-toggle:checked + .cfd-launcher-wrap { display: none; }

.cfd-launcher-close {
  position: absolute;
  z-index: 2;
  top: -36px;
  right: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #777;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: transform .18s ease, color .18s ease;
}

.cfd-launcher-close:hover,
.cfd-launcher-close:focus-visible {
  transform: scale(1.08);
  background: transparent;
  color: #444;
  outline: 2px solid rgba(119, 119, 119, .35);
  outline-offset: 2px;
}

.cfd-widget.is-dismissed .cfd-launcher-wrap { display: none; }

.cfd-launcher__icon { display: none; }
.cfd-launcher__copy {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(255, 254, 250, .78);
  text-align: center;
}
.cfd-launcher__cta {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  width: max-content;
  padding-right: 12px;
  padding-left: 12px;
  text-align: center;
}
.cfd-launcher__copy strong {
  color: var(--ink) !important;
  font-size: 16px;
  line-height: 1.4;
  text-shadow: none;
}
.cfd-launcher__copy small { display: none; }

.cfd-widget--embedded {
  width: min(var(--cfd-banner-width, 510px), calc(100% - 40px));
  margin: 92px auto 0;
}

.cfd-launcher.cfd-launcher--embedded {
  width: 100%;
  margin: 0;
}

.cfd-options--three .cfd-option {
  min-height: 175px;
  padding-inline: 10px;
}

.cfd-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto 18px;
}

.cfd-result-card {
  overflow: hidden;
  border: 1px solid #d8d0c4;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(64, 40, 29, .12);
}

.cfd-result-card .cfd-result__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.cfd-result-card__body {
  padding: 15px;
}

.cfd-result-card h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
}

.cfd-result-card .cfd-result__reason {
  margin-bottom: 12px;
  font-size: 13px;
}

.cfd-result-card .cfd-tags {
  margin-bottom: 13px;
}

.cfd-result-card .cfd-cta {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 13px;
}

@media (max-width: 620px) {
  .cfd-launcher-wrap {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }

  .cfd-launcher {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) clamp(150px, 34vw, 168px);
    min-height: 86px;
    padding: 10px 10px 10px 118px;
    background-image: linear-gradient(90deg, transparent 0 23%, rgba(255, 254, 250, .88) 43%, rgba(255, 254, 250, .98) 100%), var(--cfd-banner-image);
  }

  .cfd-launcher__copy strong {
    font-size: 15px;
  }

.cfd-widget--embedded {
    width: calc(100% - 40px);
    margin-top: 58px;
  }

  .cfd-options--three {
    grid-template-columns: 1fr;
  }

  .cfd-options--three .cfd-option {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    min-height: 92px;
    text-align: left;
  }

  .cfd-options--three .cfd-option__icon {
    grid-row: 1 / 3;
    min-height: 0;
    margin: 0;
    font-size: 30px;
    text-align: center;
  }

  .cfd-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cfd-launcher-wrap {
    transition: none;
  }
}
