:root {
    --clr-white: #ffffff;
    --clr-black: #000000;
    --clr-light: #f5f8ff;
    --clr-light-gray: #c4c3c4;
    --clr-blue: #3f86ff;
    --clr-light-blue: #abcaff;
    --clr-dark-gray: #333333;
    --clr-gray: #777777;
    /* Nová premenná pre hlavnú červenú farbu (brand) */
    --clr-brand: #dc1c13;
  }
  
  /* -------------------------------------------
     ZÁKLADNÉ NASTAVENIA MODÁLNEHO OKNA (CROPBOX)
  ------------------------------------------- */
  .cropbox-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .cropbox {
    background: var(--clr-white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    transition: transform 0.3s ease-in-out;
  }
  
  .cropbox-header {
    display: flex;
    justify-content: flex-end;
  }
  
  .cropbox-body {
    margin: 20px 0;
  }
  
  .cropbox-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .cropbox-footer label {
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
  }
  
  .cropbox-footer input[type="range"] {
    vertical-align: middle;
  }
  /* Tlačidlá a ich obal (crop-buttons) */
.crop-buttons {
    display: flex;
    width: 100%;
    gap: 10px;                  /* medzera medzi tlačidlami */
    justify-content: space-between;
    margin-top: 10px;
  }
  
  /* Tlačidlá Save a Change */
  .btn-save,
  .btn-change {
    font-size: 13px;
    font-family: Manrope, sans-serif;
    font-weight: 600;
    width: 200px;               /* pôvodné 200PX opravené na 200px */
    background: var(--clr-brand); /* namiesto #DC1C13 môžeš použiť: #DC1C13; */
    color: var(--clr-white);
    border: none;              /* zrušenie !important, ak to nie je nevyhnutné */
    margin: 10px 0 0;
    padding: 10px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  /* Hover efekty (ak je potrebné, môžeš pridať focus/active) */
  .btn-save:hover,
  .btn-change:hover,
  .btn-close:hover {
    background: var(--clr-brand);
    color: var(--clr-white);
    transform: scale(1.05);
  }
  
  /* Tlačidlo Close */
  .btn-close {
    background: var(--clr-brand);
    border: none;
    padding: 10px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    color: var(--clr-white);
    font-size: 20px;
    line-height: 1;
  }
  
  /* Slider pre Croppie (Firefox) */
  .cr-slider::-moz-range-thumb {
    width: 20px;
    height: 22px;
    background: var(--clr-brand);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
  }
  
  .cr-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
  }
  
  /* -------------------------------------------
     WC DND FILE UPLOAD COMMON
  ------------------------------------------- */
  .wc-dnd-file-upload label {
    margin-bottom: 0.5rem;
    display: block;
  }
  
  .wc-drag-n-drop-file.d-none {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
  }
  
  /* Stav pre jeden nahratý súbor */
  .wc-dnd-file-upload .dnd-upload-status {
    display: flex;
    padding: 4px 0;
    position: relative;
  }
  
  /* Obrázok (thumbnail) pri nahranom súbore */
  .wc-dnd-file-upload .dnd-upload-image {
    width: 40px;
    height: 40px;
    border: 1px solid var(--clr-light-gray);
    text-align: center;
    border-radius: 8px;
    position: relative;
  }
  
  /* Pre prípad, že má element pozadie (náhľad) */
  .wc-dnd-file-upload .dnd-upload-image.has-bg {
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    border: none;
    transition: transform 0.3s ease;
    max-width: 40px;
    width: 100%;
  }
  
  .wc-dnd-file-upload .dnd-upload-image.has-bg:hover {
    transform: scale(1.5);
  }
  
  .wc-dnd-file-upload .dnd-upload-image span {
    font-size: 16px;
    color: var(--clr-dark-gray);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .wc-dnd-file-upload .dnd-upload-image.no-thumbnail span {
    display: none;
  }
  
  .xdnd-upload-status .dnd-upload-image.no-bg .icon-images {
    display: none;
  }
  
  .wc-dnd-file-upload .dnd-upload-image.no-bg img {
    width: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  /* Náhľad */
  .wc-dnd-file-upload .codedropz--preview .dnd-upload-image {
    width: 100%;
  }
  
  /* Obrázky vo výsledkoch */
  .wc-dnd-file-upload .codedropz--results .dnd-upload-image {
    overflow: hidden;
  }
  
  .wc-dnd-file-upload .codedropz--results .dnd-upload-image.no-bg:not(.no-thumbnail) {
    border: none;
    transition: transform 0.3s ease-in-out;
  }
  
  .wc-dnd-file-upload .codedropz--results .dnd-upload-image.no-bg:hover:not(.no-thumbnail) {
    transform: scale(1.3);
  }
  
  .wc-dnd-file-upload .codedropz--results .dnd-upload-image.no-bg .preview {
    max-width: none;
    width: auto;
    height: 50px;
    background-size: cover;
    background-position: center;
  }
  
  /* Detaily nahratého súboru (názov + error správy) */
  .wc-dnd-file-upload .dnd-upload-details {
    padding-left: 10px;
    width: calc(100% - 40px);
    padding-bottom: 15px;
  }
  
  .wc-dnd-file-upload .dnd-upload-details .name {
    color: var(--clr-blue);
    padding: 0 0 4px;
    padding-right: 25px;
    display: flex;
  }
  
  .wc-dnd-file-upload .dnd-upload-details .name span {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    padding-right: 10px;
  }
  
  .wc-dnd-file-upload .dnd-upload-details .name em {
    color: var(--clr-gray);
    font-weight: 700;
  }
  
  /* Tlačidlo "Odstrániť" */
  .wc-dnd-file-upload .remove-file {
    position: absolute;
    right: 0;
    top: 6px;
    text-decoration: none;
    box-shadow: none;
    outline: none;
    color: var(--clr-dark-gray);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .wc-dnd-file-upload .remove-file:hover {
    color: var(--clr-gray);
  }
  
  /* Error správy */
  .wc-dnd-file-upload .dnd-upload-details span.has-error {
    color: #f50505;
  }
  
  /* PROGRESS BAR */
  .wc-dnd-file-upload .dnd-progress-bar {
    display: block;
    border-radius: 5px;
    overflow: hidden;
    background: var(--clr-light-gray);
    height: 14px;
    margin-top: 5px;
  }
  
  .wc-dnd-file-upload .dnd-progress-bar span {
    background: var(--clr-blue);
    display: block;
    font-size: 11px;
    text-align: right;
    color: var(--clr-white);
    height: 100%;
    width: 0;
    line-height: 13px;
    transition: width 0.2s linear;
  }
  
  .wc-dnd-file-upload .dnd-progress-bar span.complete {
    width: 100% !important;
    padding-right: 5px;
  }
  
  .wc-dnd-file-upload .dnd-upload-counter {
    font-size: 12px;
  }
  
  /* -------------------------------------------
     HLAVNÝ OVLÁDAČ (DRAG-AND-DROP ZÓNA)
  ------------------------------------------- */
  .codedropz-upload-handler {
    width: 100%;
    background-color: var(--clr-white);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    margin: 0 0 0.5rem;
    text-align: center;
    padding: 0.5rem;
  }
  
  .wc-dnd-file-upload .codedropz-upload-inner {
    overflow: hidden;
    width: 100%;
    text-align: center;
    font-weight: inherit;
  }
  
  .wc-dnd-file-upload .cd-upload-btn {
    text-decoration: none;
    box-shadow: none;
    padding: 5px 10px;
    color: var(--clr-white);
    background-color: #010101;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .wc-dnd-file-upload .cd-upload-btn:hover {
    background-color: var(--clr-gray);
    transform: scale(1.05);
  }
  
  .wc-dnd-file-upload .codedropz-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-family: Manrope, sans-serif;
    font-size: 14px;
  }
  
  .wc-dnd-file-upload .cd-separator {
    padding: 0 10px;
  }
  
  .wc-dnd-file-upload .cd-icon {
    font-size: 30px;
    padding-right: 15px;
  }
  
  .wc-dnd-file-upload .codedropz-dragover {
    border-color: var(--clr-dark-gray);
  }
  
  .wc-dnd-file-upload .has-error-msg {
    display: inline-block;
    color: #ff0000;
    padding: 5px 0;
    font-style: italic;
  }
  
  .wc-dnd-file-upload .codedropz--preview {
    display: block;
    align-items: center;
    align-self: center;
    align-content: center;
  }
  
  /* Úprava náhľadu pri "has-bg" */
  .wc-dnd-file-upload .codedropz--preview .dnd-upload-image.has-bg .preview {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 60px;
    height: 40px;
    border-radius: 10px;
  }
  
  /* -------------------------------------------
     TOOLTIP
  ------------------------------------------- */
  .wc-dnd-file-upload__tooltip {
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
    text-transform: uppercase;
  }
  
  .wc-dnd-file-upload__tooltip:hover {
    color: var(--clr-blue);
  }
  
  .wc-dnd-file-upload__tooltip-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-80%, -100%);
    min-width: max-content;
    color: var(--clr-white);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    background-image: linear-gradient(161deg, #421a35 0%, #8e344f 100%);
  }
  
  .wc-dnd-file-upload__tooltip:hover .wc-dnd-file-upload__tooltip-data {
    opacity: 1;
    visibility: visible;
  }
  
  /* -------------------------------------------
     RESPONSIVITY
  ------------------------------------------- */
  @media screen and (max-width: 767px) {
    .dnd-upload-status .dnd-upload-details .name em {
      font-weight: normal;
    }
  
    .dnd-upload-status .dnd-upload-details .name {
      padding-right: 60px;
    }
  
    .codedropz-upload-inner .codedropz-label {
      font-size: 16px;
    }
  }
  
  @media screen and (max-width: 480px) {
    /* 
       Upravíme .cropbox-footer na centrovanie prvkov 
       a použijeme gap na medzeru medzi nimi.
    */
    .cropbox-footer {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem; /* Nastav si podľa potreby (napr. 0.5rem, 1.5rem atď.) */
    }
  
    .codedropz-upload-inner .codedropz-label {
      font-size: 13px;
    }
  
    .codedropz-label .text,
    .codedropz-label .cd-separator,
    .codedropz-label .cd-icon {
      display: none;
    }
  
    .wc-dnd-file-upload__title {
      font-size: 16px;
      margin: 0;
      display: inline-flex;
      align-items: center;
    }
  
    .wc-dnd-file-upload__paragraph {
      font-size: 12px;
    }
  
    .wc-dnd-file-upload__header {
      display: inline-flex;
      align-items: center;
    }
  
    svg {
      width: 40px;
      margin: 0 10px 0 0;
    }
  }
  