/**
 * Estilos para botones YITH Request a Quote (COTIZAR / Revisar la lista)
 * Pegar en el tema hijo o cargar con wp_enqueue_style.
 */

.yith-ywraq-add-to-quote {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
}

.yith-ywraq-add-to-quote *,
.yith-ywraq-add-to-quote *::before,
.yith-ywraq-add-to-quote *::after {
  box-sizing: border-box;
}

/* Ocultar saltos de línea del plugin */
.yith-ywraq-add-to-quote > br {
  display: none;
}

.yith-ywraq-add-to-quote .yith-ywraq-add-button {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.yith-ywraq-add-to-quote .yith-ywraq-add-button .ajax-loading {
  flex-shrink: 0;
  margin: 0;
}

/* Botón principal: COTIZAR */
.yith-ywraq-add-to-quote .add-request-quote-button.button,
.yith-ywraq-add-to-quote a.add-request-quote-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 20px !important;
  margin: 0 !important;
  background-color: #29B6CC !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(41, 182, 204, 0.28);
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.yith-ywraq-add-to-quote .add-request-quote-button.button:hover,
.yith-ywraq-add-to-quote .add-request-quote-button.button:focus,
.yith-ywraq-add-to-quote a.add-request-quote-button:hover,
.yith-ywraq-add-to-quote a.add-request-quote-button:focus {
  background-color: #22a3b8 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(41, 182, 204, 0.35);
}

/* Botón secundario: Revisar la lista */
.yith-ywraq-add-to-quote > a.button:not(.add-request-quote-button) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 20px !important;
  margin: 0 !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #29B6CC !important;
  border: 2px solid #29B6CC !important;
  border-radius: 10px !important;
  box-shadow: none;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.yith-ywraq-add-to-quote > a.button:not(.add-request-quote-button):hover,
.yith-ywraq-add-to-quote > a.button:not(.add-request-quote-button):focus {
  background-color: #f0fafc !important;
  color: #1f8fa1 !important;
  border-color: #22a3b8 !important;
  text-decoration: none !important;
}

/* Estado "ya añadido" del plugin */
.yith-ywraq-add-to-quote .yith_ywraq_add_item_response_message,
.yith-ywraq-add-to-quote .yith_ywraq_add_item_success_message {
  margin: 0 0 4px;
  padding: 10px 14px;
  background-color: #eef9fb;
  border: 1px solid #b8e4ec;
  border-radius: 8px;
  color: #1f6f7d;
  font-size: 14px;
}

@media (max-width: 480px) {
  .yith-ywraq-add-to-quote .add-request-quote-button.button,
  .yith-ywraq-add-to-quote a.add-request-quote-button {
    font-size: 15px !important;
    padding: 13px 16px !important;
  }

  .yith-ywraq-add-to-quote > a.button:not(.add-request-quote-button) {
    font-size: 14px !important;
    padding: 11px 16px !important;
  }
}
