:root {
  --image-frame-ratio: 4/3;
  --card-img-ratio: 4/3;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

.frame,
.frame-1x1,
.frame-4x3,
.frame-16x9 {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.frame { aspect-ratio: var(--image-frame-ratio); }
.frame-1x1 { aspect-ratio: 1 / 1; }
.frame-4x3  { aspect-ratio: 4 / 3; }
.frame-16x9 { aspect-ratio: 16 / 9; }

.frame > img,
.frame > picture > img,
.frame-1x1 > img,
.frame-1x1 > picture > img,
.frame-4x3 > img,
.frame-4x3 > picture > img,
.frame-16x9 > img,
.frame-16x9 > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

.ratio > img,
.ratio > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

.card-img-top,
.card-img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--card-img-ratio) !important;
  object-fit: cover !important;
  object-position: center !important;
}

@supports not (aspect-ratio: 4 / 3) {
  .card-img-top,
  .card-img {
    height: 220px !important;
  }
}

.thumb-square {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.thumb-square > img,
.thumb-square > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

.payment-shell {
  padding-block: 2rem;
}

.payment-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.05);
}

.payment-element {
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 0.65rem;
  padding: 1rem;
  background: #fff;
}

.payment-status .alert {
  border-radius: 0.5rem;
}

.payment-summary {
  border: 1px dashed rgba(15, 23, 42, 0.15);
  background: rgba(15, 23, 42, 0.015);
}

.payment-summary__line + .payment-summary__line {
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.payment-summary__totals dt,
.payment-summary__totals dd {
  margin: 0;
}

.payment-maintenance {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.payment-maintenance__icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.22);
  color: var(--bs-warning);
  font-size: 1.35rem;
  flex: 0 0 auto;
}
