/* stylelint-disable */
.rv-bubble-trigger {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background: #18181b;
  border: none;
  border-radius: 50%;
  box-shadow:
    0 4px 24px rgb(0 0 0 / 25%),
    0 0 0 0 rgb(24 24 27 / 15%);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
  cursor: pointer;
}

.rv-bubble-trigger:hover {
  box-shadow:
    0 6px 32px rgb(0 0 0 / 30%),
    0 0 0 4px rgb(24 24 27 / 8%);
  transform: scale(1.08);
}

.rv-bubble-trigger:active {
  transform: scale(0.96);
}

.rv-bubble-trigger svg {
  width: 24px;
  height: 24px;
}

.rv-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: #ef4444;
  border: 2px solid #f4f4f5;
  border-radius: 10px;
}

.rv-panel-overlay {
  position: fixed;
  z-index: 9999;
  transition: opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
  inset: 0;
}

.rv-panel-overlay.rv-open {
  opacity: 1;
  pointer-events: auto;
}

.rv-panel-overlay.rv-open .rv-panel-backdrop {
  opacity: 1;
}

.rv-panel-overlay.rv-open .rv-panel {
  transform: translateY(0);
  opacity: 1;
}

.rv-panel-backdrop {
  position: absolute;
  background: rgb(0 0 0 / 20%);
  transition: opacity 0.25s ease;
  opacity: 0;
  inset: 0;
  backdrop-filter: blur(2px);
}

.rv-panel {
  position: absolute;
  right: 24px;
  bottom: 88px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 24px 64px rgb(0 0 0 / 18%),
    0 0 0 1px rgb(0 0 0 / 4%);
  transform: translateY(12px);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
    opacity 0.2s ease;
  opacity: 0;
}

.rv-panel-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.rv-panel-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rv-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #a1a1aa;
  background: transparent;
  border: none;
  border-radius: 8px;
  transition:
    background 0.15s,
    color 0.15s;
  cursor: pointer;
}

.rv-panel-close:hover {
  color: #18181b;
  background: #f4f4f5;
}

.rv-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 12px;
}

.rv-list::-webkit-scrollbar {
  width: 4px;
}

.rv-list::-webkit-scrollbar-thumb {
  background: #e4e4e7;
  border-radius: 4px;
}

.rv-empty {
  padding: 40px 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #a1a1aa;
  text-align: center;
}

.rv-empty svg {
  margin-bottom: 12px;
  opacity: 0.4;
}

.rv-card {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  transition: background 0.15s;
}

.rv-card:hover {
  background: #fafafa;
}

.rv-card + .rv-card {
  margin-top: 2px;
}

.rv-card-img {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  background: #f0f0f0;
  border-radius: 8px;
  object-fit: cover;
}

.rv-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #ccc;
}

.rv-card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.rv-card-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-card-meta {
  overflow: hidden;
  font-size: 12px;
  color: #71717a;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-card-price {
  margin-top: 1px;
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
}

.rv-notify-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #d4d4d8;
  background: transparent;
  border: none;
  border-radius: 6px;
  transition:
    color 0.15s,
    background 0.15s;
  cursor: pointer;
}

.rv-notify-toggle:hover {
  color: #18181b;
  background: #f0f0f0;
}

.rv-notify-toggle.rv-subscribed {
  color: #22c55e;
}

.rv-notify-form {
  display: none;
  margin-top: 4px;
  padding: 8px 10px 10px;
  background: #fafaf9;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.rv-notify-form.rv-show {
  display: block;
}

.rv-notify-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #71717a;
}

.rv-notify-input-row {
  display: flex;
  gap: 6px;
}

.rv-notify-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 13px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
}

.rv-notify-input:focus {
  border-color: #18181b;
}

.rv-notify-input::placeholder {
  color: #c4c4c8;
}

.rv-notify-submit {
  height: 32px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  background: #18181b;
  border: none;
  border-radius: 6px;
  transition: background 0.15s;
  cursor: pointer;
}

.rv-notify-submit:hover {
  background: #27272a;
}

.rv-notify-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.rv-notify-success,
.rv-notify-error {
  display: none;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 500;
}

.rv-notify-success.rv-show {
  display: block;
  color: #22c55e;
}

.rv-notify-error.rv-show {
  display: block;
  color: #ef4444;
}

@media (width <=440px) {
  .rv-panel {
    right: 8px;
    bottom: 80px;
    width: calc(100vw - 16px);
  }

  .rv-bubble-trigger {
    right: 16px;
    bottom: 16px;
  }
}
