/* Front end theme for MemberPress pages */

.mp_wrapper {
  overflow: inherit;
  /* margin: 10px 0; */
  /* max-width: 740px !important; */
  /* margin: 0 auto; */
  box-sizing: border-box;
}

.mp_wrapper h1,
.mp_wrapper h2,
.mp_wrapper h3 {
  font-weight: normal;
  border: none;
  outline: none;
  background: none;
}

.mp_wrapper img {
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.mp_wrapper :focus {
  outline: 0;
}

.mp_wrapper form {
  text-align: left;
}

.mp_wrapper textarea,
.mp_wrapper select,
.mp_wrapper input[type=text],
.mp_wrapper input[type=url],
.mp_wrapper input[type=email],
.mp_wrapper input[type=tel],
.mp_wrapper input[type=number],
.mp_wrapper input[type=password] {
  width: 100%;
  outline-style: none;
  font-size: inherit;
  font-family: inherit;
  padding: 10px;
  letter-spacing: normal;
  border: 1px solid rgba(0, 0, 0, 0.2);
  /* margin-bottom: 10px !important; */
  display: inline;
  box-sizing: border-box;
}

.mp_wrapper textarea:focus-visible,
.mp_wrapper select:focus-visible,
.mp_wrapper input[type=text]:focus-visible,
.mp_wrapper input[type=url]:focus-visible,
.mp_wrapper input[type=email]:focus-visible,
.mp_wrapper input[type=tel]:focus-visible,
.mp_wrapper input[type=number]:focus-visible,
.mp_wrapper input[type=password]:focus-visible,
.mp_wrapper .iti__selected-flag:focus-visible {
  border: 2px solid #bcbcbc;
}

.mp_wrapper input[type=checkbox]:focus-visible,
.mp_wrapper input[type=radio]:focus-visible {
  outline: 2px solid #bcbcbc;
}

.mp_wrapper input[type=file]:focus-visible {
  border: 2px solid #bcbcbc;
}

.mepr-stripe-card-errors,
.mepr-paypal-card-errors,
.mepr-square-errors,
.mepr-paypal-vaulting-errors {
  color: #eb1c26;
}

.mp_wrapper label,
.mp_wrapper .mp-row {
  font-size: inherit;
  font-family: inherit;
  letter-spacing: normal;
  display: inline-block;
/*
  font-weight: bold;
  margin-bottom: 5px;
*/
}

.mp_wrapper .mepr-radios-field,
.mp_wrapper .mepr-checkbox-field,
.mp_wrapper .mepr-checkboxes-field,
.mp_wrapper label {
  width: 100% !important;
  display: inline-block;
}

.mp_wrapper .mp-form-row {
  margin-bottom: 10px;
  width: 100% !important;
}

.mp_wrapper input[type=image] {
  border: none !important;
  padding: 0 !important;
  width: auto !important;
}

.mp_wrapper textarea {
  outline-style: none;
  font-size: inherit;
  font-family: inherit;
  letter-spacing: normal;
  padding: 4px 2px 4px 2px;
  resize: none;
}

.mp_wrapper .mepr_price label,
.mp_wrapper .mepr_price .mepr_price_cell,
.mp_wrapper .mepr_price .mepr_price_cell_label {
  display: inline !important;
}

.mepr-login-form-wrap input[name=rememberme]:focus-visible {
  outline: 2px solid #bcbcbc;
}

.mepr-login-form-wrap a:focus-visible,
.mepr-form label a:focus-visible {
  color: #06429e;
  font-weight: 500;
  text-decoration: underline;
}

table.mp-table thead,
table.mp-table tbody,
table.mp-table tfoot,
table.mp-table tr,
table.mp-table th,
table.mp-table td {
  border: 0;
  font-family: inherit;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
  margin: 0;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
}

table.mp-table {
  display: block;
  border-collapse: separate;
  border-spacing: 0;
  border-width: 1px 0 0 1px !important;
  margin-bottom: 24px;
  width: 100% !important;
  display: table;
}

table.mp-table thead {
  display: table-header-group;
}

table.mp-table tfoot {
  display: table-footer-group;
}

table.mp-table tr {
  display: table-row;
}

table.mp-table,
table.mp-table th,
table.mp-table td {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

table.mp-table th,
table.mp-table td {
  display: table-cell;
  padding: 8px;
  border-width: 0 1px 1px 0 !important;
}

table.mp-table th {
  text-align: left;
  font-weight: bold;
  text-transform: uppercase;
}

table.mp-table .mp-currency-cell {
  text-align: right;
}

.mepr_error, .mepr_updated {
  padding: 5px 5px 5px 15px !important;
  margin-bottom: 25px !important;
  box-sizing: border-box !important;
  width: 100%;
}

.mepr_error {
  background-color: #feb9bb !important;
  border: 1px solid #d40022 !important;
}

.mepr_error ul {
  padding: 0 0 5px 0 !important;
  margin: 0 !important;
}

.mepr_error ul li {
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mepr_updated {
  background-color: #def4c5 !important;
  border: 1px solid #4d8c2e !important;
}

.mepr-form input.invalid,
.mepr-form select.invalid,
.mepr-form textarea.invalid,
.mepr-form label.mepr-checkbox-field.invalid,
.mepr-form div.mepr-checkboxes-field.invalid,
.mepr-form div.mepr-radios-field.invalid {
  border: 2px solid red !important;
  background-color: #FF6666 !important;
}

.mepr-form .mepr-coupon-code.valid {
  border: 2px solid #61cb7f;
  background-color: #89e8a4;
}

.validation.failed:after {
  color: red;
  content: 'Validation failed';
}

.validation.passed:after {
  color: green;
  content: 'Validation passed';
}

.mepr-radios-field, .mepr-checkboxes-field {
  display: inline-block !important;
  width: 250px !important;
  margin-bottom: 10px !important;
}

.mepr-radios-field-row, .mepr-checkboxes-field-row {
  display: block !important;
  padding-left: 0 !important;
  margin-left: 2px !important;
}

input.mepr-form-radios-input, input.mepr-form-checkboxes-input {
  padding-left: 0;
  margin-left: 0;
  width: auto;
  margin-right: 5px;
  display: inline !important;
  text-align: left;
}

label.mepr-form-radios-label, label.mepr-form-checkboxes-label {
  display: inline !important;
  width: 222px !important;
  max-width: 222px !important;
  min-width: 222px !important;
}

.mp_wrapper .mp-form-row label {
  display: inline !important;
}

.mp_wrapper .mp-form-row {
  position: relative;
}

.mp_wrapper .mp-form-row .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.mp_wrapper .mp-form-row fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.mp-form-row-group-wrapper {
  position: relative;
  width: 50%;
}

.mp_wrapper fieldset.mepr-payment-methods-wrapper {
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: 0;
}

.mp_wrapper fieldset.mepr-payment-methods-wrapper legend {
  margin: 18px 0;
  font-size: 18px;
  font-weight: 400;
}

.mp_wrapper .mp-form-row.mp-address-group label.placeholder-text,
.mp_wrapper .mp-form-row .mp-form-row-group label.placeholder-text,
#mepr_loginform .mp-form-label label.placeholder-text,
.mepr_coupon label.placeholder-text {
  position: absolute;
  top: 9px;
  left: 13px;
  z-index: 999;
  width: auto !important;
  color: #757575;
  font-size: 16px !important;
  pointer-events: none;
  transform: translate(0);
  transition: transform 0.15s ease-out, font-size 0.15s ease-out, background-color 0.2s ease-out, color 0.15s ease-out;
}

.mp_wrapper .mp-form-row .mp-form-row-group label.placeholder-text {
  top: 7px;
}

.mp_wrapper .mp-form-row.mp-address-group label.placeholder-text.active,
.mp_wrapper .mp-form-row .mp-form-row-group label.placeholder-text.active,
#mepr_loginform .mp-form-label label.placeholder-text.active,
.mepr-pro-template .mp_wrapper .mepr_mepr-address-country .mp-form-label label.placeholder-text,
.mepr-pro-template .mp_wrapper .mepr_mepr-address-state .mp-form-label label.placeholder-text {
  transform: translate(0, -20px);
  padding: 0 5px;
  background: #fff;
  color: #06429e;
  font-size: 13px !important;
}

.mp_wrapper .mp-form-row.mp-address-group .mp-form-label .cc-error {
  display: none !important;
}

.mepr-hidden {
  display: none;
}

.mepr-visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 0;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

/* users subscriptions list shortcode css */
.mp_users_subscriptions_list ul {
  list-style:none !important;
}

.mp_users_subscriptions_list ul li {
  padding:5px !important;
  margin:0 !important;
}

li.mp_users_subscriptions_list_alt {
  background:#eee;
}

/* Modern Paywall style  */

.mepr-paywall-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
}

.mepr-paywall-container {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  background-color: #fff;
  border-radius: 2px;
  padding: 20px 15em 3em;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 50%;
  min-height: 50vh;
  transition: all 0.3s ease-out;
}
.mepr-paywall-container.active {
  transition: all 0.3s ease-out;
  top: 20%;
  min-height: 80vh;
}

body:has(.mepr-paywall-overlay) {
  overflow: hidden;
}

@media (max-width: 767px) {
  .mepr-paywall-container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.mepr-order-bump-required input[name="mepr_order_bumps[]"] {
  pointer-events: none !important;
  opacity: 0.4 !important;
}

/* PayPal Vaulting */
.mepr-paypal-vaulting-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 750px;
}

.mepr-paypal-paylater-message {
  margin-top: 10px;
}

.mepr-paypal-vaulting-or {
  display: flex;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  font-size: 13px;
  color: #848484;
  margin: 20px 0;
}

.mepr-paypal-vaulting-or::before,
.mepr-paypal-vaulting-or::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ccc;
}

.mepr-paypal-vaulting-or::before {
  margin-right: 10px;
}

.mepr-paypal-vaulting-or::after {
  margin-left: 10px;
}

.mepr-paypal-vaulting-card-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mepr-card-field-number {
  width: 100%;
}

.mepr-card-fields-row {
  display: flex;
  gap: 12px;
}

.mepr-card-field-expiry,
.mepr-card-field-cvv {
  flex: 1;
}

/* Hide the Submit button when PayPal is selected without card fields. */
.mepr-paypal-vaulting-hide-submit .mepr-submit {
  display: none;
}

/* RTL Support*/
.rtl .mp_wrapper form {
  text-align: right;
}
