.wed-retailer-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.wed-retailer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #ddd;
}

.retailer-box {
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 25px 10px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

.retailer-box:nth-child(3n) {
    border-right: none;
}

/* Hide extra retailers */
.retailer-box.is-hidden {
    display: none;
}

/* Button */
.wed-retailer-actions {
    text-align: center;
    margin-top: 25px;
}

.show-all-retailers {
    background: #ffd400;
    color: #000;
    padding: 10px 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.wed-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}
.wed-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: calc(100% - 40px);
    padding: 14px 18px;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    z-index: 10000;
    display: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 12px;
}

.wed-toast.success {
    background-color: #4CAF50; /* green */
}

.wed-toast.error {
    background-color: #c0392b; /* red */
}

.wed-toast .wed-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    font-weight: 700;
    font-size: 16px;
}

.wed-toast .wed-toast-message {
    flex: 1 1 auto;
}
/* Sort button */
.wed-sort-btn {
    margin-bottom: 10px;
    padding: 6px 14px;
    cursor: pointer;
}

/* Registry row layout */
.my-registry-row {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 8px;
    background: #fff;
}

/* Drag handle */
.drag-handle {
    cursor: grab;
    font-size: 18px;
    padding: 0 10px;
    color: #888;
    display: none;
}

/* Enable sorting UI */
.sort-enabled .drag-handle {
    display: block;
}

.sort-enabled .registry-actions {
    display: none;
}

.my-registry-row.dragging {
    opacity: 0.5;
}

/* ========== WEDDING REGISTRY SEARCH SHORTCODE ========== */

.wed-search-wrapper {
    max-width:1140px;
    margin:auto;
    padding:0px 15px;
    width: 100%;
    background: #f8f9fa;
}

.wed-search-header {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
}

.wed-search-header-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}


.wed-search-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.wed-search-title {
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    color: #212529;
    margin-bottom: 10px;
}

.wed-search-subtitle {
    text-align: center;
    font-size: 14px;
    color: #212529;
    margin-bottom: 30px;
}

.wed-search-form {
    margin-top:40px;
    margin-bottom:30px;
    width: 100%;
}

.wed-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 15px;
    align-items: flex-end;
}

.wed-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.wed-field-clearable {
    position: relative;
}

.wed-search-form .wed-field .wed-input {
    padding: 8px 12px !important;
    border-radius: 0px !important;
    box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19) !important;
}

.wed-clear-btn {
    position: absolute;
    right: 12px;
    top: 43%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    background: transparent;
    margin: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.wed-clear-btn:hover {
    color: #333;
    background: transparent;
}
.wed-clear-btn i {
    pointer-events: none;
}
.wed-clear-btn i.fa-times{
    font-size:17px;
}
.wed-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #333;
   max-height: 200px;      
    overflow-y: auto; 
    transition: border-color 0.3s;
}

.wed-field-clearable .wed-input {
    padding-right: 40px;
}

.wed-input:focus {
    outline: none;
    border-color: #ffd400;
    box-shadow: 0 0 5px rgba(255, 212, 0, 0.3);
}

.wed-search-btn {
    padding: 12px 30px;
    color: #000;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
     box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12) !important;
    background: #ffcd57;
    width: 100%;
}

.wed-search-btn:hover {
    background: #000000;
    color:#ffffff;
}
.wed-results-count {
    font-size: 28px;
    margin-top:10px;
    font-weight: 500;
    color: #212529;
        margin-bottom: 0px !important;
}

.wed-search-results-table th {
    padding: 12px;
    text-align: left;
    font-size:14px;
    font-weight: 700;
    color: #212529;
    vertical-align: middle;
}

.wed-search-results-table thead {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}


.wed-search-results-table .wed-sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.wed-search-results-table .wed-sortable:hover {
    background-color: #eeeeee;
}

.wed-search-header img.wed-search-header-img {
    height: 100%;
    max-height: 200px;
}
.wed-sortable-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

table.wed-search-results-table tbody td {
    font-size: 14px;
    color: #212528;
}

.wed-sort-indicator {
    display: inline-flex;
    flex-direction: column;
    margin-left: 4px;
    font-size: 12px;
    color: #999;
    line-height: 1;
    width: auto;
}

.wed-sort-indicator .arrow {
    height: 8px;
    line-height: 8px;
}

.wed-sort-indicator .arrow i.fas {
    font-size: 16px;
     color: #212529 !important;
}

th[data-sort="asc"] .arrow-up i {
    color: #212529;
}

th[data-sort="desc"] .arrow-down i {
    color: #212529;
}


p {
    margin-bottom: 0 !important;
}
.wed-search-container{
    box-shadow:none !important;
}
  
  .mobile-row{
      display : none;
  }
  

@media (max-width: 767px) {
  .wed-search-fields {
    display: block; 
  }

  .wed-search-fields > * {
    width: 100%;   
    margin-bottom: 15px;
  }


  .wed-search-fields > *:last-child {
    margin-bottom: 0;
  }
  .wed-search-title {
      margin-top:10px;
    font-size: 18px;
   
}
.wed-results-count {
    font-size: 18px;
}

 .wed-search-fields .wed-field:nth-child(3),
  .wed-search-fields .wed-field:nth-child(4) {
    display: inline-block;
    width: 48%;
    vertical-align: top;
    box-sizing: border-box;
  }


  .wed-search-fields .wed-field:nth-child(3) {
    margin-right: 2.3%;
  }

  .wed-search-fields .wed-field:nth-child(3) .wed-input,
  .wed-search-fields .wed-field:nth-child(4) .wed-input {
    width: 100%;
  }
  
  
  #wed-search-results-table th:nth-child(5),
  #wed-search-results-table th:nth-child(6),
  /* Hide 5th and 6th columns in body */
  #wed-search-results-table td:nth-child(5),
  #wed-search-results-table td:nth-child(6) {
    display: none;
  }
  
  
  .wed-sort-indicator{
      flex-direction:row !important;
      
  }
  
  .wed-sort-indicator .arrow {
    height: 0px;
    line-height: 0px;
}

  
.wed-search-fields button[type="submit"] {
  max-width: 200px;     
  width: 100%;         
  margin: 0 auto;       
  display: block;       
}
#wed-search-results-table thead th {
  font-weight: 600;
  font-size: 9px;
  text-align: center;
  padding: 18px 12px;
  background: #f5f5f5;        
  border-bottom: 2px solid #ddd;
  position: relative;
  white-space: nowrap;
}

/* Make header content stack vertically */
#wed-search-results-table thead th .wed-sort-indicator {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

/* Style arrows */
#wed-search-results-table thead th .arrow i {
  font-size: 12px;
  color: #333;
}

/* Optional hover effect */
#wed-search-results-table thead th.wed-sortable {
  cursor: pointer;
}

#wed-search-results-table thead th.wed-sortable:hover {
  background: #ececec;
}
  
  .mobile-row{
      display : flex;
  }
  
 .mobile-row td a{
     white-space: nowrap;
}
.mobile-row td:first-child{
    border-right: 1px solid #0028ff;
}
#wed-search-results-table {
    width: 100%;
    table-layout: fixed;
}

#wed-search-results-table th,
#wed-search-results-table td {
    text-align: center;
}
#wed-search-results-table .fa-sort-down:before {
    content: "\f0dd";
    position: absolute;
    bottom: 10px;
}
table.wed-search-results-table tbody td {
    font-size: 9px !important;
}
}




