.fortylinks-container {
  max-width: 1600px;
  margin: auto;
  font-family: "Segoe UI", Arial, sans-serif;
  padding: 20px;
  background-color: #fafafa;
}

/* Main Search */
.main-search {
  display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
    background: #7b5cdc;
    padding: 60px 10px;
    border-radius: 8px;
}

.keyword-search-table-wrapper {
    overflow-x: auto;
}

.cart-actions .link-input {
    border: solid 1px #e9e9e9;
    padding: 4px 7px;
    border-radius: 4px;
    color: #357fcf;
    background: #ede5bd;
}

.main-search-input {
  width: 60%;
  padding: 14px 18px;
  font-size: 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s;
}

.main-search-input:focus {
  border-color: #0073e6;
}

.main-search-btn {
  padding: 14px 25px;
  font-size: 18px !important;
  background-color: #fff !important;
  color: #0073e6 !important;
  border: 1px solid #0073e6;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-search-btn:hover {
  background-color: #0073e6 !important;
  color: #fff !important;
}

.main-filter-btn {
  padding: 14px 20px;
  font-size: 18px !important;
  background-color: #fff !important;
  color: #555 !important;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-filter-btn:hover {
  background-color: #f3f4f6 !important;
}
#fortylinks-table_filter {
    display: none;
}

/* Table Layout */
.results-table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.table-header, .table-row {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 2fr 1fr 1fr;
  padding: 12px 15px;
  align-items: start;
}

.table-header {
  background-color: #f3f4f6;
  border-bottom: 1px solid #ddd;
}

.col-title {
  font-size: 12px;
  font-weight: 400;
  color: #555;
  display: block;
  margin-bottom: 4px;
}

/* Column Filters */
.column-filter {
  display: block;
  width: 94%;
  padding: 6px 8px;
  font-size: 12px;
  margin-top: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.table-row {
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.table-row:hover {
  background-color: #f9f9f9;
}

.title-cell {
  font-size: 16px;
  font-weight: 600;
  color: #0073e6;
  margin-bottom: 5px;
}

.preview {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

/* Center align only DA and Price cells */
.da-cell,
.price-cell {
  text-align: center;
}

/* Add to Cart Button */
.add-cart-btn {
  background-color: #0073e6;
  color: #fff!important;
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px!important;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 100!important;
}

.add-cart-btn:hover {
  background-color: #005bb5;
}

.link-input {
    margin-bottom: 10px;
}
.filter-panel {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.dual-slider {
  position: relative;
  width: 220px;
}

.dual-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

.dual-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #0073e6;
  cursor: pointer;
}

.dual-slider input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #0073e6;
  cursor: pointer;
}

.dual-slider::before {
  content: "";
  position: absolute;
  height: 4px;
  background: #ddd;
  width: 100%;
  top: 6px;
  left: 0;
  z-index: 0;
  border-radius: 4px;
}

.dual-slider .range-values {
  font-size: 13px;
  color: #555;
  margin-top: 24px;
  text-align: center;
}

.multi-select {
  position: relative;
  width: 220px;
  font-size: 14px;
}

.select-box {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkboxes {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 2px;
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  z-index: 10;
  padding: 5px;
}

.checkboxes label {
  display: block;
  margin-bottom: 4px;
  cursor: pointer;
}

.checkboxes label:hover {
  background: #f0f0f0;
}

.show{
    display: block;
}



@media (max-width: 768px) {
    /* Hide the original table header, we will use data-labels instead */
    #fortylinks-table thead {
        display: none;
    }

    /* Make table elements behave like blocks */
    #fortylinks-table,
    #fortylinks-table tbody,
    #fortylinks-table tr,
    #fortylinks-table td {
        display: block;
        width: 100%;
    }

    /* Style each row to look like a card */
    #fortylinks-table tr {
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
        background-color: #fff; /* Give cards a background */
    }

    /* Reset some cell styles and add the label */
    #fortylinks-table td {
        position: relative;
        padding-left: 120px; /* Make space for the label on the left */
        border: none;
        border-bottom: 1px solid #eee; /* Separator between fields */
    }

    /* The last cell in a card shouldn't have a bottom border */
    #fortylinks-table tr td:last-child {
        border-bottom: 0;
    }

    /* This is the magic part that creates the labels */
    #fortylinks-table td::before {
        /* Use the content from the 'data-label' attribute */
        content: attr(data-label);
        position: absolute;
        left: 15px; /* Add some padding */
        width: calc(50% - 30px); /* Adjust width to account for padding */
        text-align: left;
        font-weight: bold;
        color: #333;
    }
}