.picker-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.picker-modal__inner {
  background: #fff;
  padding: 2rem;
  border-radius: 6px;
  max-width: 60%;
  width: fit-content;
  overflow-y: auto;
  max-height: 70vh !important;
  position: relative;
}
.picker-modal__close {
  position: absolute; top: 10px; right: 10px;
  font-size: 24px; border: none; background: none;
  cursor: pointer;
}
.picker-grid {
  display: grid;
  gap: 1rem;
}
.picker-item { cursor: pointer; text-align: center; }
.picker-item img { width: 100%; height: auto;
max-width: 150px;}
.picker-item__title { margin-top: 1px; font-size: 13px; }


.modal-open {
  overflow: hidden;
}
/* Tab Navigation Styles */
.room-picker-tabs .tabs-links {
  list-style: none;
  display: flex;
  border-bottom: 1px solid #ccc;
  padding: 0;
  margin: 0 0 10px 0;
}

.room-picker-tabs .tabs-links li {
  margin: 0;
}

.room-picker-tabs .tabs-links li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
}

.room-picker-tabs .tabs-links li.active a,
.room-picker-tabs .tabs-links li a:hover {
  background-color: #eee;
}

.room-picker-tabs .tab-content {
  border: 1px solid #ccc;
  border-top: none;
  padding: 10px;
  text-align: center;

}

/* Picker Item Styles */
.picker-item {
  display: inline-block;
  margin: 5px;
  cursor: pointer;
  vertical-align: top;
  max-width: 150px;
}

.picker-item__title {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 5px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.1;
}

/* Skeleton thumbnail placeholder */
.room-preview .skeleton-thumb {
  display: block;
  width: 150px;
  height: 150px;
  background: #eee;
  position: relative;
  overflow: hidden;
}

/* Optional shimmer animation */
@keyframes shimmer {
  0%   { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.room-preview .skeleton-thumb.shimmer {
  background: linear-gradient(
    to right,
    #eeeeee 0%,
    #dddddd 20%,
    #eeeeee 40%,
    #eeeeee 100%
  );
  background-size: 400px 150px;
  animation: shimmer 1.5s infinite linear;
}

/* 1. Make the wrapper a flex container */
.picker-row {
  display: flex;
  gap: 1rem;               /* space between the two sections */
  flex-wrap: wrap;         /* stack on narrow screens */
  align-items: flex-start; /* align label/text tops */
  margin-bottom: 1rem;     /* spacing from other content */
}

/* 2. Each picker takes 50% minus gap */
.picker-row > .room-section,
.picker-row > .style-section {
  flex: 1 1 calc(50% - 0.5rem);
  box-sizing: border-box;
}

/* 3. On really small screens, let them go full-width */
@media (max-width: 600px) {
  .picker-row > .room-section,
  .picker-row > .style-section {
    flex: 1 1 100%;
  }
}
.picker-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}
.room-section,
.style-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width:600px) {
  .picker-row { flex-direction: column; }
  
}

/* Skeleton thumbnail placeholder */
.style-preview .skeleton-thumb {
  display: block;
  width: 150px;
  height: 150px;
  background: #eee;
  position: relative;
  overflow: hidden;
}

/* Optional shimmer animation */
@keyframes shimmer {
  0%   { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.style-preview .skeleton-thumb.shimmer {
  background: linear-gradient(
    to right,
    #eeeeee 0%,
    #dddddd 20%,
    #eeeeee 40%,
    #eeeeee 100%
  );
  background-size: 400px 150px;
  animation: shimmer 1.5s infinite linear;
}

#style-picker-grid.picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#style-picker-grid.picker-grid .picker-item {
  flex: 1 1 calc(25% - 12px);
  box-sizing: border-box;
}