.kmu-weekly-offers {
  display: grid;
  gap: 24px;
}

.kmu-weekly-offers__header h3,
.kmu-weekly-offers__list h4,
.kmu-weekly-offers__card h4,
.kmu-weekly-offers__card h5 {
  margin: 0 0 8px;
}

.kmu-weekly-offers__header p,
.kmu-weekly-offers__card p,
.kmu-weekly-offers__list p {
  margin: 0;
}

.kmu-weekly-offers__notice {
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
}

.kmu-weekly-offers__notice--success {
  background: #e6f6ed;
  color: #11653a;
}

.kmu-weekly-offers__notice--error {
  background: #fdecec;
  color: #8d2020;
}

.kmu-weekly-offers__form {
  display: grid;
  gap: 24px;
  padding: 26px;
  border: 1px solid #d7dfd7;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
}

.kmu-weekly-offers__field {
  display: grid;
  gap: 10px;
}

.kmu-weekly-offers__field label {
  font-weight: 600;
}

.kmu-weekly-offers__field input[type="text"],
.kmu-weekly-offers__field input[type="file"],
.kmu-weekly-offers__field select,
.kmu-weekly-offers__field textarea {
  width: 100%;
  border: 1px solid #c7d0c7;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.kmu-weekly-offers__field small {
  color: #586458;
}

.kmu-weekly-offers__current-image {
  display: grid;
  gap: 10px;
}

.kmu-weekly-offers__current-image span {
  font-weight: 600;
}

.kmu-weekly-offers__current-image img {
  width: min(220px, 100%);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #d7dfd7;
}

.kmu-weekly-offers__actions,
.kmu-weekly-offers__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.kmu-weekly-offers__button {
  display: grid !important;
  place-items: center !important;
  min-height: 54px;
  height: 54px;
  border: 0 !important;
  border-radius: 999px;
  padding: 0 18px !important;
  text-decoration: none !important;
  cursor: pointer;
  font-weight: 600;
  line-height: normal !important;
  text-align: center !important;
  vertical-align: middle;
  font-size: 1rem;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.kmu-weekly-offers__button--primary {
  background: #0f6c3b !important;
  color: #fff !important;
}

.kmu-weekly-offers__button--primary:visited,
.kmu-weekly-offers__button--primary:hover,
.kmu-weekly-offers__button--primary:active,
.kmu-weekly-offers__button--primary:focus {
  background: #0f6c3b !important;
  color: #fff !important;
}

.kmu-weekly-offers__button--secondary {
  background: #eef3ee !important;
  color: #203120 !important;
}

.kmu-weekly-offers__button--secondary:visited,
.kmu-weekly-offers__button--secondary:hover,
.kmu-weekly-offers__button--secondary:active,
.kmu-weekly-offers__button--secondary:focus {
  background: #eef3ee !important;
  color: #203120 !important;
}

.kmu-weekly-offers__button--danger {
  background: #a82828 !important;
  color: #fff !important;
}

.kmu-weekly-offers__button--danger:visited,
.kmu-weekly-offers__button--danger:hover,
.kmu-weekly-offers__button--danger:active,
.kmu-weekly-offers__button--danger:focus {
  background: #a82828 !important;
  color: #fff !important;
}

.kmu-weekly-offers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 20px;
  align-items: start;
  justify-content: center;
}

.kmu-weekly-offers__grid--overview {
  grid-template-columns: repeat(auto-fit, minmax(300px, 360px));
  gap: 24px;
}

.kmu-weekly-offers--manage .kmu-weekly-offers__grid--overview {
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
}

.kmu-weekly-offers__card {
  overflow: hidden;
  border: 1px solid #d7dfd7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 55, 34, 0.08);
  width: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.kmu-weekly-offers__card--text-only {
  grid-template-rows: 1fr;
}

.kmu-weekly-offers__card--overview {
  border-radius: 26px;
  border: 1px solid #e7dcc2;
  box-shadow: 0 18px 42px rgba(102, 84, 39, 0.12);
}

.kmu-weekly-offers__card-image {
  aspect-ratio: 9 / 16;
  background: #eef3ee;
  border: 0 !important;
  width: 100%;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
}

.kmu-weekly-offers__card-image--public {
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
}

.kmu-weekly-offers__card-image--overview {
  aspect-ratio: 4 / 5;
  background: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  width: 100%;
  cursor: zoom-in;
}

.kmu-weekly-offers__card-image--overview:hover {
  background: #ffffff !important;
}

.kmu-weekly-offers__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kmu-weekly-offers__card-image--public img {
  object-fit: cover;
}

.kmu-weekly-offers__card-image--overview img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.kmu-weekly-offers__card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
  align-content: start;
}

.kmu-weekly-offers__card-body--public,
.kmu-weekly-offers__card-body--overview {
  grid-template-rows: auto auto auto 1fr auto auto;
  gap: 12px;
  padding: 18px 18px 20px;
}

.kmu-weekly-offers__card--text-only .kmu-weekly-offers__card-body--overview {
  grid-template-rows: auto auto auto auto;
}

.kmu-weekly-offers__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #556455;
}

.kmu-weekly-offers__week-label {
  font-size: 0.92rem;
  line-height: 1.35;
  color: #667666;
}

.kmu-weekly-offers__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dff2e7;
  color: #0f6c3b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.kmu-weekly-offers__partner-title {
  font-size: 1.2rem;
  line-height: 1.15;
  color: #21392f;
  margin: 0;
}

.kmu-weekly-offers__offer-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #a06c12;
  margin: -4px 0 0;
}

.kmu-weekly-offers__description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.45;
}

.kmu-weekly-offers__lightbox[hidden] {
  display: none;
}

.kmu-weekly-offers__lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.kmu-weekly-offers__lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.82);
}

.kmu-weekly-offers__lightbox-dialog {
  position: relative;
  z-index: 2;
  max-width: min(92vw, 760px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kmu-weekly-offers__lightbox-dialog img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  background: #fff;
}

.kmu-weekly-offers__lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 999px;
  background: rgba(23, 48, 39, 0.92) !important;
  color: #ffffff !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  text-align: center !important;
  padding: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  cursor: pointer;
}

.kmu-weekly-offers-lightbox-open {
  overflow: hidden;
}

.kmu-weekly-offers--overview .kmu-weekly-offers__card-actions {
  justify-content: center;
}

.kmu-weekly-offers__card-actions form {
  margin: 0;
}

@media (max-width: 767px) {
  .kmu-weekly-offers__form {
    padding: 18px;
  }

  .kmu-weekly-offers__grid--overview {
    grid-template-columns: minmax(0, 360px);
    gap: 20px;
    justify-content: center;
  }

  .kmu-weekly-offers--manage .kmu-weekly-offers__grid--overview {
    grid-template-columns: minmax(0, 340px);
  }

  .kmu-weekly-offers__grid {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
  }

  .kmu-weekly-offers__actions,
  .kmu-weekly-offers__card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kmu-weekly-offers__button {
    width: 100%;
    min-height: 58px;
    height: 58px;
    padding: 0 18px !important;
  }
}
