/* Kupni.cz – Podobné kupony 1.1.8. Styles are scoped; WPCD cards remain untouched. */
.krc-section {
  --krc-green: #168043;
  --krc-green-hover: #0e6935;
  --krc-green-soft: #d1efdf;
  --krc-text: #17212f;
  box-sizing: border-box;
  max-width: 100%;
  margin: 28px 0;
  padding: 0;
  border-radius: 16px;
  background: #f8fafc;
  color: var(--krc-text);
  font-family: inherit;
}
.krc-section *, .krc-section *::before, .krc-section *::after { box-sizing: border-box; }
.krc-heading {
  margin: 0 0 20px !important;
  padding: 0 !important;
  color: #171717 !important;
  font-size: 24px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: -.015em;
}
.krc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.krc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8ebee;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(23, 33, 47, .045);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.krc-card:hover {
  border-color: #d8e1db;
  box-shadow: 0 4px 14px rgba(23, 33, 47, .07);
}
.krc-card__main {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 12px;
  min-height: 180px;
  padding: 16px 16px 17px;
  background: transparent;
}
.krc-discount {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  max-width: 48%;
  min-width: 64px;
  padding: 10px 11px;
  border-radius: 9px;
  background: #fff1e6;
  color: #f05b12;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.krc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 17px 55px 0 32px;
  text-align: center;
}
.krc-logo--link {
  color: inherit !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: opacity .16s ease;
}
.krc-logo--link:hover { opacity: .8; }
.krc-logo--link:focus-visible {
  outline: 2px solid var(--krc-green) !important;
  outline-offset: 2px;
  border-radius: 4px;
}
.krc-logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 110px !important;
  max-height: 48px !important;
  border: 0 !important;
  box-shadow: none !important;
  object-fit: contain;
}
.krc-logo__text {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.krc-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 46px;
  max-height: 46px;
  margin: 0 !important;
  padding: 0 !important;
  color: #141c2b !important;
  text-align: center;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.52 !important;
}
.krc-title__link {
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  text-decoration: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.krc-title__link:hover,
.krc-title__link:focus-visible {
  color: var(--krc-green-hover) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.krc-title__link:focus-visible { outline: 2px solid var(--krc-green) !important; outline-offset: 2px; }
.krc-card__bottom {
  position: relative;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 12px 14px 14px;
  background: transparent;
  border-radius: 0;
}
.krc-card__bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  border-top: 1px dashed #e3e7ea;
  pointer-events: none;
}
.krc-cta {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 11px 66px 11px 11px;
  overflow: hidden;
  border: 1px solid var(--krc-green) !important;
  border-radius: 8px;
  background: var(--krc-green) !important;
  color: #fff !important;
  text-align: center !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.krc-cta:hover, .krc-cta:focus {
  border-color: var(--krc-green-hover) !important;
  background: var(--krc-green-hover) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(22, 128, 67, .14) !important;
}
.krc-cta:focus-visible { outline: 3px solid #a6dbbc !important; outline-offset: 2px !important; }
.krc-peel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 57px;
  padding: 0 3px 0 8px;
  border-radius: 0 6px 6px 0;
  background: #fff;
  color: var(--krc-green-hover);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.krc-peel::before {
  position: absolute;
  content: '';
  top: 0;
  bottom: 0;
  left: -11px;
  width: 21px;
  background: var(--krc-green-soft);
  clip-path: polygon(0 50%, 62% 0, 100% 100%);
  pointer-events: none;
}
/* Reveal overlay remains isolated from the WPCD coupon layout. */
.krc-dialog[hidden], .krc-dialog [hidden] { display: none !important; }
.krc-dialog, .krc-dialog * { box-sizing: border-box; }
.krc-dialog {
  --krc-green: #168043;
  --krc-green-hover: #0e6935;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(10, 20, 28, .62);
}
.krc-dialog__panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  margin: auto;
  padding: 30px;
  border: 1px solid #e3e8e5;
  border-radius: 16px;
  background: #fff;
  color: #17212f;
  font-family: inherit;
  text-align: center;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .2);
}
.krc-dialog__close {
  position: absolute;
  top: 11px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: #62716c !important;
  font-size: 29px;
  font-weight: 400;
  cursor: pointer;
}
.krc-dialog__close:hover { background: #f1f4f2 !important; color: #17212f !important; }
.krc-dialog__eyebrow {
  margin: 0 34px 9px;
  color: var(--krc-green-hover);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.krc-dialog__title {
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: #17212f !important;
  font-size: 23px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
}
.krc-dialog__description {
  margin: 0 0 22px;
  color: #5d6772;
  font-size: 14px;
  line-height: 1.55;
}
.krc-dialog__terms {
  margin: 12px 0 16px;
  padding: 15px 17px;
  border: 1px solid #e1ebe5;
  border-radius: 10px;
  background: #f8fafc;
  color: #273345;
  text-align: left;
}
.krc-dialog__terms-title {
  margin: 0 0 9px !important;
  padding: 0 !important;
  color: #17212f !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}
.krc-dialog__terms-body {
  max-height: 210px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
  color: #465362;
}
.krc-dialog__terms-body p { margin: 0 0 9px !important; padding: 0 !important; }
.krc-dialog__terms-body p:last-child { margin-bottom: 0 !important; }
.krc-dialog__terms-body ul,
.krc-dialog__terms-body ol { margin: 5px 0 9px 20px !important; padding: 0 !important; }
.krc-dialog__terms-body li { margin: 0 0 4px !important; padding: 0 !important; }
.krc-dialog__terms-body a { color: var(--krc-green-hover) !important; text-decoration: underline !important; }
.krc-dialog__terms-body a:hover { color: var(--krc-green) !important; }
.krc-dialog__codegroup {
  display: flex;
  align-items: stretch;
  gap: 9px;
  min-width: 0;
}
.krc-dialog__code {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 10px 12px;
  border: 2px dashed #88c9a5;
  border-radius: 9px;
  background: #f2faf5;
  color: #17212f;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
  user-select: text;
}
.krc-dialog__copy {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 12px 19px;
  border: 1px solid var(--krc-green) !important;
  border-radius: 9px;
  background: var(--krc-green) !important;
  color: #fff !important;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  cursor: pointer;
}
.krc-dialog__copy:hover, .krc-dialog__copy:focus { background: var(--krc-green-hover) !important; border-color: var(--krc-green-hover) !important; color: #fff !important; }
.krc-dialog__status {
  min-height: 20px;
  margin: 8px 0 7px;
  color: var(--krc-green-hover);
  font-size: 12px;
  line-height: 1.4;
}
.krc-dialog__status--error { color: #bb4b21; }
.krc-dialog__message {
  margin: 13px 0 13px;
  color: #66717d;
  font-size: 12px;
  line-height: 1.5;
}
.krc-dialog__store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid #c9ddd2;
  border-radius: 8px;
  background: #f3faf6;
  color: var(--krc-green-hover) !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none !important;
}
.krc-dialog__store:hover { border-color: var(--krc-green); background: #e5f4eb; }
.krc-dialog__close:focus-visible, .krc-dialog__copy:focus-visible, .krc-dialog__store:focus-visible, .krc-dialog__code:focus-visible { outline: 3px solid #9bd9b6 !important; outline-offset: 2px; }
@media (max-width: 460px) {
  .krc-dialog { padding: 12px; }
  .krc-dialog__panel { padding: 27px 17px 20px; border-radius: 13px; max-height: calc(100dvh - 24px); }
  .krc-dialog__terms { padding: 12px; }
  .krc-dialog__terms-body { max-height: 180px; }
  .krc-dialog__title { font-size: 21px !important; }
  .krc-dialog__codegroup { flex-direction: column; }
  .krc-dialog__code { font-size: 22px; }
  .krc-dialog__copy { width: 100%; }
}
@media (max-width: 840px) {
  .krc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .krc-heading { font-size: 22px !important; }
}
@media (max-width: 560px) {
  .krc-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .krc-section { margin: 22px 0; }
  .krc-heading { margin-bottom: 16px !important; font-size: 20px !important; }
  .krc-card__main { min-height: 166px; }
  .krc-logo { min-height: 73px; }
  .krc-card__bottom { padding: 12px 14px 14px; }
  .krc-cta { font-size: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .krc-card, .krc-logo--link, .krc-cta { transition: none; }
}
