/**

 * Arkusz stylów dla banera cookie

 */



/* Podstawowe style banera */

.cc-ps-cookies-banner {

    font-family: Arial, sans-serif;

    font-size: 14px;

    line-height: 1.5;

    position: fixed;

    z-index: 99999;

    background-color: #ffffff;

    color: #000000;

    transition: all 0.3s ease;

}



.cc-ps-cookies-container {

    padding: 0px;

}



.cc-ps-cookies-header h3 {

    margin-top: 0;

    font-size: 18px;

    font-weight: bold;

}



.cc-ps-cookies-message {

    margin-bottom: 15px;

    color:#000;

}



.cc-ps-cookies-groups {

    margin-bottom: 15px;

    overflow-y: scroll;

    max-height: 300px;

}



.cc-ps-cookies-group {

    margin-bottom: 10px;

    border-bottom: 1px solid rgba(0,0,0,0.1);

    padding-bottom: 10px;

}



.cc-ps-cookies-group-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.cc-ps-cookies-group-header .form-check-label {

    padding-left: 0!important;

}



.cc-ps-cookies-group-name {

    font-weight: bold;

    margin-left: 5px;

}



.cc-ps-cookies-group-required {

    font-size: 12px;

    opacity: 0.7;

    margin-left: 5px;

}



.cc-ps-cookies-group-toggle {

    background: none;

    border: none;

    cursor: pointer;

}



.cc-ps-cookies-group-description {

    font-size: 13px;

    margin-top: 5px;

    margin-bottom: 10px;

}



.cc-ps-cookies-buttons {

    display: flex;

    justify-content: space-between;

    margin-top: 20px;

}



.cc-ps-cookies-buttons .btn {

    margin-right: 10px;

    padding: 8px 16px;

    border-radius: 4px;

    font-size: 14px;

    cursor: pointer;

    border: none;

    text-transform: uppercase!important;

    font-weight: 400;

}



.cc-ps-cookies-buttons .btn:last-child {

    margin-right: 0;

}



.cc-ps-cookies-buttons .btn-primary {

    background-color: #28a745;

    color: #fff;

}



.cc-ps-cookies-buttons .btn-secondary {

    background-color: #3986df;

    color: #fff;

}



.cc-ps-cookies-buttons .btn-danger {

    background-color: #dc3545;

    color: #fff;

}



/* Style dla grup plików cookie */

.cc-ps-cookies-list {

    list-style: none;

    padding-left: 0px;

    margin-top: 10px;

    font-size: 12px;

}



.cc-ps-cookies-item {

    margin-bottom: 15px!important;

}



.cc-ps-cookies-item-header {

    font-weight: bold;

}



.cc-ps-cookies-item-blocked {

    color: #dc3545;

    font-size: 11px;

    margin-left: 5px;

}



.cc-ps-cookies-item-description {

    font-size: 11px;

    opacity: 0.8;

    margin-top: 3px;

}



.cc-ps-cookies-no-cookies {

    font-style: italic;

    opacity: 0.7;

    font-size: 12px;

    margin-left: 0px;

}



/* Styles dla mini-banera (ikonka po zaakceptowaniu) */

.cc-ps-cookies-mini-banner {

    position: fixed;

    bottom: 20px;

    right: 20px;

    z-index: 999;

    background-color: rgba(0,0,0,0.7);

    color: white;

    border-radius: 50%;

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow: 0 2px 5px rgba(0,0,0,0.2);

}



.cc-ps-cookies-mini-banner:hover {

    background-color: rgba(0,0,0,0.9);

    transform: scale(1.1);

}



#cc-ps-cookies-settings-button {

    background: none;

    border: none;

    color: white;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

}



/* Stany grup */

.cc-ps-cookies-group .collapse {

    display: none;

}



.cc-ps-cookies-group .collapse.show {

    display: block;

}



/* Pozycje */

.cc-position-bottom {

    bottom: 20px;

}

.cc-position-top {

    top: 20px;

}

.cc-position-middle {

    top: 50%;

    transform: translateY(-50%);

}

.cc-position-left {

    left: 20px;

}

.cc-position-right {

    right: 20px;

}

.cc-position-center {

    left: 50%;

    transform: translateX(-50%);

}

.cc-position-top-left {

    top: 20px;

    left: 20px;

}

.cc-position-top-right {

    top: 20px;

    right: 20px;

}

.cc-position-top-center {

    top: 20px;

    left: 50%;

    transform: translateX(-50%);

}

.cc-position-middle-left {

    top: 50%;

    left: 20px;

    transform: translateY(-50%);

}

.cc-position-middle-right {

    top: 50%;

    right: 20px;

    transform: translateY(-50%);

}

.cc-position-middle-center {

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

}

.cc-position-bottom-left {

    bottom: 20px;

    left: 20px;

}

.cc-position-bottom-right {

    bottom: 20px;

    right: 20px;

}

.cc-position-bottom-center {

    bottom: 20px;

    left: 50%;

    transform: translateX(-50%);

}



/* Style dla różnych typów banera */

.cc-style-bar {

    width: 100%;

    max-width: 100% !important;

    left: 0;

    right: 0;

    padding: 10px;

}



.cc-style-bar .cc-ps-cookies-container {

    margin: 0 auto;

    max-width: 1200px;

}



.cc-style-box {

    border-radius: 10px;

    box-shadow: 0 0 20px rgb(57 134 223);

    width: 90%;

    max-width: 600px;

    margin: 20px;

}



.cc-style-box .cc-ps-cookies-container {

    padding: 15px;

}



.cc-style-cloud {

    border-radius: 20px;

    box-shadow: 0 5px 15px rgb(50 113 251);;

    margin: 20px;

    padding: 10px;

}



.cc-style-cloud::before {

    content: '';

    position: absolute;

    bottom: -15px;

    right: 30px;

    width: 30px;

    height: 30px;

    background-color: inherit;

    border-radius: 5px;

    transform: rotate(45deg);

    z-index: -1;

}



/* Responsive styles */

@media (max-width: 768px) {

    .cc-ps-cookies-banner {

        max-width: 100% !important;

        margin: 0 !important;

        width: 90%;

    }

    .cc-ps-cookies-groups{
        height: 250px !important;
    }
    

    .cc-style-cloud::before {

        display: none;

    }

    

    .cc-ps-cookies-buttons {

        flex-direction: column;

    }

    

    .cc-ps-cookies-buttons .btn {

        margin-right: 0;

        margin-bottom: 10px;

        width: 100%;

    }

}



/* Niestandardowe checkboxy */

.cc-ps-cookies-group-header label {

  display: flex;

  align-items: center;

  cursor: pointer;

  user-select: none;

}



.cc-ps-cookies-group-checkbox {

  position: absolute;

  opacity: 0;

  cursor: pointer;

  height: 0;

  width: 0;

}



.cc-ps-cookies-group-checkbox + .cc-ps-cookies-group-name {

  position: relative;

  padding-left: 35px;

  cursor: pointer;

  font-size: 13px;
  color: #000;

}



.cc-ps-cookies-group-checkbox + .cc-ps-cookies-group-name:before {

  content: '';

  position: absolute;

  left: 0;

  top: 0;

  width: 20px;

  height: 20px;

  border: 2px solid rgba(0, 0, 0, 0.3);

  border-radius: 4px;

  transition: all 0.2s ease;

  background-color: rgba(255, 255, 255, 0.7);

}



.cc-ps-cookies-group-checkbox:checked + .cc-ps-cookies-group-name:before {

  background-color: #3986df;

  border-color: #3986df;

}



.cc-ps-cookies-group-checkbox:checked + .cc-ps-cookies-group-name:after {

  content: '';

  position: absolute;

  left: 7px;

  top: 3px;

  width: 6px;

  height: 12px;

  border: solid white;

  border-width: 0 2px 2px 0;

  transform: rotate(45deg);

  transition: all 0.2s ease;

}



.cc-ps-cookies-group-checkbox:focus + .cc-ps-cookies-group-name:before {

  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);

}



.cc-ps-cookies-group-checkbox:disabled + .cc-ps-cookies-group-name {

  opacity: 0.8;

}



.cc-ps-cookies-group-checkbox:disabled + .cc-ps-cookies-group-name:before {

  background-color: #e9ecef;

  border-color: rgba(0, 0, 0, 0.2);

}



.cc-ps-cookies-group-checkbox:disabled:checked + .cc-ps-cookies-group-name:before {

  background-color: #6c757d;

  border-color: #6c757d;

}



/* Poprawka dla wymaganych checkboxów */

.cc-ps-cookies-group-required {

  margin-left: 8px;

  font-size: 11px;

  color: #6c757d;

  font-style: italic;

}



/* Właściwe dopasowanie dla opisu grupy */

.cc-ps-cookies-group-description {

  padding-left: 0px;

}