/* Pago experiencia — layout tipo producto + modal checkout */

.flowme-experience-pay-wrap {
  margin: 1.5rem 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
  background: transparent !important;
}

.flowme-experience-pay-wrap .fw-btn {
  border-radius: 6px;
  min-height: 48px;
  padding: 0 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flowme-experience-pay-wrap .fw-btn--primary {
  background: #111;
  color: #fff;
}

.flowme-experience-pay-wrap .fw-btn--primary:hover {
  opacity: 0.9;
  transform: none;
}

.flowme-experience-pay-wrap .fw-btn--ghost {
  background: #fff;
  border: 1px solid #ddd;
  color: #555;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.flowme-experience-pay-wrap .fw-btn--ghost:hover {
  border-color: #111;
  color: #111;
}

/* —— Ficha producto (WooCommerce-like) —— */
.flowme-experience-pay-wrap .flowme-exp-product {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  align-items: stretch !important;
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  box-sizing: border-box;
}

.flowme-experience-pay-wrap .flowme-exp-product__summary {
  min-width: 0;
  align-self: start;
}

.flowme-experience-pay-wrap .flowme-exp-product__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}

.flowme-experience-pay-wrap .flowme-exp-product__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
  text-align: left;
}

.flowme-experience-pay-wrap .flowme-exp-product__meta li {
  list-style: none !important;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
  background: #f5f5f5;
  border: 1px solid #ececec;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.flowme-experience-pay-wrap .flowme-exp-product__excerpt {
  margin: 0 0 1.25rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.65;
}

.flowme-experience-pay-wrap .flowme-exp-product__excerpt p {
  margin: 0 0 0.65rem;
}

.flowme-experience-pay-wrap .flowme-exp-product__excerpt p:last-child {
  margin-bottom: 0;
}

.flowme-experience-pay-wrap .flowme-exp-product__price {
  margin: 0 0 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.flowme-experience-pay-wrap .flowme-exp-product__price-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.25rem;
}

.flowme-experience-pay-wrap .flowme-exp-product__price-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
}

.flowme-experience-pay-wrap .flowme-exp-product__price-value.is-free {
  color: #0f7a3a;
}

.flowme-experience-pay-wrap .flowme-exp-product__actions .fw-btn {
  min-width: min(100%, 320px);
  border-radius: 6px !important;
}

.flowme-experience-pay-wrap .flowme-exp-product__media {
  position: relative;
  min-width: 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  background: #f8f8f8;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0.75rem;
}

.flowme-experience-pay-wrap .flowme-exp-product__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: transparent;
}

.flowme-experience-pay-wrap .flowme-exp-product__image--placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(145deg, #f3f3f3 0%, #e8e8e8 100%);
}

@media (max-width: 520px) {
  .flowme-experience-pay-wrap .flowme-exp-product {
    grid-template-columns: 1fr !important;
  }

  .flowme-experience-pay-wrap .flowme-exp-product__media {
    order: -1;
    min-height: 220px;
    max-height: 280px;
  }
}

/* —— Modal checkout —— */
.flowme-exp-checkout[hidden],
.flowme-exp-checkout:not(.is-open) {
  display: none !important;
}

.flowme-exp-checkout.is-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100050 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.flowme-exp-checkout {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 0;
  box-sizing: border-box;
}

.flowme-exp-checkout[hidden] {
  display: none !important;
}

.flowme-exp-checkout__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.flowme-exp-checkout__box {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  color: #111;
}

.flowme-exp-checkout__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 0;
  background: #f5f5f5;
  border-radius: 6px;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
}

.flowme-exp-checkout__close:hover {
  background: #eee;
  color: #111;
}

.flowme-exp-checkout__title {
  margin: 0 2rem 0.35rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
}

.flowme-exp-checkout__amount {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: #111;
}

.flowme-exp-checkout__subtitle {
  margin: 0 0 1.25rem;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.55;
}

.flowme-exp-checkout #exp-pay-guest-fields[hidden],
.flowme-exp-checkout #exp-pay-guest-fields.is-hidden {
  display: none !important;
}

.flowme-exp-checkout #exp-pay-remember[hidden],
.flowme-exp-checkout #exp-pay-remember.is-hidden {
  display: none !important;
}

.flowme-exp-checkout__logged {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #444;
}

.flowme-exp-checkout__remember-text {
  margin: 0;
  line-height: 1.55;
}

.flowme-exp-checkout__switch {
  display: inline;
  margin: 0 0 0 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: #111;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.flowme-exp-checkout__switch:hover {
  color: #555;
}

.flowme-exp-checkout__fields {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.flowme-exp-field {
  display: block;
}

.flowme-exp-field__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.35rem;
}

.flowme-experience-pay-wrap .form-input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #111;
  background: #fff;
  box-sizing: border-box;
}

.flowme-experience-pay-wrap .form-input:focus {
  outline: none;
  border-color: #111;
}

.flowme-exp-checkout__error {
  color: #b42318;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.flowme-exp-checkout__error[hidden] {
  display: none !important;
}

.flowme-exp-checkout__stripe-wrap {
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ececec;
}

.flowme-exp-checkout__stripe {
  min-height: 120px;
  margin-bottom: 0.5rem;
}

.flowme-exp-checkout__hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #666;
}

.flowme-exp-checkout__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flowme-exp-checkout .fw-btn,
.flowme-exp-checkout__actions .fw-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 6px !important;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.flowme-exp-checkout .fw-btn--primary {
  background: #111;
  color: #fff;
}

.flowme-exp-checkout .fw-btn--ghost,
.flowme-exp-checkout__cancel {
  background: #fff;
  border: 1px solid #ddd;
  color: #555;
  min-height: 48px;
  padding: 0 1.5rem;
}

body.flowme-exp-checkout-open {
  overflow: hidden;
}

.flowme-exp-product__repurchase-note {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #555;
}
