/* Frontend base (Fase 2) */

.ozc-hide-desktop {
  display: none !important;
}

@media (max-width: 782px) {
  .ozc-hide-mobile {
    display: none !important;
  }
  .ozc-hide-desktop {
    display: initial !important;
  }
}

/* Quote form (Fase 4) */
.ozc-quote-form {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.ozc-quote-form__title {
  margin: 0 0 12px;
}

.ozc-quote-form__notice {
  padding: 10px 12px;
  border-radius: 8px;
  margin: 0 0 12px;
  background: #f6f6f6;
}

.ozc-quote-form__notice--success {
  background: #e9f8ef;
}

.ozc-quote-form__notice--error {
  background: #fdecec;
}

.ozc-quote-form__summary {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
}

.ozc-quote-form__items {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ozc-quote-form__item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: baseline;
}

.ozc-quote-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ozc-quote-form__grid p {
  margin: 0;
  display: grid;
  gap: 6px;
}

.ozc-quote-form__notes {
  grid-column: 1 / -1;
}

.ozc-quote-form input,
.ozc-quote-form textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
}

.ozc-quote-form__submit {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 782px) {
  .ozc-quote-form__grid {
    grid-template-columns: 1fr;
  }
  .ozc-quote-form__item {
    grid-template-columns: 1fr auto;
  }
  .ozc-quote-form__item-price {
    grid-column: 1 / -1;
    color: #444;
  }
}

/* Texto solo para lectores de pantalla (front) */
.screen-reader-text,
.ozc-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Modal asesores WhatsApp */
:root.ozc-advisor-modal-open {
  overflow: hidden;
}

.ozc-advisor-float-wrap {
  position: fixed;
  bottom: 24px;
  z-index: 9997;
}

.ozc-advisor-float-wrap--left {
  left: 24px;
}

.ozc-advisor-float-wrap--right {
  right: 24px;
}

.ozc-advisor-float-btn {
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.38);
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.ozc-advisor-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.48);
}

.ozc-advisor-float-btn:active {
  transform: scale(0.95);
}

.ozc-advisor-float-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  z-index: -1;
  animation: ozcFloatPulse 2s ease-out infinite;
}

.ozc-advisor-float-wrap--size-sm .ozc-advisor-float-btn {
  width: 60px;
  height: 60px;
}

.ozc-advisor-float-wrap--size-md .ozc-advisor-float-btn {
  width: 60px;
  height: 60px;
}

.ozc-advisor-float-wrap--size-lg .ozc-advisor-float-btn {
  width: 60px;
  height: 60px;
}

.ozc-advisor-float-btn__icon {
  display: block;
  width: 28px;
  height: 28px;
}

@keyframes ozcFloatPulse {
  0% {
    transform: scale(1);
    opacity: 0.32;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.ozc-advisor-modal {
  position: fixed;
  inset: 0;
  /* Debe quedar por encima del Sidecart (z-index: 1000000). */
  z-index: 1000002;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .ozc-advisor-modal {
    align-items: center;
  }
}

.ozc-advisor-modal[hidden] {
  display: none;
}

.ozc-advisor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.ozc-advisor-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(85vh, 560px);
  background: #fff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 600px) {
  .ozc-advisor-modal__panel {
    border-radius: 12px;
  }
}

.ozc-advisor-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.ozc-advisor-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.ozc-advisor-modal__close {
  border: 0;
  background: #f3f3f3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ozc-advisor-modal__close:hover {
  background: #e8e8e8;
}

.ozc-advisor-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 18px 20px;
  -webkit-overflow-scrolling: touch;
}

.ozc-advisor-modal__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ozc-advisor-modal__link {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f6f6f6;
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.ozc-advisor-modal__link:hover {
  background: #ececec;
}

/* Apilado FAB: WhatsApp arriba, carrito abajo (mismo lado) */
.ozc-fab-stack {
  position: fixed;
  bottom: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  pointer-events: none;
}

.ozc-fab-stack > * {
  pointer-events: auto;
}

.ozc-fab-stack--left {
  left: 24px;
  align-items: flex-start;
}

.ozc-fab-stack--right {
  right: 24px;
  align-items: flex-end;
}

.ozc-advisor-float-wrap--in-stack {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
}

.ozc-sidecart-fab--in-stack {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
}

