.cp-card { border: 0; padding: 0; margin: 0; }
.cp-card-field {
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #c9ced6;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.cp-card-field:focus-within { border-color: #3b5bdb; box-shadow: 0 0 0 3px rgba(59, 91, 219, .15); }
.cp-card-field iframe { width: 100% !important; }
.cp-card-preview { color: #8a94a6; font-size: 15px; }
.cp-card-error { color: #b3261e; font-size: .9em; margin-top: 6px; min-height: 1em; }
.cp-card-error:empty { display: none; }
.cp-card-test {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff4d6;
  color: #7a5200;
  font-size: .8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cp-card-desc { margin: 0 0 10px; }

/* Accepted card logos (next to the payment method title) */
.cp-card-logos { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; vertical-align: middle; margin-left: 8px; }
.wc_payment_method .cp-card-logos { float: right; margin: 0; }
.cp-card-logo { display: inline-block; width: 38px !important; height: 24px !important; max-height: 24px !important; margin: 0 !important; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); background: #fff; object-fit: contain; float: none !important; }
.cp-card-logo--text { width: auto !important; padding: 0 6px; font-size: 10px; line-height: 24px; font-weight: 700; color: #334155; white-space: nowrap; }
.cp-card-label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 0; width: 100%; justify-content: space-between; }
@media (max-width: 480px) { .wc_payment_method .cp-card-logos { float: none; display: flex; margin-top: 6px; } .cp-card-logo { width: 32px !important; height: 20px !important; } }

/* Checkout notice (above the card fields) */
.cp-card-notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 6px; border: 1px solid; font-size: .92em; line-height: 1.45; }
.cp-card-notice p { margin: 0 0 6px; }
.cp-card-notice p:last-child { margin-bottom: 0; }
.cp-card-notice a { text-decoration: underline; }
.cp-card-notice--info { background: #eef4ff; border-color: #c9d8fb; color: #1e3a8a; }
.cp-card-notice--success { background: #ecfdf3; border-color: #b7ebcd; color: #14532d; }
.cp-card-notice--warning { background: #fff8e6; border-color: #f3d58a; color: #6b4a00; }

/* Subscriptions */
.cp-sub-terms { font-size: .85em; color: #555; font-weight: normal; }
.cp-sub { border: 1px solid #e2e6ec; border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; }
.cp-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cp-sub-head h3 { margin: 0; font-size: 1.1em; }
.cp-sub-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8em; font-weight: 600; background: #eef0f4; color: #374151; }
.cp-sub-status--active { background: #e7f6ec; color: #166534; }
.cp-sub-status--trial { background: #e8f0ff; color: #1e40af; }
.cp-sub-status--past_due, .cp-sub-status--on_hold { background: #fdecea; color: #9b1c1c; }
.cp-sub-status--paused { background: #fff6e0; color: #7a5200; }
.cp-sub-table th { width: 40%; }
.cp-sub-actions { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cp-sub-actions form { margin: 0; }
.cp-sub-card-form { margin-top: 12px; max-width: 460px; }
.cp-sub-history { margin-top: 12px; }
.cp-sub-history summary { cursor: pointer; font-weight: 600; }
.cp-sub-warn { margin: 10px 0 0 !important; }
/* My Account → Subscriptions: readable buttons in block themes too */
.cp-sub table.shop_table, .woocommerce-page .cp-sub table.shop_table { width: 100%; }
.cp-sub form { display: inline; }
.cp-sub .button { display: inline-block; margin: 4px 6px 4px 0; padding: .5em 1.1em; border: 1px solid #1f2937; border-radius: 6px; background: #fff; color: #1f2937; font: inherit; font-size: .9em; line-height: 1.3; cursor: pointer; text-decoration: none; }
.cp-sub .button:hover { background: #f3f4f6; }
.cp-sub .button.alt { background: #1f2937; color: #fff; }
.cp-sub .button.cp-danger, .cp-sub .button.cp-sub-cancel { border-color: #b91c1c; color: #b91c1c; }
/* Checkout block: keep the card box inside the checkout column (fieldsets default to min-width: min-content) */
.wc-block-checkout__payment-method, .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content { min-width: 0; }
.cp-card, .cp-card-field { min-width: 0; max-width: 100%; box-sizing: border-box; }
/* Card fee note */
.cp-card-fee-note { margin: 6px 0 10px; font-size: .9em; color: #4b5563; }

/* Lumara Pay (order-pay page) */
.cp-lumara { max-width: 460px; margin: 10px 0 24px; }
.cp-lumara-intro { margin-bottom: 12px; }
.cp-lumara-status { margin-top: 12px; font-weight: 600; }

/* Name on card */
.cp-card-holder { margin: 0 0 10px; }
.cp-card-holder label { display: block; margin: 0 0 4px; font-size: .92em; }
.cp-card-holder input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 12px; border: 1px solid #c9ced6; border-radius: 6px; background: #fff; font-size: 16px; }
.cp-card-holder input:focus { outline: none; border-color: #3b5bdb; box-shadow: 0 0 0 3px rgba(59, 91, 219, .15); }
