.partners-archive {
    display: flex;
    max-width: 1440px;
    gap: 50px;
    margin: 45px auto;
    padding: 0 15px;
}

.partners-filters,
.partners-filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partners-filters label {
  display: flex;
}

.partners-filters-button,
#filters-close {
  display: none;
}

.partners-filters .field-group {
  margin-bottom: 20px;
}

#partner-supports,
.partner-certifications-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.partners-results {
    position: relative;
    flex-grow: 1;
}

.partners-results-filters {
  display: flex;
  margin-left: auto;
  margin-right: 0;
  margin-bottom: 20px;
  justify-content: end;
  column-gap: 20px;
  align-items: center;
}

.field-group-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
}

.partner-supports-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.partner-supports-wrapper > label > input {
    margin-right: 5px;
}

#grid-toggle,
#filter-toggle,
#filters-close {
  background: transparent;
  padding: 0;
  outline: none;
  border: none;
  cursor: pointer;
}

#filters-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.two-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}

.one-row {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 10px;
    grid-row-gap: 10px; 
}

.partner-item {
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    gap: 10px;
}

.pms-wrapper,
.restaurant-wrapper,
.partner-support,
.partner-info {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.partner-certifications-single-wrapper {
  display: flex;
  gap: 20px;
  margin: 5px 0;
}

/* .partner-info {
  min-height: 25px;
} */

.partner-item > h3 {
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 600;
}

.sorting-wrapper label {
  display: none;
}

.partners-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.partner-page.active {
  background-color: #0091D0;
  border-color: #0091D0;
  color: #fff;
}

#partners-message {
  text-align: center;
  margin-top:50px;
  font-weight: 600;
}

#partners-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.2s ease;
    display: none;
}

#partners-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(50%, 50%);
}

.field-group input,
.field-group select {
  border-radius: 4px !important;
  border-color: #ccc !important;
  line-height: 0;
}

.field-group select {
  background: transparent;
}

.partner-certifications-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 5px;
}

.partner-certifications-wrapper label {
  gap: 5px;
}

.partner-certifications-title,
.partner-support-title,
.partner-region {
  font-weight: 600;
}

/* Custom Checkbox Style */
input[type=checkbox] {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background-color: transparent;
  margin: 0;
  font: inherit;
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid #cccccc;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
  accent-color: #0091D0;
}

input[type=checkbox]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  -webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
          clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em rgba(0,0,0,0);
  background-color: #fff;
}

input[type=checkbox]:checked::before {
  transform: scale(1);
}

input[type=checkbox]:checked {
  color: #fff;
  background: #0091D0;
  border-color: #0091D0 !important;
}

input[type=checkbox]:disabled {
  color: #fff;
  cursor: not-allowed;
  background: #0091D0;
  border-color: #0091D0;
}

.partners-filters.open {
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: translate(0%, 0%);
  background: #fff;
  display: flex;
  justify-content: center;
  padding: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width:1024px){

  .partners-archive {
    flex-direction: column;
  }

  .partners-filters-button,
  #filters-close {
    display: block;
    /* flex-basis: 100%; */
  }

  .partners-filters,
  #grid-toggle {
    display: none;
  }

  .partners-results-filters {
    justify-content: space-between;
  }

  .two-row {
    grid-template-columns: 1fr;
  }
}