/* CLP Quick View modal shell. The compact product page has its own stylesheet. */
.rj-clp-quick-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-sans, "Open Sans", sans-serif);
}
.rj-clp-quick-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(14 18 27 / 65%);
  backdrop-filter: blur(3px);
}
.rj-clp-quick-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 50px minmax(0, 1fr) auto;
  width: min(100%, 900px);
  height: min(530px, calc(100vh - 24px));
  height: min(530px, calc(100dvh - 24px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4ded5;
  box-shadow: 0 24px 70px rgb(0 0 0 / 22%);
}
.rj-clp-quick-header,
.rj-clp-quick-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #fff;
}
.rj-clp-quick-header { border-bottom: 1px solid #e9e3da; }
.rj-clp-quick-header > span {
  color: #a66d0b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
#quickViewClose {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #e5dfd5;
  border-radius: 50%;
  background: #fff;
  color: #27201c;
  font-size: 15px;
  cursor: pointer;
}
#quickViewClose:hover { background: #f7f3ed; }
.rj-clp-quick-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}
.rj-clp-quick-loading {
  position: absolute;
  inset: 50px 0 54px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: #faf8f5;
  color: #7b6e62;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rj-clp-quick-panel:has(.rj-clp-quick-footer[hidden]) .rj-clp-quick-loading { bottom: 0; }
.rj-clp-quick-loader {
  width: 32px;
  height: 32px;
  border: 2px solid #e8d9c0;
  border-top-color: #a66d0b;
  border-radius: 50%;
  animation: rj-quick-spin .8s linear infinite;
}
@keyframes rj-quick-spin { to { transform: rotate(360deg); } }
.rj-clp-quick-footer { min-height: 54px; border-top: 1px solid #e9e3da; }
.rj-clp-quick-footer[hidden] { display: none; }
.rj-clp-quick-footer > span { color: #786e64; font-size: 12px; }
#quickViewFullProduct {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #8d0c10;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
#quickViewFullProduct:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 700px) {
  .rj-clp-quick-modal { padding: 0; }
  .rj-clp-quick-panel {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    grid-template-rows: 50px minmax(0, 1fr) auto;
    border: 0;
  }
  .rj-clp-quick-header,
  .rj-clp-quick-footer { padding: 0 16px; }
  .rj-clp-quick-footer > span { display: none; }
  .rj-clp-quick-footer { justify-content: flex-end; }
}
