/* Contenedor principal del bloque de tickets */
.wqt-event-tickets {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 1.5rem;
    background: #0f1015;
    border-radius: 16px;
    color: #f5f5f7;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Header del evento */
.wqt-event-header {
    margin-bottom: 1.5rem;
}

.wqt-event-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.wqt-event-meta {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

.wqt-event-meta .wqt-event-separator {
    margin: 0 0.4rem;
}

.wqt-event-notes {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Lista vertical de tickets */
.wqt-tickets-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Cada ticket como fila (list item) */
.wqt-ticket-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: radial-gradient(circle at left, rgba(255, 255, 255, 0.06), rgba(15, 16, 21, 1));
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Info del ticket a la izquierda */
.wqt-ticket-info {
    flex: 1;
    min-width: 0;
}

/* Acciones (cantidad) a la derecha */
.wqt-ticket-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.wqt-ticket-price {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Acciones (cantidad) */
.wqt-ticket-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.wqt-ticket-qty-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.wqt-ticket-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.2rem;
    background: rgba(0, 0, 0, 0.45);
}

.wqt-qty-btn {
    border: none;
    background: transparent;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    color: #f5f5f7;
}

.wqt-qty-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.wqt-ticket-qty-control input[type="number"] {
    width: 48px;
    text-align: center;
    border: none;
    background: transparent;
    color: #f5f5f7;
    font-size: 0.95rem;
    -moz-appearance: textfield;
}

.wqt-ticket-qty-control input[type="number"]::-webkit-outer-spin-button,
.wqt-ticket-qty-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wqt-submit {
    padding: 0.9rem 2.1rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: none !important;
    /* Colores más tipo UNDR: fucsia + violeta/neón */
    background: linear-gradient(135deg, #ff2e9f, #6b5bff) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7);
    width: 100%;
    cursor: pointer;
}

.wqt-submit:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.wqt-submit:hover {
    filter: brightness(1.05);
}

.wqt-submit-wrapper {
    margin-top: 25px;
}

.wqt-ticket-name {
    margin: 0 0 6px 0;
}

.wqt-ticket-price {
    margin: 0;
}

.wqt-ticket-qty-label {
    display: none;
}

.wqt-selected-summary {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
}

.wqt-selected-summary .wqt-selected-count {
    font-weight: 600;
    margin: 0 0.25rem;
}

.wqt-selected-summary .wqt-selected-total {
    font-weight: 600;
    margin-left: 0;
}

/* Estado deshabilitado del botón */
.wqt-submit--disabled,
.wqt-submit:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    width: 100% !important;
}

/* Estado "loading": puedes dejarlo igual o cambiarle algo */
.wqt-submit--loading {
    opacity: 0.8 !important;
}

/* Responsivo */
@media (max-width: 600px) {
    .wqt-ticket-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .wqt-ticket-actions {
        width: 100%;
        align-items: flex-start;
    }

    .wqt-submit-wrapper {
        text-align: center;
    }

    .wqt-submit {
        width: 100%;
    }

    .wqt-ticket-qty-control {
        width: 100%;
        justify-content: space-between;
    }
}

/* ====== Blindar estilos del shortcode de tickets ====== */

/* Botón principal "Comprar entradas" */
.wqt-event-tickets .wqt-submit {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  /* max-width: 260px; */
  padding: 0.9rem 1.4rem;
  margin-top: 0.5rem;

  cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.wqt-event-tickets .wqt-submit:hover:not(.wqt-submit--disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.wqt-event-tickets .wqt-submit:active:not(.wqt-submit--disabled) {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.wqt-event-tickets .wqt-submit.wqt-submit--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Botones + / - */
.wqt-event-tickets .wqt-ticket-qty-control .wqt-qty-btn {
  all: unset !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;

  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(148, 163, 184, 0.7) !important;
  color: #e5e7eb !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease !important;
}

.wqt-event-tickets .wqt-ticket-qty-control .wqt-qty-btn:hover {
  background: rgba(30, 64, 175, 0.95) !important;
  border-color: rgba(129, 140, 248, 0.9) !important;
}

.wqt-event-tickets .wqt-ticket-qty-control .wqt-qty-btn:active {
  transform: scale(0.95) !important;
}

/* Input cantidad */
.wqt-event-tickets .wqt-ticket-qty-control input[type="number"] {
  all: unset;
  box-sizing: border-box;
  width: 42px;
  text-align: center;
  font-size: 14px;
  color: #e5e7eb;
}

/* Evitar que Elementor meta estilos genéricos en nuestro wrapper */
.wqt-event-tickets button,
.wqt-event-tickets input,
.wqt-event-tickets .wqt-ticket-card {
  font-family: inherit;
}

.wqt-ticket-description {
    font-size: 0.80rem;
}