/* East End Web Subscriptions — Public Styles */

/* ── Shared ───────────────────────────────────── */

.eew-sub-form,
.eew-pay-form,
.eew-manage-subs {
  max-width: 540px;
  margin: 0 auto;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  font-size: 15px;
  color: #1a1a2e;
}

.eew-sub-form *,
.eew-pay-form *,
.eew-manage-subs * {
  box-sizing: border-box;
}

/* ── Fields ───────────────────────────────────── */

.eew-sub-field,
.eew-pay-field,
.eew-manage-field {
  margin-bottom: 16px;
}

.eew-sub-field label,
.eew-pay-field label,
.eew-manage-field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
}

.eew-sub-input,
.eew-pay-input,
.eew-manage-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
}

.eew-sub-input:focus,
.eew-pay-input:focus,
.eew-manage-input:focus {
  border-color: #635bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.15);
}

/* ── Buttons ──────────────────────────────────── */

.eew-sub-btn,
.eew-pay-btn,
.eew-manage-btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  background: #635bff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.eew-sub-btn:hover,
.eew-pay-btn:hover,
.eew-manage-btn:hover {
  background: #4b44d9;
}

.eew-sub-btn-new-card,
.eew-sub-btn-secondary {
  background: transparent;
  color: #635bff;
  border: 1px solid #635bff;
}

.eew-sub-btn-new-card:hover,
.eew-sub-btn-secondary:hover {
  background: #f5f4ff;
}

.eew-sub-btn-secondary {
  margin-top: 12px;
}

/* ── Login link ───────────────────────────────── */

.eew-sub-login-link {
  margin-top: 14px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

.eew-sub-login-link a {
  color: #635bff;
  text-decoration: none;
  font-weight: 600;
}

.eew-sub-login-link a:hover {
  text-decoration: underline;
}

.eew-manage-btn-cancel {
  background: #d9534f;
}

.eew-manage-btn-cancel:hover {
  background: #c9302c;
}

.eew-manage-btn-remove-pm {
  background: transparent;
  color: #d9534f;
  border: 1px solid #d9534f;
  padding: 4px 12px;
  font-size: 13px;
}

.eew-manage-btn-remove-pm:hover {
  background: #fdf2f2;
}

/* ── Existing subscription notice ──────────────── */

.eew-sub-existing-notice {
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 6px;
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  font-size: 14px;
  color: #3730a3;
}

.eew-sub-existing-notice p {
  margin: 0;
}

.eew-sub-existing-notice a {
  color: #635bff;
  font-weight: 600;
  text-decoration: none;
}

.eew-sub-existing-notice a:hover {
  text-decoration: underline;
}

/* ── Product / Plan Cards ─────────────────────── */

.eew-sub-product-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.eew-sub-product-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.eew-sub-product-card p {
  margin: 0 0 12px;
  color: #555;
}

.eew-sub-price-option {
  display: block;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.eew-sub-price-option:hover {
  background: #f5f4ff;
  border-color: #635bff;
}

.eew-sub-price-option input[type="radio"] {
  margin-right: 8px;
}

/* ── Saved Cards ──────────────────────────────── */

.eew-sub-saved-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.eew-sub-saved-card:hover {
  border-color: #635bff;
}

.eew-sub-card-brand,
.eew-manage-pm-brand {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #e8e8ed;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.eew-sub-card-last4,
.eew-manage-pm-last4 {
  font-family: monospace;
}

.eew-sub-card-exp,
.eew-manage-pm-exp {
  color: #888;
  font-size: 13px;
}

/* ── OR divider ───────────────────────────────── */

.eew-sub-or {
  text-align: center;
  color: #999;
  margin: 16px 0;
  font-size: 13px;
}

/* ── Payment Element container ────────────────── */

.eew-sub-payment-element,
.eew-pay-payment-element {
  margin-bottom: 20px;
  min-height: 80px;
}

/* ── Result ───────────────────────────────────── */

.eew-sub-result-message,
.eew-pay-result-message {
  padding: 16px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.eew-sub-result-link {
  display: inline-block;
  margin-top: 10px;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}
  font-weight: 600;
  text-align: center;
}

.eew-sub-success,
.eew-pay-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.eew-sub-failure,
.eew-pay-failure {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ── Loading ──────────────────────────────────── */

.eew-sub-loading p,
.eew-pay-loading p,
.eew-manage-loading p {
  text-align: center;
  color: #888;
  font-style: italic;
}

/* ── Errors ───────────────────────────────────── */

.eew-sub-error,
.eew-pay-error,
.eew-manage-error {
  padding: 12px 16px;
  margin-top: 12px;
  border-radius: 6px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  font-size: 14px;
}

/* ── Manage Subscriptions ─────────────────────── */

.eew-manage-sub-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.eew-manage-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.eew-manage-sub-plan {
  font-weight: 700;
  font-size: 16px;
}

.eew-manage-sub-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eew-manage-status-active,
.eew-manage-status-trialing {
  background: #ecfdf5;
  color: #065f46;
}

.eew-manage-status-past_due {
  background: #fffbeb;
  color: #92400e;
}

.eew-manage-status-canceled,
.eew-manage-status-unpaid {
  background: #fef2f2;
  color: #991b1b;
}

.eew-manage-sub-details {
  color: #555;
  margin-bottom: 12px;
}

.eew-manage-sub-actions {
  display: flex;
  gap: 8px;
}

.eew-manage-pm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.eew-manage-empty {
  color: #888;
  font-style: italic;
}

/* ── Fixed amount display ─────────────────────── */

.eew-pay-fixed-amount {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 16px 0;
}

.eew-pay-description {
  text-align: center;
  color: #555;
  margin-bottom: 16px;
}


/* ── Greeting ─────────────────────────────────── */

.eew-sub-greeting,
.eew-pay-greeting {
  font-size: 16px;
  margin-bottom: 16px;
}

/* ── Restricted notice ────────────────────────── */

.eew-restricted-notice {
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f9fafb;
  text-align: center;
}

.eew-restricted-notice a {
  color: #635bff;
  font-weight: 600;
}
