@media (max-width: 767px) {
  .rbc-fab-hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .rbc-fab-hide-desktop {
    display: none !important;
  }
}

.rbc-fab {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  pointer-events: none;
}

.rbc-fab-action {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem 0.55rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(17, 24, 39, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.rbc-fab-action.rbc-fab-no-label {
  padding: 0.65rem;
  border-radius: 999px;
}

.rbc-fab-action.rbc-fab-no-icon {
  padding: 0.55rem 0.95rem;
}

.rbc-fab-action:hover,
.rbc-fab-action:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(17, 24, 39, 0.18);
}

.rbc-fab-svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.rbc-fab-call .rbc-fab-svg {
  color: #2563eb;
}

.rbc-fab-whatsapp .rbc-fab-svg {
  color: #16a34a;
}

.rbc-fab-offers .rbc-fab-svg {
  color: var(--rbc-theme, #ffd700);
}

@media (max-width: 640px) {
  .rbc-fab {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Offers bottom sheet */
.rbc-offers-sheet {
  position: fixed;
  inset: 0;
  z-index: 10400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.rbc-offers-sheet.is-open {
  pointer-events: auto;
}

.rbc-offers-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.rbc-offers-sheet.is-open .rbc-offers-backdrop {
  opacity: 1;
}

.rbc-offers-panel {
  position: relative;
  width: min(100%, 32rem);
  max-height: min(85vh, 40rem);
  background: #fff;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -12px 40px rgba(17, 24, 39, 0.18);
  transform: translateY(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rbc-offers-sheet.is-open .rbc-offers-panel {
  transform: translateY(0);
}

.rbc-offers-handle {
  width: 2.5rem;
  height: 0.25rem;
  border-radius: 999px;
  background: #d1d5db;
  margin: 0.65rem auto 0;
  flex-shrink: 0;
}

.rbc-offers-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem 0.5rem;
}

.rbc-offers-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}

.rbc-offers-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

.rbc-offers-close {
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.rbc-offers-scroll {
  overflow-y: auto;
  padding: 0.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rbc-offer-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  background: #fff;
}

.rbc-offer-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.rbc-offer-code {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111;
}

.rbc-offer-badge {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rbc-theme, #ffd700) 22%, #fff);
  color: #166534;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rbc-offer-amount {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #059669;
}

.rbc-offer-desc {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.45;
}

.rbc-offer-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.rbc-offer-terms {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  font-size: 0.6875rem;
  color: #6b7280;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.rbc-offer-terms svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: #9ca3af;
}

.rbc-offer-copy {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111;
  cursor: pointer;
}

.rbc-offer-copy svg {
  width: 0.9rem;
  height: 0.9rem;
}

.rbc-offer-copy.copied {
  border-color: var(--rbc-theme, #ffd700);
  background: color-mix(in srgb, var(--rbc-theme, #ffd700) 18%, #fff);
}

.rbc-offers-loading,
.rbc-offers-empty {
  padding: 2rem 0.5rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

body.rbc-offers-open {
  overflow: hidden;
}

@media (min-width: 641px) {
  .rbc-offers-sheet {
    align-items: center;
    padding: 1rem;
  }

  .rbc-offers-panel {
    border-radius: 1rem;
    max-height: min(80vh, 36rem);
  }

  .rbc-offers-handle {
    display: none;
  }
}
