/* chooseBottle.css */

.cb-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cb-panel {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 16px;
  padding: 16px;
  margin: 0 auto;
}

.cb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.cb-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.cb-sub {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.75;
}

/* Top action area */

#cbSurpriseBtn {
  width: 100%;
}

#cbSurpriseRedBtn,
#cbSurpriseWhiteBtn {
  flex: 1 1 0;
}

/* Reveal area */

.cb-message-error {
  color: #8b1e1e;
  opacity: 1;
}

.cb-card,
.cb-reveal {
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.cb-card-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cb-card-title,
.cb-reveal-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.cb-card-title-center {
  text-align: center;
}

.cb-reveal {
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  animation: cbRevealIn 320ms ease-out;
}

.cb-reveal-title {
  text-align: center;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.cb-reveal .cb-card-title {
  text-align: center;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 6px;
  line-height: 1.15;
}

.cb-reveal-loading {
  text-align: center;
}

.cb-spinner {
  width: 34px;
  height: 34px;
  margin: 14px auto 4px auto;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: #234e2d;
  border-radius: 50%;
  animation: cbSpin 0.8s linear infinite;
}

.cb-loading-text {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
  text-align: center;
}

.cb-wow {
  margin-top: 18px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
}

.cb-wow-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.cb-wow-show {
  animation: cbWowIn 420ms ease-out forwards;
}

/* Meta pills */

.cb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cb-meta-centered {
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.cb-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.03);
}

.cb-color-red { background: rgba(140, 28, 28, 0.08); }
.cb-color-white { background: rgba(184, 168, 92, 0.10); }
.cb-color-rose { background: rgba(182, 82, 122, 0.10); }
.cb-color-orange { background: rgba(191, 113, 17, 0.10); }
.cb-color-sparkling { background: rgba(120, 120, 120, 0.10); }
.cb-color-dessert { background: rgba(126, 84, 162, 0.10); }

/* Buttons */

.cb-btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cb-btn-primary {
  background: #234e2d;
  border-color: #234e2d;
  color: #fff;
}

.cb-card-actions,
.cb-reveal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Search/filter area */

.cb-filterRow {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr auto;
  gap: 12px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  align-items: end;
}

.cb-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: 0.75;
}

.cb-input,
.cb-select {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.cb-field-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

/* Location + empty states */

.cb-location {
  margin-top: 16px;
  border: 1px dashed rgba(0, 0, 0, 0.16);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.cb-location-title {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.75;
  margin-bottom: 8px;
}

.cb-location-line {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.cb-hidden-location {
  margin-top: 16px;
  text-align: center;
  opacity: 0.72;
  font-size: 14px;
}

.cb-empty {
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  background: rgba(0, 0, 0, 0.02);
}

/* Animations */

@keyframes cbRevealIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cbSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cbWowIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile */

@media (max-width: 720px) {
  .cb-filterRow {
    grid-template-columns: 1fr 1fr;
  }

  .cb-field-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cb-card-actions,
  .cb-reveal-actions {
    justify-content: center;
  }
}

.cb-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  margin-bottom: 10px;
}

.cb-actions-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.cb-results {
  margin-top: 8px;
  margin-bottom: 10px;
  display: grid;
  gap: 10px;
}

.cb-message {
  margin-top: 4px;
  margin-bottom: 2px;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.8;
}

.cb-dinner-block {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.cb-dinner-title {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
  margin-bottom: 4px;
  text-align: center;
}

.cb-dinner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.cb-dinner-btn {
  min-height: 54px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  border-radius: 8px;
}

.cb-dinner-emoji {
  font-size: 16px;
  line-height: 1;
}

.cb-dinner-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.cb-reveal-placeholder {
  position: relative;
  overflow: hidden;
}

.cb-reveal-placeholder {
  position: relative;
  overflow: hidden;
}

.cb-reveal-loading {
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cb-spinner {
  width: 34px;
  height: 34px;
  margin: 10px auto 0 auto;
  border: 3px solid rgba(0,0,0,0.12);
  border-top-color: #234e2d;
  border-radius: 50%;
  animation: cbSpin 1.2s linear infinite;
}

.cb-loading-text {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.75;
  text-align: center;
}

.cb-wow {
  margin-top: 10px;
  text-align: center;
  opacity: 0.82;
  font-size: 14px;
  line-height: 1.25;
}

.cb-wow-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.62;
  margin-bottom: 2px;
}

.cb-wow-hidden {
  opacity: 0;
}

.cb-wow-show {
  opacity: 1;
  transition: opacity 300ms ease;
}

@keyframes cbSpin {
  to {
    transform: rotate(360deg);
  }
}

#pbChooseBottleMount .cb-card-text {
  font-size: 14px;
  color: #666;
  line-height: 1.45;
}

.cb-filterBlock {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.cb-filterGrid {
  display: grid;
  gap: 12px;
}

.cb-filterGrid--top {
  grid-template-columns: 1fr 1fr;
}

.cb-field-actions--stack {
  display: grid;
  gap: 12px;
}

.cb-field-actions--stack .cb-btn {
  width: 100%;
}

@media (max-width: 640px) {
  .cb-filterGrid--top {
    grid-template-columns: 1fr 1fr;
  }

  .cb-field-actions--stack {
    grid-template-columns: 1fr;
  }
}

.cb-wow-hidden {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.cb-wow-show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.cb-reveal-enter {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
}

.cb-reveal-enter-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}