.mepr-hidden {
  display: none;
}

div#license {
  display:block;
}

hr {
  border:none;
  background-color:#CCC;
  height:1px;
  margin-top:12px;
  margin-bottom:13px;
}

.submit {
  margin:10px 0 5px 0;
  padding:0;
}

.mepr-options-hidden-pane {
  display:none;
  margin-top:0;
  padding-top:0;
}

textarea#mepr-custom-message {
  width: 500px;
  height: 100px;
}

#i18n .mepr-field-label {
  display: inline-block;
  width: 100px;
}

#mepr-integration-table,
#mepr-integration-table tr,
#mepr-integration-table tr td {
  vertical-align: top;
}

#mepr-integration-table {
  margin-top: -25px;
}

.mepr-integration-delete {
  float: right;
  margin-top: -10px;
}

.mepr-integration {
  margin: 0 0 5px 0;
  padding: 15px;
  border: 1px solid #999999;
  line-height: 30px;
  background-color: white;
}

.mepr-stripe-customize-payment-methods {
  font-weight: normal;
}

.mepr-stripe-payment-methods > p {
  color: #626262;
  margin-bottom: 22px;
}

.mepr-stripe-payment-method {
  margin-top: 12px;
}

.mepr-stripe-payment-method label {
  color: #1d2327;
}

.mepr-update-stripe-payment-methods {
  margin-top: 22px;
}

.mepr-update-stripe-payment-methods button i {
  font-size: inherit;
  color: inherit;
}

.mepr-update-stripe-payment-methods button {
  justify-content: center;
}

/* PayPal Payment Methods Modal */
.mepr-paypal-customize-payment-methods {
  font-weight: normal;
  margin-top: 15px;
}

.mepr-paypal-payment-methods > p {
  color: #626262;
  margin-bottom: 22px;
}

.mepr-paypal-section-header {
  font-weight: 600;
  color: #1d2327;
  margin-top: 20px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.mepr-paypal-section-header:first-child {
  margin-top: 0;
}

.mepr-paypal-payment-method {
  margin-top: 12px;
  display: flex;
  align-items: center;
}

.mepr-paypal-payment-method label {
  color: #1d2327;
}

.mepr-update-paypal-payment-methods {
  margin-top: 22px;
}

.mepr-update-paypal-payment-methods button {
  justify-content: center;
}

ul.custom_options_list {
  margin:18px;
  padding:15px;
  background-color: transparent;
  border: 1px solid #DFDFDF;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
}

.mepr-custom-field {
  padding: 15px;
  margin-bottom: 5px !important;
}

.mepr-custom-field input[type=text],
.mepr-custom-field select {
  margin-right: 15px !important;
}

.mepr-custom-field a.mepr-custom-field-remove,
.mepr-custom-field a.mepr-option-remove {
  float: right;
}

.mepr-clipboard-input {
  background: #015289 !important;
  color: white !important;
  display: inline-block !important;
}

/* Autoresponder Stuff */
/* #mepr-mailchimp,
#mepr-adv-aweber,
#mepr-getrepsonse,
#mepr-activecampaign,
#mepr-mailpoet,
#mepr-constantcontact,
#mepr-madmimi, */
.mepr-autoresponder-config {
  margin-top: 10px;
  margin-bottom: 10px;
}

#mepr-aweber-error,
#mepr-aweber-message {
  margin-bottom: 15px;
}

#mepr-aweber-api-code {
  width: 500px;
  height: 50px;
}

.mepr-payment-description {
  width: 35em;
}

.mepr-integration-payment-method-id {
  font-weight: bold;
}

#mepr-integration-separator-cell {
  padding-left: 15px;
}

.mepr-options-panel {
  padding-left: 10px;
}

.mepr-options-table tr td {
  vertical-align: top;
  width: 415px;
}

.mepr-integration-setup-form {
  vertical-align: top;
  display: inline-block;
  width: 33%;
}

.mepr-integration > .mp-row {
    margin-right: 35px;
    display: flex;
    gap: 20px;
}

.mepr-integration-gateway-form {
  vertical-align: top;
  display: inline-block;
}

.mepr-integration-gateway-form input[type=text] {
  width: 25em !important;
}

#mepr_tax_rates_box {
  border: 1px solid #ededed;
  width: 100%;
  max-height: 250px;
  overflow: scroll;
}

#mepr_custom_tax_rates {
  width: 100% !important;
}

.mepr-tax-rates-remove {
}

.form-table td.mepr-sub-box-wrapper {
  padding: 0 !important;
}

#mepr-license-key {
  width: 400px;
  max-width: 100%;
}

@media only screen and (max-width: 1061px) {
  .mepr-integration > .mp-row {
    display: block;
    margin-right: 0;
  }
  .mepr-integration-setup-form {
    vertical-align: top;
    display: block;
    width: auto;
  }

  .mepr-integration-gateway-form {
    padding-top: 25px;
    padding-left: 0;
    margin-left: 0;
    vertical-align: top;
    display: block;
  }

  .mepr-integration-gateway-form table {
    padding-left: 0;
    margin-left: 0;
    border-spacing: 0;
  }

  .mepr-integration-gateway-form input[type=text] {
    width: 25em !important;
  }
}
.mepr-detected-ip-address-p {
  margin-top: 15px;
}
#mepr-detected-ip-address {
  margin-left: 5px;
}
#mepr-anti-card-testing-blocked {
  width: 300px;
  max-width: 100%;
  height: 200px;
}
#mepr_options_form #integration {
  color: #626262;
}
#mepr_options_form #integration #mepr-add-integration {
  color: #626262;
  text-decoration: none;
  font-weight: bold;
}
#mepr_options_form #integration .mepr-with-stripe {
  margin-top: 0;
  color: #365669;
  font-size: 1.1em;
}
#mepr_options_form #integration .mepr-with-stripe img {
  position: relative;
  top: 12px;
  left: -7px;
  width: 80px;
}

#integration .mepr-paypal-standard-upgrade-box {
  text-align: center;
  max-width: 500px;
  background: #f3f3f4;
  padding: 2em;
}

#integration .mepr-paypal-standard-upgrade-box > button {
  height: 4em;
}

#integration .mepr-paypal-standard-upgrade-box button img {
  position: relative;
  top: 3px;
  padding-right: 0.5em;
}

#mepr-install-license-edition-loading {
  margin-left: 10px;
}

body li span.mp-icon-drag-target {
  display:inline-block;
  vertical-align:middle;
  font-size:24px;
  position:relative;
  left:-6px;
}

body p.mepr-custom-fields-p {
  padding:0;
  margin:0;
  margin-top:10px;
  margin-bottom:5px;
  word-break:break-all;
}

th.stripe-checkbox-column-left {
  min-width: 250px;
}

td.stripe-checkbox-column-right {
  max-width: 20%;
}

.mepr-stripe-tax-enabled #mepr_tax_calc_location_section,
.mepr-stripe-tax-enabled #mepr_tax_default_address_section,
.mepr-stripe-tax-enabled #mepr_vat_country_section,
.mepr-stripe-tax-enabled #mepr_vat_tax_businesses_section,
.mepr-stripe-tax-enabled #mepr_charge_business_customer_net_price_section,
.mepr-stripe-tax-enabled #mepr_show_negative_tax_on_invoice_section {
  display: none !important;
}

/* Square Gateway Styles */
.mepr-square-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 20px auto 35px;
}

.mepr-square-env-boxes {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mepr-square-env-box {
    flex: 1;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    width: 480px;
}

.mepr-square-env-box.mepr-square-active {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.mepr-square-box-header {
    background: #f0f0f1;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #ccd0d4;
}

.mepr-square-env-box.mepr-square-active .mepr-square-box-header {
    background: #2271b1;
    color: #fff;
}

.mepr-square-panel {
    background: #fff;
    padding: 20px;
}

.mepr-square-connected-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: space-between;
}

.mepr-square-connected-badge {
    display: inline-flex;
    align-items: center;
    background: #edfaef;
    color: #00a32a;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.mepr-square-connected-badge .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

.mepr-square-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mepr-square-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    align-items: flex-start;
    justify-content: space-between;
}

.mepr-square-row label {
    font-weight: 500;
    margin-top: 1px;
    margin-right: 10px;
}

.mepr-square-field select {
    min-width: 100px;
}

.mepr-square-connect {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.mepr-square-connect-info {
    flex: 1;
}

.mepr-square-connect-info p {
    margin: 0;
    color: #666;
}

.mepr-square-connect-action {
    flex: 0 0 auto;
}

.mepr-square-sandbox-toggle {
    margin: 15px 0;
}

.mepr-square-sandbox-toggle label {
    font-weight: 600;
    cursor: pointer;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .mepr-square-env-boxes {
        flex-direction: column;
    }

    .mepr-square-row label {
        flex: 0 0 100%;
        margin-bottom: 10px;
        margin-top: 0;
    }

    .mepr-square-field {
        flex: 0 0 100%;
    }

    .mepr-square-connected-status,
    .mepr-square-connect,
    .mepr-square-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (min-width: 783px) and (max-width: 1100px) {
    .mepr-square-actions .button {
        padding: 0 8px;
    }
}

@media screen and (max-width: 1510px) {
    .mepr-square-env-box {
        width: auto;
    }
   .mepr-square-env-boxes {
       flex-direction: column;
       text-align: center;
   }
}

/* PayPal Vaulting Styles */
.mepr-paypal-vaulting-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 20px auto 35px;
}

.mepr-paypal-vaulting-env-boxes {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mepr-paypal-vaulting-env-box {
    flex: 1;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    width: 480px;
}

.mepr-paypal-vaulting-env-box.mepr-paypal-vaulting-active {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.mepr-paypal-vaulting-box-header {
    background: #f0f0f1;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #ccd0d4;
}

.mepr-paypal-vaulting-env-box.mepr-paypal-vaulting-active .mepr-paypal-vaulting-box-header {
    background: #2271b1;
    color: #fff;
}

.mepr-paypal-vaulting-panel {
    background: #fff;
    padding: 20px;
}

.mepr-paypal-vaulting-connected-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: space-between;
}

.mepr-paypal-vaulting-connected-badge {
    display: inline-flex;
    align-items: center;
    background: #edfaef;
    color: #00a32a;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.mepr-paypal-vaulting-connected-badge .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

.mepr-paypal-vaulting-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mepr-paypal-vaulting-account-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
}

.mepr-paypal-vaulting-account-label {
    font-weight: 600;
    color: #50575e;
}

.mepr-paypal-vaulting-account-value {
    color: #2c3338;
}

.mepr-paypal-vaulting-connect {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.mepr-paypal-vaulting-connect-info {
    flex: 1;
}

.mepr-paypal-vaulting-connect-info p {
    margin: 0;
    color: #666;
}

.mepr-paypal-vaulting-connect-action {
    flex: 0 0 auto;
}

.mepr-paypal-vaulting-sandbox-toggle {
    margin: 15px 0;
}

.mepr-paypal-vaulting-sandbox-toggle label {
    font-weight: 600;
    cursor: pointer;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .mepr-paypal-vaulting-env-boxes {
        flex-direction: column;
    }

    .mepr-paypal-vaulting-connected-status,
    .mepr-paypal-vaulting-connect,
    .mepr-paypal-vaulting-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (min-width: 783px) and (max-width: 1100px) {
    .mepr-paypal-vaulting-actions .button {
        padding: 0 8px;
    }
}

@media screen and (max-width: 1510px) {
    .mepr-paypal-vaulting-env-box {
        width: auto;
    }
   .mepr-paypal-vaulting-env-boxes {
       flex-direction: column;
       text-align: center;
   }
}
