/* Calmest rent collection — Casan checkout-stack composition, Casan content */
.casan-rent-stack {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.95;
  min-height: 280px;
  margin-top: 1.5rem;
}

.casan-rent-stack__orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.casan-rent-stack__tile {
  position: absolute;
  z-index: 1;
  border-radius: 0.7rem;
  overflow: hidden;
  background: #0d3a2d;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 14px 28px -12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: scale(0.4) translateY(12px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.7s var(--ease);
}

.casan-rent-stack.is-on .casan-rent-stack__tile {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Brand logos — square, real partner marks */
.casan-rent-stack__tile--logo {
  width: 13.5%;
  aspect-ratio: 1;
  background: #ffffff;
  overflow: hidden;
}

.casan-rent-stack__tile--logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text chips — wide enough for address / status / amount */
.casan-rent-stack__tile--chip {
  width: 30%;
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  background: transparent;
  box-shadow: none;
}

/*
 * Orbit chips — Casan brochure frosted cards (white surface + soft shadow),
 * not dark pine glass. Same chrome language as the Collections core panel.
 */
.casan-rent-stack__chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #0e1615;
  box-shadow:
    0 0 0 1px rgba(14, 22, 21, 0.08),
    0 12px 28px -10px rgba(0, 0, 0, 0.28);
}

.casan-rent-stack__chip strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #0e1615;
  white-space: nowrap;
}

.casan-rent-stack__chip span {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(14, 22, 21, 0.58);
  white-space: nowrap;
}

.casan-rent-stack__chip--warn {
  background: #fffaf2;
  box-shadow:
    0 0 0 1px rgba(180, 83, 9, 0.14),
    0 12px 28px -10px rgba(0, 0, 0, 0.22);
}

.casan-rent-stack__chip--warn strong {
  color: #b45309;
}

.casan-rent-stack__chip--due strong {
  font-size: 0.8rem;
  letter-spacing: -0.03em;
}

/* Positions — keep outside the white core */
.casan-rent-stack__tile:nth-child(1) {
  top: 3%;
  left: 4%;
  transition-delay: 0.05s;
}
.casan-rent-stack__tile:nth-child(2) {
  top: 1%;
  left: 43%;
  transition-delay: 0.12s;
}
.casan-rent-stack__tile:nth-child(3) {
  top: 3%;
  right: 4%;
  transition-delay: 0.18s;
}
.casan-rent-stack__tile:nth-child(4) {
  top: 32%;
  left: 0;
  width: 32%;
  transition-delay: 0.24s;
}
.casan-rent-stack__tile:nth-child(5) {
  top: 34%;
  right: 0;
  width: 30%;
  transition-delay: 0.3s;
}
.casan-rent-stack__tile:nth-child(6) {
  bottom: 3%;
  left: 1%;
  width: 36%;
  transition-delay: 0.36s;
}

.casan-rent-stack__core {
  position: absolute;
  inset: 12% 10% 14% 10%;
  z-index: 2;
  border-radius: 0.85rem;
  background: #fff;
  color: #111;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 28px 60px -24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.88) translateY(18px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.75s var(--ease);
  transition-delay: 0.2s;
}

.casan-rent-stack.is-on .casan-rent-stack__core {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.casan-rent-stack__label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin: 0 0 0.45rem;
}

.casan-rent-stack__list-head {
  padding: 0.75rem 0.8rem 0.55rem;
  border-bottom: 1px solid #ececec;
  flex-shrink: 0;
}

.casan-rent-stack__search {
  display: flex;
  align-items: center;
  height: 1.7rem;
  padding: 0 0.6rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.45rem;
  background: #fafafa;
  font-size: 0.55rem;
  color: #9a9a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.casan-rent-stack__list {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.casan-rent-stack__crow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.42rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  min-width: 0;
}

.casan-rent-stack__crow:last-child {
  border-bottom: 0;
}

.casan-rent-stack__crow.is-paid {
  background: #f0faf4;
}

.casan-rent-stack__crow.is-overdue {
  background: #fff5f5;
}

.casan-rent-stack__crow.is-planned {
  background: #fff;
}

.casan-rent-stack__crow-main {
  min-width: 0;
  flex: 1;
}

.casan-rent-stack__crow-main strong {
  display: block;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.casan-rent-stack__crow-main span {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.5rem;
  color: #8a8a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.casan-rent-stack__crow-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
  flex-shrink: 0;
}

.casan-rent-stack__crow-meta em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #222;
}

.casan-rent-stack__crow.is-overdue .casan-rent-stack__crow-meta em {
  color: #b42318;
}

.casan-rent-stack__crow-meta b {
  display: inline-flex;
  align-items: center;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

.casan-rent-stack__crow-meta b.is-paid {
  color: #0b5c3f;
  background: #d8f3e3;
}

.casan-rent-stack__crow-meta b.is-overdue {
  color: #b42318;
  background: #fde2e0;
}

.casan-rent-stack__crow-meta b.is-planned {
  color: #5c6356;
  background: #eceeea;
}

.casan-rent-stack__cta {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: 3%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 28%;
  border-radius: 0.45rem;
  background: #008060;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  box-shadow:
    0 10px 24px -10px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition:
    opacity 0.45s var(--ease),
    transform 0.55s var(--ease);
  transition-delay: 0.45s;
}

.casan-rent-stack.is-on .casan-rent-stack__cta {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .casan-rent-stack__tile,
  .casan-rent-stack__core,
  .casan-rent-stack__cta {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 767px) {
  .casan-rent-stack {
    margin-top: 0.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .casan-rent-stack__core {
    inset: 16% 6% 18% 6%;
  }
  .casan-rent-stack__crow:nth-child(n + 5) {
    display: none;
  }
  .casan-rent-stack__tile--logo {
    width: 12%;
  }
  .casan-rent-stack__tile:nth-child(4),
  .casan-rent-stack__tile:nth-child(5),
  .casan-rent-stack__tile:nth-child(6) {
    width: 34%;
  }
  .casan-rent-stack__chip {
    padding: 0.45rem 0.55rem;
  }
  .casan-rent-stack__chip strong {
    font-size: 0.62rem;
  }
  .casan-rent-stack__chip span {
    font-size: 0.52rem;
  }
  .casan-rent-stack__cta {
    min-width: 34%;
    font-size: 0.55rem;
    padding: 0.45rem 0.55rem;
  }
}
