/* --- Select2 Clear Buttons --- */
.search-review-wrapper .select2-container--default .select2-selection--single .select2-selection__clear,
.search-review-wrapper .select2-container--default .select2-selection--multiple .select2-selection__clear {
  color: #B29E6C !important;
}
.search-review-wrapper .select2-container--default .select2-selection--single .select2-selection__clear {
  position: relative;
  right: 30px;
}
.search-review-wrapper .select2-container--default .select2-selection--multiple .select2-selection__clear {
  position: absolute !important;
  right: 40px !important;
  top: 1px;
}

/* --- Select2 Rendered --- */
.search-review-wrapper .select2-selection--single .select2-selection__rendered {
  margin-top: 5px;
  margin-left: 10px;
  color: #21262F !important;
}
.search-review-wrapper .select2-selection--multiple .select2-selection__rendered {
  margin-top: 5px;
}

.search-review-wrapper .select2-selection--single .select2-selection__arrow {
  margin-top: 5px;
  margin-right: 10px;
}

.search-review-wrapper .select2-container--default .select2-selection--single .select2-selection__placeholder,
.search-review-wrapper .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
  color: #21262F !important;
}

.search-review-wrapper {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  color: #21262F !important;
}

.search-review-container {
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #B29E6C;
  padding-bottom: 20px;
}

.search-review-input {
  width: 100% !important;
  height: 40px;
  border: 1px solid #B29E6C !important;
  border-radius: 999px !important;
  background: #fff;
  box-sizing: border-box;
  font-size: 16px;
  appearance: none;
  padding: 8px 16px !important;
  padding-right: 40px !important;
  background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="6.5" stroke="%23B29E6C" stroke-width="1.5"/><line x1="13.3536" y1="13.6464" x2="16" y2="16.2929" stroke="%23B29E6C" stroke-width="1.5" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 26px center;
  background-size: 18px 18px;
}

.search-review-button {
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.search-review-button:hover {
  background-color: #45a049;
}

.search-review-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.search-review-table th,
.search-review-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.search-review-table th {
  background-color: #f2f2f2;
}

.search-review-sortable {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}
.search-review-sortable:hover {
  background-color: #e6e6e6;
}
.search-review-sortable.asc::after {
  content: '↑';
  position: absolute;
  right: 8px;
}
.search-review-sortable.desc::after {
  content: '↓';
  position: absolute;
  right: 8px;
}

.search-review-image {
  width: 100px;
  height: 50px !important;
  object-fit: contain;
}

.search-review-loading,
.search-review-no-results,
.search-review-scroll-loading {
  text-align: center;
  padding: 20px;
  font-style: italic;
  color: #666;
}
.search-review-loading,
.search-review-no-results {
  display: none;
}

.search-review-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 20px;
  flex-wrap: wrap;
}

.pagination-nav {
  background-color: #B29E6C;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  text-align: center;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
  padding: 0 18px;
  width: auto;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.pagination-nav:disabled {
  background-color: #e5d7b8;
  color: #fff;
  cursor: not-allowed;
}

.pagination-current {
  background-color: #B29E6C;
  color: #fff;
  border-radius: 50%;
  border: none;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
}

.pagination-page {
  background: #fff;
  color: #21262F;
  border: 2px solid #B29E6C;
  border-radius: 50%;
  font-weight: 600;
  font-family: inherit;
  margin: 0 2px;
  transition: background 0.2s, color 0.2s;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.pagination-page:hover {
  background: #f7f3ec;
  color: #B29E6C;
}

.search-review-pagination-info,
.search-review-pagination-ellipsis {
  color: #666;
  font-size: 14px;
}
.search-review-pagination-ellipsis {
  padding: 0 5px;
}

.search-review-pagination-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}

.search-review-category-filters {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.search-review-category-label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 5px 10px;
  background-color: white;
  border-radius: 4px;
  border: 1px solid #ddd;
}
.search-review-category-label:hover {
  background-color: #f0f0f0;
}
.search-review-category-checkbox {
  margin: 0;
}

.search-review-distillery-filter {
  margin-bottom: 20px;
}

/* --- Select2 Container Styles (Category & Distillery) --- */
.search-review-category-select + .select2-container--default .select2-selection--single,
.search-review-distillery-select + .select2-container--default .select2-selection--single,
.search-review-category-select + .select2-container--default .select2-selection--multiple,
.search-review-distillery-select + .select2-container--default .select2-selection--multiple {
  border-radius: 999px;
  border: 1px solid #B29E6C;
  height: 40px;
  background: #fff;
  box-sizing: border-box;
  font-size: 16px;
  color: #21262F;
}

.search-review-category-select + .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px !important;
  padding-left: 16px !important;
  padding-right: 30px !important;
  display: flex;
  align-items: center;
  height: 40px;
}
.search-review-category-select + .select2-container--default .select2-selection--single .select2-selection__placeholder,
.search-review-category-select + .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  line-height: 40px !important;
  display: flex;
  align-items: center;
  height: 40px;
}
.search-review-category-select + .select2-container--default .select2-selection--multiple .select2-search__field {
  height: 32px !important;
  line-height: 32px !important;
  margin-left: -10px;
  margin-top: 2px;
  padding: 0 8px;
  vertical-align: middle;
  width: auto !important;
  color: #21262F !important;
}

.search-review-category-filter {
  margin-right: 10px;
}
.search-review-distillery-filter {
  margin-left: 10px;
}

/* --- Responsive Styles --- */
@media screen and (max-width: 768px), (max-width: 768px) {
  .search-review-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 8px;
  }
  .search-review-input {
    width: 100%;
  }
  .search-review-table {
    display: block;
  }
  .search-review-table thead {
    display: block;
    margin-bottom: 20px;
  }
  .search-review-table thead tr {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-review-table thead th {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 8px;
    background-color: #f2f2f2;
    border-radius: 4px;
  }
  .search-review-table thead th:first-child {
    display: none;
  }
  .search-review-table tbody {
    display: block;
  }
  .search-review-table tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
  }
  .search-review-table td {
    display: block;
    padding: 8px;
    border: none;
    position: relative;
    padding-left: 50%;
  }
  .search-review-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 45%;
    padding-right: 10px;
    font-weight: bold;
  }
  .search-review-table td:first-child,
  .search-review-table td:nth-child(2) {
    display: table-cell;
    width: auto;
    padding-left: 10px;
  }
  .search-review-table td:first-child:before,
  .search-review-table td:nth-child(2):before {
    display: none;
  }
  .search-review-table td[data-label="Image"] {
    padding-left: 10px;
  }
  .search-review-table td[data-label="Date"],
  .search-review-table td[data-label="ABV"],
  .search-review-table td[data-label="Score"] {
    padding-left: 10px;
    margin-top: 10px;
  }
  .search-review-table td[data-label="Date"]:before,
  .search-review-table td[data-label="ABV"]:before,
  .search-review-table td[data-label="Score"]:before {
    position: static;
    display: inline-block;
    width: auto;
    margin-right: 10px;
  }
  .search-review-distillery-select {
    max-width: 100%;
  }
  .search-review-table tbody>tr:nth-child(odd)>td,
  table tbody>tr:nth-child(odd)>th {
    background-color: unset;
  }
  .search-review-filters-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 8px;
  }
  .search-review-category-filter,
  .search-review-distillery-filter {
    min-width: 0;
    width: 100%;
    margin-bottom: 8px;
    margin-left: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
  }
  .search-review-category-filter {
    margin-right: 0px;
    margin-bottom: 8px;
  }
  .search-review-distillery-filter {
    margin-left: 0px;
  }
}

.search-review-filters-row {
  display: flex;
  flex-wrap: wrap;
}
.search-review-category-filter,
.search-review-distillery-filter {
  flex: 1 1 0;
  min-width: 220px;
}

/* --- Custom Carets for Select2 --- */
.search-review-distillery-select + .select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--multiple .select2-selection__arrow {
  background: none !important;
  width: 32px !important;
  height: 40px !important;
  right: 8px !important;
  top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-review-distillery-select + .select2-container--default .select2-selection--single .select2-selection__arrow b,
.search-review-sort-select + .select2-container--default .select2-selection--single .select2-selection__arrow b,
#categorySelect + .select2.select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none !important;
}
.search-review-distillery-select + .select2-container--default .select2-selection--single .select2-selection__arrow::after,
.search-review-sort-select + .select2-container--default .select2-selection--single .select2-selection__arrow::after,
#categorySelect + .select2.select2-container--default .select2-selection--single .select2-selection__arrow::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z" fill="%23B29E6C"/></svg>') no-repeat center center;
  margin-bottom: 10px;
}
.search-review-category-select + .select2-container--default .select2-selection--single {
  background-image: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z" fill="%23B29E6C"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
}
.search-review-category-select + .select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none !important;
}
.search-review-category-select + .select2-container--default .select2-selection--multiple::after {
  content: '';
  display: block;
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z" fill="%23B29E6C"/></svg>') no-repeat center center;
  background-size: 14px 14px;
  z-index: 10;
}
.search-review-category-select + .select2-container--default .select2-selection--multiple {
  position: relative;
  padding-right: 32px !important;
  padding-left: 20px !important;
}

/* --- Sort Select2 Styles --- */
.search-review-sort-select + .select2-container--default .select2-selection--single {
  min-width: 220px;
  width: 260px !important;
  border-radius: 999px;
  border: 1px solid #B29E6C;
  height: 40px;
  background: #fff;
  box-sizing: border-box;
  font-size: 16px;
  color: #21262F;
}
.search-review-sort-select + .select2-container--default {
  min-width: 220px;
  width: 260px !important;
}
.search-review-sort-select + .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px !important;
  padding-left: 16px !important;
  padding-right: 30px !important;
  display: flex;
  align-items: center;
  height: 40px;
  bottom: 5px;
  position: relative;
}
.search-review-sort-select + .select2-container--default .select2-selection--single .select2-selection__placeholder {
  line-height: 40px !important;
  display: flex;
  align-items: center;
  height: 40px;
}
.search-review-sort-select + .select2-container--default .select2-selection--single .select2-selection__arrow {
  background: none !important;
  width: 32px !important;
  height: 40px !important;
  right: 8px !important;
  top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-review-sort-select + .select2-container--default .select2-selection--single .select2-selection__arrow::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z" fill="%23B29E6C"/></svg>') no-repeat center center;
  margin-bottom: 10px;
}

.search-review-hr {
  border: 1px solid #B29E6C;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

.search-review-category-select + .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #21262F !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 4px 16px !important;
  margin: 2px 4px 4px 0 !important;
  font-size: 15px !important;
  font-family: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  box-shadow: none !important;
}

.search-review-category-select + .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: #fff !important;
  margin-right: 8px;
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.2s;
  position: relative;
  border-right: none;
}
.search-review-category-select + .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #bdbdbd !important;
  opacity: 1;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
}

