#wpforms-panel-fields .wpforms-stripe-payment-element,
#wpforms-panel-revisions .wpforms-stripe-payment-element,
#wpforms-panel-ai-form .wpforms-stripe-payment-element {
  width: 60%;
}

#wpforms-panel-fields .wpforms-stripe-payment-element.above input::-webkit-input-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.above input::-webkit-input-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.above input::-webkit-input-placeholder {
  color: transparent;
}

#wpforms-panel-fields .wpforms-stripe-payment-element.above input:-moz-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.above input:-moz-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.above input:-moz-placeholder {
  color: transparent;
}

#wpforms-panel-fields .wpforms-stripe-payment-element.above input::-moz-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.above input::-moz-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.above input::-moz-placeholder {
  color: transparent;
}

#wpforms-panel-fields .wpforms-stripe-payment-element.above input:-ms-input-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.above input:-ms-input-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.above input:-ms-input-placeholder {
  color: transparent;
}

#wpforms-panel-fields .wpforms-stripe-payment-element.floating input::-webkit-input-placeholder,
#wpforms-panel-fields .wpforms-stripe-payment-element.floating select::-webkit-input-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.floating input::-webkit-input-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.floating select::-webkit-input-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.floating input::-webkit-input-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.floating select::-webkit-input-placeholder {
  color: #999999;
}

#wpforms-panel-fields .wpforms-stripe-payment-element.floating input:-moz-placeholder,
#wpforms-panel-fields .wpforms-stripe-payment-element.floating select:-moz-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.floating input:-moz-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.floating select:-moz-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.floating input:-moz-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.floating select:-moz-placeholder {
  color: #999999;
}

#wpforms-panel-fields .wpforms-stripe-payment-element.floating input::-moz-placeholder,
#wpforms-panel-fields .wpforms-stripe-payment-element.floating select::-moz-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.floating input::-moz-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.floating select::-moz-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.floating input::-moz-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.floating select::-moz-placeholder {
  color: #999999;
}

#wpforms-panel-fields .wpforms-stripe-payment-element.floating input:-ms-input-placeholder,
#wpforms-panel-fields .wpforms-stripe-payment-element.floating select:-ms-input-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.floating input:-ms-input-placeholder,
#wpforms-panel-revisions .wpforms-stripe-payment-element.floating select:-ms-input-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.floating input:-ms-input-placeholder,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.floating select:-ms-input-placeholder {
  color: #999999;
}

#wpforms-panel-fields .wpforms-stripe-payment-element.floating label,
#wpforms-panel-revisions .wpforms-stripe-payment-element.floating label,
#wpforms-panel-ai-form .wpforms-stripe-payment-element.floating label {
  display: none;
}

#wpforms-panel-fields .wpforms-stripe-payment-element input[type=text],
#wpforms-panel-fields .wpforms-stripe-payment-element select,
#wpforms-panel-revisions .wpforms-stripe-payment-element input[type=text],
#wpforms-panel-revisions .wpforms-stripe-payment-element select,
#wpforms-panel-ai-form .wpforms-stripe-payment-element input[type=text],
#wpforms-panel-ai-form .wpforms-stripe-payment-element select {
  width: 100%;
  min-width: initial;
}

#wpforms-panel-fields .wpforms-stripe-payment-element .wpforms-sub-label,
#wpforms-panel-revisions .wpforms-stripe-payment-element .wpforms-sub-label,
#wpforms-panel-ai-form .wpforms-stripe-payment-element .wpforms-sub-label {
  margin-bottom: 5px;
  margin-inline-start: 1px;
}

#wpforms-panel-fields .wpforms-stripe-payment-element .wpforms-field-row,
#wpforms-panel-revisions .wpforms-stripe-payment-element .wpforms-field-row,
#wpforms-panel-ai-form .wpforms-stripe-payment-element .wpforms-field-row {
  overflow: hidden;
  container-type: inline-size;
  container-name: wpforms-field-row-responsive;
}

@container wpforms-field-row-responsive (max-width: 200px) {
  #wpforms-panel-fields .wpforms-stripe-payment-element .wpforms-field-row .wpforms-one-half,
  #wpforms-panel-revisions .wpforms-stripe-payment-element .wpforms-field-row .wpforms-one-half,
  #wpforms-panel-ai-form .wpforms-stripe-payment-element .wpforms-field-row .wpforms-one-half {
    float: none;
    width: 100%;
  }
  #wpforms-panel-fields .wpforms-stripe-payment-element .wpforms-field-row .wpforms-stripe-cvc,
  #wpforms-panel-revisions .wpforms-stripe-payment-element .wpforms-field-row .wpforms-stripe-cvc,
  #wpforms-panel-ai-form .wpforms-stripe-payment-element .wpforms-field-row .wpforms-stripe-cvc {
    margin-top: 10px;
  }
  #wpforms-panel-fields .wpforms-stripe-payment-element .wpforms-field-row .wpforms-stripe-cardnumber-pics,
  #wpforms-panel-revisions .wpforms-stripe-payment-element .wpforms-field-row .wpforms-stripe-cardnumber-pics,
  #wpforms-panel-ai-form .wpforms-stripe-payment-element .wpforms-field-row .wpforms-stripe-cardnumber-pics {
    display: none;
  }
}

#wpforms-panel-fields .wpforms-stripe-payment-element .wpforms-stripe-cvc,
#wpforms-panel-revisions .wpforms-stripe-payment-element .wpforms-stripe-cvc,
#wpforms-panel-ai-form .wpforms-stripe-payment-element .wpforms-stripe-cvc {
  position: relative;
}

#wpforms-panel-fields .wpforms-stripe-payment-element .wpforms-stripe-cvc svg,
#wpforms-panel-revisions .wpforms-stripe-payment-element .wpforms-stripe-cvc svg,
#wpforms-panel-ai-form .wpforms-stripe-payment-element .wpforms-stripe-cvc svg {
  position: absolute;
  bottom: 8px;
  inset-inline-end: 12px;
  opacity: 0.75;
}

#wpforms-panel-fields .wpforms-stripe-payment-element .wpforms-stripe-cardnumber-pics,
#wpforms-panel-revisions .wpforms-stripe-payment-element .wpforms-stripe-cardnumber-pics,
#wpforms-panel-ai-form .wpforms-stripe-payment-element .wpforms-stripe-cardnumber-pics {
  position: absolute;
  bottom: 7px;
  inset-inline-end: 12px;
  width: 136px;
  max-width: calc( 100% - 24px);
  height: 24px;
  background-image: url("../../../images/integrations/stripe/cc-preview.png");
  background-repeat: no-repeat;
  background-size: 136px 24px;
  background-position: 100% 50%;
}

.rtl #wpforms-panel-fields .wpforms-stripe-payment-element .wpforms-stripe-cardnumber-pics, .rtl
#wpforms-panel-revisions .wpforms-stripe-payment-element .wpforms-stripe-cardnumber-pics, .rtl
#wpforms-panel-ai-form .wpforms-stripe-payment-element .wpforms-stripe-cardnumber-pics {
  background-position: 0 50%;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card.size-small .wpforms-stripe-payment-element,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card.size-small .wpforms-stripe-payment-element,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card.size-small .wpforms-stripe-payment-element {
  width: 25%;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card.size-large .wpforms-stripe-payment-element,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card.size-large .wpforms-stripe-payment-element,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card.size-large .wpforms-stripe-payment-element {
  width: 100%;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card .format-selected:not(.wpforms-stripe-payment-element),
#wpforms-panel-revisions .wpforms-field-stripe-credit-card .format-selected:not(.wpforms-stripe-payment-element),
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card .format-selected:not(.wpforms-stripe-payment-element) {
  width: 100%;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card.sublabel_hide .floating input::-webkit-input-placeholder,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card.sublabel_hide .floating input::-webkit-input-placeholder,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card.sublabel_hide .floating input::-webkit-input-placeholder {
  color: transparent;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card.sublabel_hide .floating input:-moz-placeholder,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card.sublabel_hide .floating input:-moz-placeholder,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card.sublabel_hide .floating input:-moz-placeholder {
  color: transparent;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card.sublabel_hide .floating input::-moz-placeholder,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card.sublabel_hide .floating input::-moz-placeholder,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card.sublabel_hide .floating input::-moz-placeholder {
  color: transparent;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card.sublabel_hide .floating input:-ms-input-placeholder,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card.sublabel_hide .floating input:-ms-input-placeholder,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card.sublabel_hide .floating input:-ms-input-placeholder {
  color: transparent;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card .wpforms-field-preview-wrap,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card .wpforms-field-preview-wrap,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card .wpforms-field-preview-wrap {
  position: absolute;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: auto;
  height: 40px;
  top: 0;
  inset-inline-start: 0;
  bottom: 0;
  font-size: 16px;
  line-height: 40px;
  color: #666666;
  container-type: inline-size;
  container-name: wpforms-field-preview-wrap-small;
}

@container wpforms-field-preview-wrap-small (max-width: 280px) {
  #wpforms-panel-fields .wpforms-field-stripe-credit-card .wpforms-field-preview-wrap .wpforms-field-stripe-credit-card-number-expcvc-preview,
  #wpforms-panel-revisions .wpforms-field-stripe-credit-card .wpforms-field-preview-wrap .wpforms-field-stripe-credit-card-number-expcvc-preview,
  #wpforms-panel-ai-form .wpforms-field-stripe-credit-card .wpforms-field-preview-wrap .wpforms-field-stripe-credit-card-number-expcvc-preview {
    display: none;
  }
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card.size-small .wpforms-field-preview-wrap,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card.size-small .wpforms-field-preview-wrap,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card.size-small .wpforms-field-preview-wrap {
  width: 25%;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card.size-medium .wpforms-field-preview-wrap,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card.size-medium .wpforms-field-preview-wrap,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card.size-medium .wpforms-field-preview-wrap {
  width: 60%;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card.size-large .wpforms-field-preview-wrap,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card.size-large .wpforms-field-preview-wrap,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card.size-large .wpforms-field-preview-wrap {
  width: 100%;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card.wpforms-field-drag-to-column .wpforms-field-preview-wrap,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card.wpforms-field-drag-to-column .wpforms-field-preview-wrap,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card.wpforms-field-drag-to-column .wpforms-field-preview-wrap {
  width: 100%;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-placeholder-preview,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-placeholder-preview,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-placeholder-preview {
  display: flex;
  line-height: 40px;
  padding-block: 0;
  padding-inline-end: 0;
  padding-inline-start: 10px;
  overflow-x: hidden;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-placeholder-preview svg,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-placeholder-preview svg,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-placeholder-preview svg {
  width: 24px;
  min-width: 24px;
  fill: #000000;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-placeholder-preview span,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-placeholder-preview span,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-placeholder-preview span {
  opacity: 0.5;
  padding-inline-start: 10px;
  white-space: nowrap;
}

#wpforms-panel-fields .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-expcvc-preview,
#wpforms-panel-revisions .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-expcvc-preview,
#wpforms-panel-ai-form .wpforms-field-stripe-credit-card .wpforms-field-stripe-credit-card-number-expcvc-preview {
  display: block;
  width: fit-content;
  padding: 0 20px 0 0;
  opacity: 0.5;
  white-space: nowrap;
}

#wpforms-panel-fields .wpforms-layout-column .wpforms-field-stripe-credit-card.size-small .wpforms-field-preview-wrap, #wpforms-panel-fields .wpforms-layout-column .wpforms-field-stripe-credit-card.size-medium .wpforms-field-preview-wrap, #wpforms-panel-fields .wpforms-layout-column .wpforms-field-stripe-credit-card.size-large .wpforms-field-preview-wrap,
#wpforms-panel-revisions .wpforms-layout-column .wpforms-field-stripe-credit-card.size-small .wpforms-field-preview-wrap,
#wpforms-panel-revisions .wpforms-layout-column .wpforms-field-stripe-credit-card.size-medium .wpforms-field-preview-wrap,
#wpforms-panel-revisions .wpforms-layout-column .wpforms-field-stripe-credit-card.size-large .wpforms-field-preview-wrap,
#wpforms-panel-ai-form .wpforms-layout-column .wpforms-field-stripe-credit-card.size-small .wpforms-field-preview-wrap,
#wpforms-panel-ai-form .wpforms-layout-column .wpforms-field-stripe-credit-card.size-medium .wpforms-field-preview-wrap,
#wpforms-panel-ai-form .wpforms-layout-column .wpforms-field-stripe-credit-card.size-large .wpforms-field-preview-wrap {
  width: 100%;
}


/* Focus Management Styles - WCAG 2.1 Compliance */
/* Added for keyboard accessibility and screen reader support */

/* Button Focus Styles */
.hvac-button:focus,
.hvac-content .button:focus,
.hvac-content button:focus,
.hvac-content input[type="submit"]:focus,
.hvac-email-submit:focus,
.hvac-filter-submit:focus,
.hvac-certificate-actions button:focus,
.hvac-certificate-actions a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
    border-radius: 4px;
}

/* Input Focus Styles */
.hvac-form-input:focus,
.hvac-content input[type="text"]:focus,
.hvac-content input[type="email"]:focus,
.hvac-content input[type="password"]:focus,
.hvac-content input[type="url"]:focus,
.hvac-content textarea:focus,
.hvac-content select:focus,
.hvac-email-form-row input:focus,
.hvac-email-form-row textarea:focus,
.hvac-filter-group input:focus,
.hvac-filter-group select:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    border-color: #005fcc;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* Link Focus Styles */
.hvac-content a:focus,
.hvac-event-link:focus,
.hvac-certificate-link:focus,
.hvac-attendee-profile-icon:focus,
.hvac-dashboard-nav a:focus,
.hvac-email-navigation a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    text-decoration: underline;
    background-color: rgba(0, 95, 204, 0.1);
    border-radius: 2px;
}

/* Interactive Element Focus Styles */
.hvac-attendee-checkbox:focus,
.hvac-select-all-container input[type="checkbox"]:focus,
.hvac-modal-close:focus,
.hvac-certificate-table tr:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hvac-content *:focus {
        outline: 3px solid #000000;
        outline-offset: 2px;
        background-color: #ffff00;
        color: #000000;
    }
}

/* Focus-visible polyfill support */

/* Reset focus for mouse users while preserving keyboard accessibility */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Ensure focus is visible for keyboard users */
.js-focus-visible .focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}
