/* WDV Public Styles */
:root {
  --wdv-brand: #6c63ff;
}

/* Express checkout badge */
.wdv-express-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ede9ff;
  color: var(--wdv-brand);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Free download form */
.wdv-free-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}

.wdv-email-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border-color .15s;
}
.wdv-email-input:focus { border-color: var(--wdv-brand); }

.wdv-free-submit {
  background: var(--wdv-brand) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: opacity .15s !important;
}
.wdv-free-submit:hover { opacity: .88; }
.wdv-free-submit:disabled { opacity: .6; cursor: not-allowed !important; }

.wdv-form-msg {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 500;
}
.wdv-form-msg.success { background: #d1fae5; color: #065f46; }
.wdv-form-msg.error   { background: #fee2e2; color: #991b1b; }

/* Free button on product page */
.wdv-free-btn {
  background: var(--wdv-brand) !important;
  color: #fff !important;
  border-color: var(--wdv-brand) !important;
}

/* Express checkout — hide all billing fields except email */
body.wdv-express #billing_first_name_field,
body.wdv-express #billing_last_name_field,
body.wdv-express #billing_company_field,
body.wdv-express #billing_address_1_field,
body.wdv-express #billing_address_2_field,
body.wdv-express #billing_city_field,
body.wdv-express #billing_postcode_field,
body.wdv-express #billing_country_field,
body.wdv-express #billing_state_field,
body.wdv-express #billing_phone_field,
body.wdv-express #ship-to-different-address,
body.wdv-express .woocommerce-shipping-fields,
body.wdv-express .woocommerce-additional-fields,
body.wdv-express #order_comments_field {
    display: none !important;
}

/* Keep only email field visible */
body.wdv-express #billing_email_field {
    display: block !important;
}

/* Express checkout badge */
