/* Placeholder – ty si to celé prekopneš do svojho dizajnu */
.rc-consent {
  position: fixed;
  left: 36px;
  bottom: 36px;
  z-index: 999999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.rc-consent__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: left;
  justify-content: space-between;
  background: yellow;
  color: black;
  border-radius: 8px;
  padding: 2rem;
  width: 450px;
  box-shadow: 0 3px 9px rgba(0,0,0,.2);
}

.rc-modal__body {
    margin-top: 20px;
}

.rc-consent__title {
  display: flex;
  gap: 14px;
  align-items: center;
}

.rc-consent__title h3 {
    font-weight: 700;
    font-size: 2rem;
    line-height: 2.3rem;
}

.rc-consent__title img {
    width: 70px;
    height: 70px;
}

.rc-common-links {
  font-size: 0.75rem;
}

.rc-common-links a {
  transition: all 0.3s ease;
  text-decoration: underline;
}

.rc-common-links a:hover {
  text-decoration: none;
}

.rc-consent__content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rc-consent__text { 
  font-size: 1rem; 
}

.rc-consent__actions { 
  display: flex; 
  gap: 15px; 
  flex-wrap: wrap; 
}

.rc-btn {
    background: transparent;
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 1rem;
    border: 1px solid black;
    transition: all 0.3s ease;
}

.rc-btn:hover {
    background-color: black;
    color: white;
}

.rc-btn--primary { 
    background: #fff;
    color: #111;
  }

.rc-btn--primary:hover { 
    border-color: black;
}

.rc-btn--ghost { opacity: .85; }


.rc-pos-top { top: 16px; bottom: auto; }
.rc-pos-bottom { bottom: 36px; top: auto; }

.rc-reopen {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 999999;
    width: 60px;
    height: 60px;
    border: 1px solid yellow;
    border-radius: 999px;
    background: yellow;
    cursor: pointer;
    display: none;
    padding: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 9px rgba(0,0,0,.2);
}

.rc-reopen:hover {
  transition: all 0.3s ease;
    border: 1px solid black;
    background: white;
}


/* Reopen 
.rc-reopen{
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 999999;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.2);
  background: #fff;
  cursor: pointer;
  display: none;
}
  */

/* Pozícia baru */
.rc-pos-top { top: 16px; bottom: auto; }
.rc-pos-bottom { bottom: 36px; top: auto; }

/* =========================================================
   Modal (overlay + dialog slide-in)
   ========================================================= */

/* Wrapper */
.rc-modal{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;      /* vertikálne */
  justify-content: center;  /* horizontálne */
  z-index: 9999;

  /* default (closed) */
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
}

/* Open state */
.rc-modal.is-open{
  pointer-events: auto;
  opacity: 1;
}

/* Overlay */
.rc-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .5s ease;
}

.rc-modal.is-open .rc-modal__overlay{
  opacity: 1;
}

.rc-modal__dialog {
    position: relative;
    max-width: 720px;
    width: calc(100% - 32px);
    background: yellow;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    transform: translateY(-120vh);
    opacity: 0;
    transition: transform .5s ease, opacity .5s ease;
    will-change: transform, opacity;
    color: black;
}

.rc-modal.is-open .rc-modal__dialog{
  transform: translateY(0);
  opacity: 1;
}

/* Actions */
.rc-modal__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}


@media (max-height: 550px), (max-width: 450px) {
  .rc-pos-bottom {
    bottom: 0;
  }

  .rc-consent {
    left: 0;
    right: 0;
    width: 100%;
  }

  .rc-consent__inner {
    width: 100%;
    border-radius: 0;
  }

  .rc-modal__dialog {
    height: 100%;
    padding: 20px;
    width: 100%;
    border-radius: 0;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
  }
}


/* Optional: better on very small heights (avoid "stuck center") */
/*
@media (max-height: 550px) {
  .rc-modal{
    align-items: flex-start;
    overflow-y: auto;
    padding: 6vh 0;
  }

  .rc-modal__dialog{
    transform: translateY(-30px);
  }

  .rc-modal.is-open .rc-modal__dialog{
    transform: translateY(0);
  }
}
*/


/* Kategórie */
.rc-cat{ border-top: 1px solid rgba(0,0,0,.1); padding: 12px 0; }
.rc-cat__head{ display:flex; justify-content: space-between; gap: 16px; align-items:center; }
.rc-cat__name{ font-weight: 600; }
.rc-cat__desc{ margin-top: 6px; opacity: .85; }

/* Switch skeleton (ty si to potom vystajluješ) */
.rc-switch{ display:inline-flex; align-items:center; }
.rc-switch input{ 
  width: 44px; 
  height: 24px; 
  cursor: pointer;
}

.rc-switch input[type="checkbox"]:disabled {
  cursor: auto;
}
