/*
Web made by Ondis

          ______
     ____|_[]__|_
    |  _        _|
    '-(O)======(o)'
*/

.cms-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--muted);
}
.cms-empty h3 {
  color: var(--text);
  margin-bottom: 12px;
}
.cms-empty p {
  max-width: 500px;
  margin: auto;
}
.cms-dialog {
  position: fixed;
  inset: 0;
  border: 0;
  border-radius: 20px;
  width: min(780px, calc(100% - 28px));
  max-height: 90svh;
  margin: auto;
  padding: 0;
  box-shadow: 0 20px 90px #0004;
  color: var(--text);
  font: inherit;
  overflow: auto;
}
.cms-dialog::backdrop {
  background: #10150ee0;
}
.cms-close {
  position: sticky;
  top: 12px;
  display: block;
  margin: 12px 14px 0 auto;
  border: 1px solid #e0e4d8;
  border-radius: 30px;
  background: #fff;
  padding: 9px 16px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  z-index: 1;
}
.cms-detail {
  padding: 16px 32px 36px;
}
.cms-detail h2 {
  font-size: clamp(25px, 5vw, 38px);
  line-height: 1.2;
  margin: 12px 0 20px;
}
.cms-lead {
  font-size: 18px;
  line-height: 1.7;
  margin: 16px 0;
}
.cms-meta {
  color: #977221;
  font-size: 13px;
}
.cms-price {
  font-size: 18px;
  font-weight: 800;
  margin: 15px 0;
}
.cms-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 20px 0;
  line-height: 1.8;
}
.cms-specs {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  background: #f7f8f2;
  border-radius: 10px;
  padding: 18px;
  gap: 8px;
  font-size: 14px;
  margin: 20px 0;
}
.cms-specs dt {
  color: #78826b;
}
.cms-specs dd {
  margin: 0;
}
.cms-gallery {
  display: grid;
  gap: 15px;
  margin: 24px 0;
}
.cms-gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.cms-contact {
  display: inline-block;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 20px 12px;
}
.cms-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.cms-crop-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}
.cms-service-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin: 18px 0;
}
.cms-machine {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.cms-machine-body {
  padding: 25px;
}
.cms-machine h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 8px 0;
}
.cms-machine-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0;
}
.cms-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.cms-external {
  font-size: 13px;
  display: block;
  margin-top: 12px;
  color: var(--gold-dark);
  font-weight: 700;
}
.cms-text-button {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.cms-news {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.cms-news .novinka-body {
  padding: 25px;
}
.cms-news .novinka-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 15px;
}
.cms-news .novinka-kategorie {
  color: var(--gold-dark);
  background: var(--gold-pale);
  border-radius: 20px;
  padding: 3px 9px;
}
.cms-news .novinka-datum {
  color: var(--muted);
}
.cms-news .novinka-title {
  font-size: 20px;
  margin-bottom: 12px;
}
.cms-news .novinka-perex {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}
.cms-news .novinka-btn {
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 14px;
}
.crop-availability[data-availability="reserved"] {
  color: #79530d;
  background: #fff4d9;
}
.crop-availability[data-availability="sold"] {
  color: #5b616c;
  background: #eef0f3;
}
.cms-crop .plodina-name {
  font-size: inherit;
}
.cms-detail a:focus-visible,
.cms-dialog button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .cms-detail {
    padding: 15px 20px 25px;
  }
  .cms-lead {
    font-size: 16px;
  }
  .cms-machine-body {
    padding: 20px;
  }
  .cms-specs {
    font-size: 12px;
    padding: 13px;
  }
  .cms-specs dd {
    overflow-wrap: anywhere;
  }
}

.cms-dialog[open] {
  animation: cms-dialog-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.cms-dialog[open]::backdrop {
  animation: cms-backdrop-in 0.24s ease both;
}
.cms-dialog.is-closing {
  animation: cms-dialog-out 0.17s ease-in both;
  pointer-events: none;
}
.cms-dialog.is-closing::backdrop {
  animation: cms-backdrop-out 0.17s ease-in both;
}
.cms-dialog.without-motion:not(.is-closing),
.cms-dialog.without-motion:not(.is-closing)::backdrop {
  animation: none;
}
.cms-close {
  min-height: 42px;
  font-weight: 700;
  transition:
    color 0.18s,
    background-color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.cms-close:hover,
.cms-close:focus-visible {
  color: #b4232f;
  background: #fff0f1;
  border-color: #e6a5ab;
  box-shadow: 0 3px 12px #b4232f12;
  transform: translateY(-1px);
}
.cms-close:active {
  transform: translateY(0);
  background: #ffe3e6;
}
.cms-inquiry {
  margin-top: 30px;
  padding: 26px;
  background: #f8f6ee;
  border: 1px solid #eae3d0;
  border-radius: 14px;
}
.cms-inquiry h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text);
}
.cms-inquiry p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.cms-inquiry-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}
.cms-inquiry-actions .btn {
  font-size: 14px;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    background-color 0.18s;
}
.cms-inquiry-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px #0000000c;
}
.cms-inquiry-email {
  font-size: 13px;
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
@keyframes cms-dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes cms-dialog-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}
@keyframes cms-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes cms-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@media (max-width: 600px) {
  .cms-inquiry {
    padding: 20px;
    margin-top: 24px;
  }
  .cms-inquiry h3 {
    font-size: 20px;
  }
  .cms-inquiry p {
    font-size: 14px;
  }
  .cms-inquiry-actions {
    flex-direction: column;
    gap: 10px;
  }
  .cms-inquiry-actions .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cms-dialog[open],
  .cms-dialog[open]::backdrop,
  .cms-dialog.is-closing,
  .cms-dialog.is-closing::backdrop {
    animation: none;
  }
  .cms-close,
  .cms-inquiry-actions .btn {
    transition: none;
  }
  .cms-close:hover,
  .cms-inquiry-actions .btn:hover {
    transform: none;
  }
}

button.cms-inquiry-email {
  display: inline;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.cms-copy-status {
  min-height: 1.6em;
  margin-top: 12px !important;
  font-size: 13px !important;
  color: #45653a !important;
  overflow-wrap: anywhere;
}
.cms-copy-field {
  position: fixed;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  padding: 0;
  border: 0;
  font-size: 16px;
}
.cms-dialog {
  overflow: hidden;
  padding: 8px;
  background: #fff;
}
.cms-scroll {
  max-height: calc(90svh - 16px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: #b9bea9 #f4f5ef;
}
.cms-scroll::-webkit-scrollbar {
  width: 8px;
}
.cms-scroll::-webkit-scrollbar-track {
  background: #f4f5ef;
  border-radius: 8px;
}
.cms-scroll::-webkit-scrollbar-thumb {
  background: #b9bea9;
  border: 2px solid #f4f5ef;
  border-radius: 8px;
}
.cms-scroll::-webkit-scrollbar-thumb:hover {
  background: #929c7c;
}
