/* === General Banner Styles === */
.cookie-consent {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: #1c1c1c;
  color: white;
  border-radius: 15px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  font-family: "PFHighwayGothicExtnd-black", sans-serif;
  display: none;
  overflow: hidden;
}

.cookie-consent-content {
  padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    padding: 0;
    margin: 0;
    font-family: "PFHighwayGothicExtnd-thin", Sans-serif;
}

.cookie-tab p, .cookie-tab table {
    font-size: 0.9rem;
    color: #333;
    font-family: "PFHighwayGothicExtnd-thin", Sans-serif;
}

h4 {
    font-family: "PFHighwayGothicExtnd-thin", Sans-serif;
}

.cookie-consent h2 {
  margin-top: 0;
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
}

.cookie-consent p {
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 15px;
}

.cookie-consent a {
  color: #2B983B;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-categories {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-categories label {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === Styled Buttons Like CookieScript === */
.cookie-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.cookie-buttons-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 25px;
  font-weight: bold;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 130px;
}

.cookie-buttons button:nth-child(1) {
  background-color: #2B983B;
  color: white;
  border-color: #2B983B;
}

.cookie-buttons button:nth-child(2) {
  background-color: #1c1c1c !important;
  color: white;
  border: 2px solid white;
}

.cookie-buttons button:nth-child(3) {
  background-color: black;
  color: white;
  border-color: #2B983B;
}



/* === "ΕΜΦΑΝΙΣΗ ΛΕΠΤΟΜΕΡΕΙΩΝ" Button === */
.cookie-toggle {
  display: block;
  font-size: 0.85rem;
  color: #2B983B;
  background-color: transparent;
  border: none;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.cookie-toggle::before {
  content: "\2699\FE0F ";
}

.cookie-toggle:hover {
  color: #1e6f2a;
  transform: scale(1.02);
}

/* === Minimized Icon === */
#cookie-consent-minimized {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background-color: #2B983B;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  background-image: url('https://cdn-icons-png.flaticon.com/512/1047/1047711.png');
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  z-index: 9999;
}

@media (max-width: 480px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 10px;
  }
  #cookie-consent-minimized {
    bottom: 15px;
    left: 15px;
  }
}

/* === Modal Styles === */
#cookie-detail-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 700px;
  max-height: 80%;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  background: white;
  color: black;
  padding: 25px;
  border-radius: 20px;
  z-index: 10000;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
  font-family: "PFHighwayGothicExtnd-black", sans-serif;
}

#cookie-detail-modal h2 {
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

#cookie-detail-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: black;
  cursor: pointer;
  transition: color 0.2s ease;
}

#cookie-detail-modal-close:hover {
  color: #2B983B;
}

.cookie-tabs {
  display: flex;
  border-bottom: 2px solid #ccc;
  margin: 20px 0;
}

.cookie-tabs button {
  background: none;
  border: none;
  font-weight: bold;
  padding: 10px 20px;
  cursor: pointer;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.cookie-tabs button:hover {
  color: #2B983B;
}

.cookie-tabs button.active {
  background-color: #000;
  color: #fff;
  border-radius: 12px 12px 0 0;
  border-bottom: none;
}

.cookie-tab {
  display: none;
}

.cookie-tab.active {
  display: block;
  background-color: #fff;
  padding: 20px;
  border-radius: 0 0 12px 12px;
  box-shadow: inset 0 -1px 3px rgba(0,0,0,0.05);
  max-height: 400px;         /* scroll όταν έχει πολύ περιεχόμενο */
  overflow-y: auto;          /* ενεργοποίηση κάθετης κύλισης */
  overscroll-behavior: contain; /* για smooth scroll με ροδέλα */
  scrollbar-width: none;     /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
}

.cookie-tab.active::-webkit-scrollbar {
  display: none;             /* Chrome/Safari/Opera */
}

#cookie-detail-modal {
  pointer-events: auto;
  overscroll-behavior: contain;
}


.cookie-tab h3 {
  margin-top: 0;
  color: #2B983B;
}

.cookie-tab p, .cookie-tab table {
  font-size: 0.9rem;
  color: #333;
}

.cookie-tab table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.cookie-tab table th,
.cookie-tab table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

/* === Footer μέσα στο modal === */
.cookie-modal-footer {
  display: none;
  justify-content: flex-end;
  font-size: 0.75rem;
  color: #555;
  margin-top: 25px;
  padding-top: 10px;
}

.cookie-modal-footer a {
  color: #2B983B;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-buttons button:first-child {
    background-color: #2B983B;
    color: white;
    font-family: 'Open Sans', Arial, 'Trebuchet MS', 'Segoe UI', 'Helvetica', sans-serif;
    width: 100%;
}

.cookie-buttons button:nth-child(2) {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    width: 100%;
}

.cookie-buttons button:last-child {
    background-color: #2B983B;
    color: white;
    font-size: 0.85rem;
    font-family: 'Open Sans', Arial, 'Trebuchet MS', 'Segoe UI', 'Helvetica', sans-serif;
    width: 100%;
}

#cookie-detail-modal {
    pointer-events: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}


#cookie-detail-modal h2 {
    margin-top: 0;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: "PFHighwayGothicExtnd-thin", Sans-serif;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: "PFHighwayGothicExtnd-thin", Sans-serif;
}


.cookie-tabs button.active {
    background-color: #000;
    color: #fff;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    font-family: "PFHighwayGothicExtnd-thin", Sans-serif;
}

.axtra-base .info--post-details .comment-form-comment textarea, .axtra-base button, .axtra-base input, .axtra-base select, .axtra-base textarea {
    outline: none;
    font-family: "PFHighwayGothicExtnd-thin", Sans-serif;
}


.scrollable-tab {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* Internet Explorer και Edge */
}

.scrollable-tab::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Opera */
}

body.modal-open {
  overflow: hidden;
}

.cookie-tab.active {
  display: block;
  background-color: #fff;
  padding: 20px;
  border-radius: 0 0 12px 12px;
  box-shadow: inset 0 -1px 3px rgba(0,0,0,0.05);
  flex-grow: 1;
  overflow-y: auto;              /* εδώ γίνεται το scroll */
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f1f1f1;
}

.cookie-tab.active::-webkit-scrollbar {
  width: 8px;
}

.cookie-tab.active::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 8px;
}

.cookie-tab.active {
    max-height: 300px;
}

.cookie-tab.active::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#cookie-detail-modal {
  overflow: hidden; /* Μόνο εδώ, ώστε το modal να μην σκρολλάρει συνολικά */
}


/* === Modal Buttons Styling === */
.cookie-modal-footer button {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 25px;
  font-weight: bold;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 130px;
}

.cookie-modal-footer .left-buttons button:first-child {
  background-color: #2B983B;
  color: white;
  border-color: #2B983B;
}

.cookie-modal-footer .left-buttons button:last-child {
  background-color: #1c1c1c;
  color: white;
  border: 2px solid white;
}

.cookie-modal-footer .right-button button {
  background-color: #2B983B;
  color: white;
  border-color: #2B983B;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

/* Custom switch */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #2B983B;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.switch input:disabled + .slider {
  background-color: #999;
  cursor: not-allowed;
}

.cookie-report-footer {
    text-align: end;
    margin-top: 15px;
    font-family: "PFHighwayGothicExtnd-thin", Sans-serif;

}

@media screen and (max-width:480px) {
    .cookie-modal-footer button {
    padding: 10px 10px !important;
    font-size: 0.9rem;
    border-radius: 25px;
    font-weight: bold;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
}
.cookie-modal-footer .right-button {
    margin-left: auto;
    margin-right: auto;
}.cookie-report-footer {
    text-align: center;
    margin-top: 15px;
    font-family: "PFHighwayGothicExtnd-thin", Sans-serif;
}
}

#cookie-detail-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 700px;
    max-height: 100%
545px
;
    overflow-y: auto;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    padding: 25px;
    border-radius: 20px;
    z-index: 10000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
    font-family: "PFHighwayGothicExtnd-black", sans-serif;
}