/*
 * Campaign page storage grid ("Choose a storage and use the free moving
 * service"), extracted from the live holder.ee inline <style> code block our
 * HTML capture dropped. Scoped to .legal-source (LegalPage wrapper) so the
 * generic class names (.title, .district, .standard…) can't leak elsewhere.
 */

/* Full-bleed grey band like live, without 100vw overflow from the scrollbar. */
.legal-source #section-4-682 {
  box-shadow: 0 0 0 100vmax #f2f2f2;
  clip-path: inset(0 -100vmax);
  padding-bottom: 50px;
}

/* ===== ct_code_block_css_5 ===== */
.legal-source .storage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.legal-source .section-heading {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-source .heading {
  font-size: 1.75rem;
  font-weight: 600;
}

.legal-source .storage-card {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.legal-source .storage-card:hover {
  transform: scale(1.01);
}

.legal-source .card-link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.legal-source .storage-image-wrapper {
  position: relative;
  margin: 0;
}

.legal-source .storage-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.legal-source .storage-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  color: white;
  padding: 4px 10px;
  font-size: 14px;
  border-radius: 4px;
  z-index: 2;
  white-space: nowrap;
}

.legal-source .storage-card-body {
  padding: 1rem;
}

.legal-source .storage-type-text {
  width: fit-content;
  border-radius: 5px;
  text-transform: lowercase;
  font-weight: 600;
  padding: .2rem .5rem;
  margin-bottom: .5rem;
}

.legal-source .konteinerladu {
  background-color: rgba(29, 47, 90, 0.25);
  color: #1D2F5A;
}

.legal-source .standard {
  background-color: rgba(236, 99, 69, 0.25);
  color: #EC6345;
}

.legal-source .basic {
  background-color: rgba(255, 193, 7, 0.25);
  color: #C79100;
}

.legal-source .title {
  color: #000;
  font-weight: 500;
  text-transform: uppercase;
}

.legal-source .district {
  color: #555;
  margin-bottom: 0.25rem;
}

.legal-source .storage-size-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  color: #555;
}

/* Extra .storage-size-wrapper outranks LegalPage's scoped `.legal-source ul/li` spacing. */
.legal-source .storage-size-wrapper .storage-size-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline;
}

.legal-source .storage-size-wrapper .storage-size-list li {
  display: inline-block;
  font-weight: 500;
  margin: 0;
}

@media (max-width: 624px) {
  .legal-source .storage-card {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
  }

  .legal-source .card-link {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: stretch;
  }

  .legal-source .storage-image-wrapper {
    flex: 0 0 150px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
  }

  .legal-source .storage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    vertical-align: middle;
  }

  .legal-source .storage-card-body {
    flex: 1;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .legal-source .storage-size-wrapper {
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .legal-source .storage-image-wrapper {
    flex: 0 0 100px;
  }

  .legal-source .storage-card-badge {
    left: 0px;
    font-size: 12px;
  }
}
