/* Keep the existing light verification panel and restore its dark text. */
.wpcv-route-cv-registration .bwdcv-registration-success h2 {
  color: #123c31 !important;
  -webkit-text-fill-color: #123c31 !important;
}
.wpcv-route-cv-registration .bwdcv-registration-success p {
  color: #23584a !important;
  -webkit-text-fill-color: #23584a !important;
}
.wpcv-route-cv-registration .bwdcv-registration-success a.btn {
  background: #5234ce !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.wpcv-route-cv-registration .bwdcv-verification-sent {
  color: #e0fff1 !important;
  -webkit-text-fill-color: #e0fff1 !important;
}

/* Ordinary text-input padding leaves no room for the native color swatch. */
.wpcv-live-content #signatureComboContainer :is(#textSignatureColor, #drawSignatureColor) {
  min-height: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  vertical-align: middle;
  cursor: pointer;
}
.wpcv-live-content #signatureComboContainer input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.wpcv-live-content #signatureComboContainer input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 3px;
}
.wpcv-live-content #signatureComboContainer input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 3px;
}
.wpcv-live-content #signatureComboContainer :is(.cv-color-picker-label, .cv-color-picker-drawlabel, #clearDrawSignature) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.wpcv-live-content .cv-subscription-products .bwdcv-product :is(.product-title, .product-description, .custom-meta, .custom-meta span, .custom-meta strong, .woocommerce-Price-amount) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* The existing payment dialog and WooCommerce form stay in charge of checkout. */
.wpcv-bf-functional #checkout-popup {
  width: min(1000px, calc(100% - 24px));
  padding: clamp(14px, 2.5vw, 22px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  color: #21182c;
}
.wpcv-bf-functional #bwdcv-checkout-title {
  font-size: clamp(16px, 3.3vw, 23px);
  line-height: 1.25;
  color: #21182c !important;
  -webkit-text-fill-color: #21182c !important;
}
.wpcv-bf-functional #close-popup {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 1;
  color: #fff !important;
  background: #5234ce;
  border-radius: 9px;
}
.wpcv-bf-functional #bwdcv-subscription-checkout-frame {
  display: block;
  height: min(720px, calc(100vh - 124px));
  height: min(720px, calc(100dvh - 124px));
  box-sizing: border-box;
}
.wpcv-bf-functional #bwdcv-loading-popup p {
  color: #21182c !important;
}

.wpcv-bf-embedded-checkout {
  background: #fff !important;
}
.wpcv-bf-embedded-checkout main#main {
  max-width: none !important;
  padding: 0 !important;
  min-height: 0;
}
.wpcv-bf-embedded-checkout .page-search-section {
  padding: 0;
}
.wpcv-bf-checkout .wpcv-live-content {
  --wc-form-color-text: #21182c;
  --wc-form-color-background: #fff;
  --wc-form-color-border: #8b7c97;
  max-width: 1040px;
  padding: clamp(14px, 3vw, 32px);
  border-radius: 16px;
  color: #21182c;
  background: #fff;
  color-scheme: light;
  box-sizing: border-box;
}
.wpcv-bf-embedded-checkout .wpcv-live-content {
  width: 100%;
  margin: 0 auto;
  border-radius: 0;
}
.wpcv-bf-embedded-checkout .wpcv-live-content .woocommerce {
  max-width: none !important;
  padding: 0 !important;
}
.wpcv-bf-checkout .wpcv-live-content :is(h1, h2, h3, h4, legend, label, label span, p, li, .amount, .wc-block-components-totals-item, .wc-block-components-order-summary-item, .wc-block-components-checkout-step__description, .wc-block-components-radio-control__label, .wc-block-components-radio-control__description, .payment_box) {
  color: #21182c !important;
  -webkit-text-fill-color: #21182c;
}
.wpcv-bf-checkout .wpcv-live-content a:not(.button):not(.wp-element-button) {
  color: #4929ac;
  -webkit-text-fill-color: currentColor;
  text-decoration: underline;
}
.wpcv-bf-checkout .wpcv-live-content :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]):not([type=file]), textarea, select) {
  color: #21182c !important;
  -webkit-text-fill-color: #21182c !important;
  border-color: #8b7c97 !important;
  background: #fff !important;
}
.wpcv-bf-checkout .wpcv-live-content .wc-block-components-text-input input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=hidden]):not([type=file]) {
  min-height: 54px;
  padding: 22px 12px 7px !important;
}
.wpcv-bf-checkout .wpcv-live-content :is(input, textarea)::placeholder {
  color: #62576d !important;
}
.wpcv-bf-checkout .wpcv-live-content :is(.wc-block-components-radio-control-accordion-option, .wc-block-components-order-summary, #payment) {
  background-color: #f7f5fb;
}
.wpcv-bf-checkout .wpcv-live-content :is(.wc-block-components-radio-control__input, .wc-block-components-checkbox__input) {
  accent-color: #5234ce;
}
.wpcv-bf-checkout .wpcv-live-content :is(.wc-block-components-checkout-place-order-button, #place_order) {
  min-height: 44px;
  border-radius: 10px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #5234ce !important;
}
.wpcv-bf-checkout .wpcv-live-content :is(.has-error input, input[aria-invalid="true"], .woocommerce-invalid input) {
  border-color: #a51f28 !important;
}
.wpcv-bf-checkout .wpcv-live-content :is(.wc-block-components-validation-error, .wc-block-components-validation-error p, .woocommerce-error, .woocommerce-error li) {
  color: #a51f28 !important;
  -webkit-text-fill-color: #a51f28 !important;
}
