/**************************************************************
 * Settings
 *************************************************************/
#pt-settings {
    margin-right: 310px
}
#pt-settings-content, #pt-extensions-content {
    width: 100%;
    float: left
}
#pt-settings-sidebar {
    float: right;
    margin-right: -310px;
    width: 290px
}
#pt-settings-sidebar .centered {
    text-align: center
}
#pt-settings-sidebar .button-large {
    font-size: 17px;
    line-height: 30px;
    height: 32px
}
#pt-settings-sidebar .last-blurb {
    font-size: 17px
}
#pt-settings-sidebar .postbox-nobg {
    position: relative;
    min-width: 255px
}
#pt-settings-sidebar .sidebar-container .postbox .inside {
    margin-bottom: 0
}

.pt-toggle-switch-wrap {
    width: 300px;
    margin-left: -88px
}
#pt-settings .marketing-options {
    padding: 10px 0;
}
#pt-settings .marketing-options a {
    text-decoration: none;
}
#pt-settings .marketing-options a.marketing-opt-active {
    pointer-events: none;
    cursor: default;
    color: black;
}

/**************************************************************
 * Setup Wizard
 *************************************************************/
#pt-setup-wizard {
    overflow: hidden;
    border: 1px solid #eee;
    background: white
}
#pt-setup-wizard .inside {
    padding: 0;
    margin: 0 !important;
    display: block;
    position: relative
}
#pt-setup-wizard .tabs {
    width: 20%;
    min-width: 100px;
    float: left;
    box-sizing: border-box;
    background: #fafafa;
    border-right: 1px solid #eee;
    position: relative
}

#pt-setup-wizard .tabs ul li a {
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    font-size: 15px;
    line-height: 40px
}
#pt-setup-wizard .tabs ul li a:focus,
#pt-setup-wizard .tabs ul li a:active {
    outline: none;
    box-shadow: none
}
#pt-setup-wizard #setup-wizard-panels {
    width: 80%;
    float: left;
    box-sizing: border-box;
    padding: 15px 30px;
    background: #fff
}

#pt-setup-wizard .tabs:after {
    content: "";
    position: absolute;
    background-color: #FAFAFA;
    height: 9999vw;
    width: 100%;
    border-right: 1px solid #EEE;
    bottom: -9999vw;
    float: left;
    left: 0;
    display: block
}
#pt-setup-wizard .tabs ul {
    margin: 0
}
#pt-setup-wizard .tabs ul li {
    border-bottom: 1px solid #eee;
    margin: 0
}

#pt-setup-wizard .panels input[type="text"],
#pt-setup-wizard .panels input[type="password"],
#pt-setup-wizard .panels input[type="checkbox"],
#pt-setup-wizard .panels select,
#pt-setup-wizard .panels textarea {
    max-width: 100%;
    width: 100%
}

/**************************************************************
 * Setup Wizard > General Tabs & Panels
 *************************************************************/

#pt-setup-wizard #setup-wizard-tabs ul li.active {
    background: #fff;
    margin-right: -1px
}
#pt-setup-wizard #setup-wizard-tabs ul li.active a {
    color: #666665
}
#pt-setup-wizard #setup-wizard-tabs ul li.completed {
    background: #eee
}
#pt-setup-wizard #setup-wizard-tabs ul li.completed a {
    color: #999
}
#pt-setup-wizard #setup-wizard-tabs ul li:hover {
    background: #eee
}

/**************************************************************
 * Setup Wizard > First product Tabs & Panels
 *************************************************************/

#pt-setup-wizard #first-product-tabs {
    width: 100%;
    min-width: 100px;
    float: left;
    box-sizing: border-box;
    background: #fafafa;
    border: none;
    position: relative
}

#pt-setup-wizard #first-product-tabs ul li {
    display: inline;
    border: none;
}

#pt-setup-wizard #first-product-tabs ul li a {
    display: inline;
    font-size: 13px;
    font-weight: bold;
}

#pt-setup-wizard #first-product-tabs ul li.active {
    display: inline-block;
    background-color: #eee;
}

#pt-setup-wizard #first-product-tabs ul li.active a {
    color: #666665
}

#pt-setup-wizard #first-product-tabs:after {
    content: "";
    position: absolute;
    background: none;
    height: 9999vw;
    width: 100%;
    bottom: -9999vw;
    float: left;
    left: 0;
    display: block;
    border: none;
}

#pt-setup-wizard #first-product-panels {
    width: 100%;
    float: left;
    box-sizing: border-box;
    padding: 15px 30px;
    background: #eee;
}

#pt-setup-wizard #first-product-panels div {
    position: relative;
}

.editor-image {
    width: 100%;
    border: 1px solid #eeeeee;
}

#pt-setup-wizard .spinner-wrap {
    vertical-align: middle;
    color: #999;
    text-align: center
}
#pt-setup-wizard .spinner-wrap .spinner {
    float: none;
    margin-top: 0
}
#pt-setup-wizard .spinner-wrap .loading-text {
    vertical-align: middle
}

#pt-setup-wizard .author-image {
    border-radius: 50%;
    height: 100px;
    float: left;
    padding: 15px;
}

#pt-admin-notice-please-review .author-image {
    border-radius: 50%;
    height: 100px;
    margin-right: 15px;
    margin-top: 10px;
    float: left;
}

#pt-admin-notice-please-review p {
    font-size: 12pt;
}

#pt-admin-notice-please-review .dashicons {
    font-size: 12pt;
}

#pt-setup-wizard .form-group {
    padding-bottom: 10px;
}

#pt-setup-wizard input, #pt-setup-wizard select {
    margin-top: 5px;
}

#pt-setup-wizard .boxed {
    border: 1px solid #eee;
    padding: 10px 20px 20px 20px;
    margin: 20px 20px 20px;
    background: #f9f9f9;
}
#pt-setup-wizard .boxed form {
    width: 50%;
    min-width: 250px;
    max-width: 100% !important
}

#pt-setup-wizard .payment-test  h6 {
    font-size: 20px;
    text-align: center;
    line-height: 24px;
    margin: 5px;
}

#pt-setup-wizard .payment-test form {
    min-width: unset;
    width: 140px;
    max-width: 100% !important;
    margin:0 auto;
    margin-top: 10px;
}

#pt-setup-wizard th#name {
    width: 150px;
}

#pt-setup-wizard th#website {
    width: 225px;
}

#pt-setup-wizard .sw-keys {
    padding-bottom: 20px;
}

/**************************************************************
 * Alerts and warnings
 *************************************************************/

.pt-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 20px;
    line-height: 150%;
    text-align: center;
}

.pt-alert-small {
    padding: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.pt-alert.pt-alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1
}
.pt-alert.pt-alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6
}
.pt-alert.pt-alert-info {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6
}

.pt-alert-settings {
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.5em;
}

.dashicons.paytium-create-profile-warning {
    font-size: 50px;
    margin-right: 20px;
    height: 50px
}

/**************************************************************
 * Payments (post type)
 *************************************************************/

#the-list > tr.no-items > td {
    font-size: 20px;
    text-align: center;
    padding: 150px;
}

#the-list > tr.no-items > td > a {
    text-decoration: underline;
}

.post-type-pt_payment .subsubsub,
.post-type-pt_subscription .subsubsub {
    display: none
}

/*. Enable trash, disable mine and publish options */
/*.post-type-pt_payment .subsubsub .mine,*/
/*.post-type-pt_payment .subsubsub .publish,*/
/*.post-type-pt_subscription .subsubsub .mine,*/
/*.post-type-pt_subscription .subsubsub .publish {*/
/*    display: none*/
/*}*/

.post-type-pt_payment th#status,
.post-type-pt_subscription th#status,
.post-type-pt_payment th#order_status {
    width: 130px
}

.user-profile-subscriptions .column-status {
    vertical-align: middle;
    width: 10%;
}

.post-type-pt_payment .column-status .status,
.post-type-pt_subscription .column-status .status,
.user-profile-subscriptions .column-status .status,
.post-type-pt_payment .column-order_status .order-status {
    vertical-align: middle;
    padding: 3px 15px;
    color: #555;
    border-radius: 4px;
    background-color: transparent;
    display: inline-block;
    width: 65%;
    font-size: 12px;
    box-shadow: 0 0 0 1pt #34495e;
    text-align: center;
}

.post-type-pt_payment .column-status .status.status-open,
.post-type-pt_payment .column-order_status .order-status.status-open,
.post-type-pt_payment .column-status .status.order-status-new,
.post-type-pt_payment .column-order_status .order-status.order-status-new,
.post-type-pt_subscription .column-status .status.status-pending,
.user-profile-subscriptions .column-status .status.status-pending{
    box-shadow: 0 0 0 1.5pt #3498db;
    color: #3498db;
}

.post-type-pt_payment .column-status .status.status-cancelled,
.post-type-pt_payment .column-order_status .order-status.status-cancelled,
.post-type-pt_payment .column-status .status.status-expired,
.post-type-pt_payment .column-order_status .order-status.status-expired,
.post-type-pt_payment .column-status .status.status-failed,
.post-type-pt_payment .column-status .status.status-refunded,
.post-type-pt_payment .column-status .status.status-charged_back,
.post-type-pt_payment .column-status .status.order-status-processing,
.post-type-pt_payment .column-order_status .order-status.order-status-processing,
.post-type-pt_subscription .column-status .status.status-cancelled,
.user-profile-subscriptions .column-status .status.status-cancelled,
.post-type-pt_subscription .column-status .status.status-failed,
.user-profile-subscriptions .column-status .status.status-failed {
    box-shadow: 0 0 0 1.5pt #e74c3c;
    color: #e74c3c;
}

.post-type-pt_payment .column-status .status.status-paid,
.post-type-pt_payment .column-order_status .order-status.status-paid,
.post-type-pt_payment .column-status .status.order-status-completed,
.post-type-pt_payment .column-order_status .order-status.order-status-completed,
.post-type-pt_subscription .column-status .status.status-active,
.user-profile-subscriptions .column-status .status.status-active {
    box-shadow: 0 0 0 1.5pt #008000;
    color: #008000;
}

.post-php.post-type-pt_payment .option-group,
.post-php.post-type-pt_subscription .option-group,
.post-php.post-type-pt_subscription .option-group-subscription {
    margin-top: 15px
}
.post-php.post-type-pt_payment .option-group label,
.post-php.post-type-pt_subscription .option-group label,
.post-php.post-type-pt_subscription .option-group-subscription label {
    font-weight: bold;
    width: 120px;
    display: inline-block
}

.post-php.post-type-pt_payment .option-group-subscription {
    margin-top: 15px;
}

.post-php.post-type-pt_payment .option-group-subscription-cancelled {
    display: none;
}

.post-php.post-type-pt_payment .option-group-subscription label {
    font-weight: bold;
    width: 110px;
    display: inline-block;
    //padding: 6px 0px 8px 5px;
    vertical-align: baseline;
}

.post-php.post-type-pt_payment .option-value,
.post-php.post-type-pt_subscription #pt_customer_details .option-value {
    vertical-align: middle
}


.post-php.post-type-pt_payment .option-group select,
.post-php.post-type-pt_payment .option-group input {
    min-width: 200px
}
.post-php.post-type-pt_payment .option-value {
    vertical-align: middle;
}

.post-php.post-type-pt_payment .option-description {
    vertical-align: middle;
    font-style: italic;
    width: 350px;
    text-align: center;
    padding: 10px 0 0 0;
    opacity: 0.8;
}

.post-php.post-type-pt_payment #visibility {
    display: none
}
.post-php.post-type-pt_payment #post-body #post-body-content,
.post-php.post-type-pt_subscription #post-body #post-body-content {
    display: none
}

.paytium-subscription-pending-icon:before {
    color: #ff9805;
    margin-right: 5px;
}

.paytium-subscription-active-icon:before {
    color: #008000;
    margin-right: 5px;
}

.paytium-subscription-renewal-icon:before {
    color: #3498db;
    margin-right: 5px;
}

.paytium-subscription-failed-icon:before {
    color: #e74c3c;
    margin-right: 5px;
}

.paytium-regular-payment-icon:before {
    color: transparent;
    margin-right: 5px;
}

.paytium-cancel-subscription {
    /*height: 30px;*/
    /*width: 150px;*/
    /*margin: 20px -75px 10px -75px;*/
    /*position: relative;*/
    /*top: 50%;*/
    /*left: 50%;*/
}

#poststuff #pt_subscription_details .inside {
    margin: 0;
    padding: 0;
}
#poststuff #pt_subscription_details .inside-options {
    margin: 0px 11px 11px 11px;
    line-height: 1em;
}
.pt-payment-intro {
     margin-top: 0px;
    text-align: center;
 }

.test-mode-payment {
    color: #e74c3c;
}

.paytium-tags-table th {
    font-weight: 400;
}

.paytium-tags-table th,
.paytium-tags-table td {
    padding: 8px 10px;
    color: #555;
}

.paytium-tags-table th:first-child,
.paytium-tags-table td:first-child {
    /*width: 40%;*/
}

.paytium_invoice_settings_custom_fields table td {
    padding: 8px;
}

.post-type-pt_payment #wpbody-content span.subtitle,
.post-type-pt_payment #filter-by-date {
    display: none;
 }

.post-type-pt_payment .pt_payment_date_picker {
    float: left;
    min-height: 28px;
    padding: 0px 5px;
}

.pt-uploaded-file {
    word-break: break-all;
}

/**************************************************************
 * Payments view on small screen size
 *************************************************************/

@media only screen and (max-width: 782px) {

    .wp-list-table th:not(.column-payment):not(.inline-edit-row):not(.check-column) {
        display: none;

    }

    .wp-list-table td:not(.column-payment):not(.check-column) {
        display: none !important;
    }

    .wp-list-table td.column-payment:before {
        display: none !important;
    }

}

/**************************************************************
 * Payment Edit - Subscription (first) payment details
 *************************************************************/

#pt_subscription_first_payment > button,
#pt_subscription_first_payment h2 {
    display: none;
}
#pt_subscription_first_payment .inside {
    margin: 0;
    padding: 0;
}

.pt-subscription-first-payment-table thead th:first-child {
    width: 150px;
    text-align: left;
}

.pt-subscription-first-payment-table thead th {
    font-weight:bold;
    background-color: #e5f0f7;
    text-align: center;
}

.pt-subscription-first-payment-table thead th span {
    padding-left: 20px;
}


/**************************************************************
 * Payment Edit - Items table
 *************************************************************/
.payment-items-table thead th {
    font-weight:bold;
    background-color: #efefef;
}

.payment-items-table tfoot td {
    border: none;
}

.payment-items-table tfoot tr:first-child td {
    border-top: 1px solid #ccd0d4;
}

.payment-items-table tfoot .pt-discount-tr td {
    border-bottom: 1px solid #ccd0d4;
}

#pt_payment_items > button,
#pt_payment_items h2 {
    display: none;
}
#pt_payment_items .inside {
    margin: 0;
    padding: 0;
}


/**************************************************************
 * Payment Edit - Payment failed
 *************************************************************/
#pt_payment_failed {
    background-color: #F7E5E6;
}
#pt_payment_failed .inside{
    margin: 0;
    padding: 10px 12px;
}
#pt_payment_failed button.handlediv, #pt_payment_failed .ui-sortable-handle {
    display: none;
}

/**************************************************************
 * Export
 *************************************************************/
#paytium_order-statuses,
#paytium_columns,
#paytium-payment-sources,
.pt_multiselect,
#paytium-export-payments-date-range-start,
#paytium-export-payments-date-range-end{
    width: 31em;
}

.select2-results__option[aria-selected=true] {
    display: none;
}

.export-warning-message {
    max-width: 60em;
    color: darkred;
    padding: 15px 0;
}

.conflict,
.payment-source-warning {
    display: none;
}

.conflict #conflict_continue_anyway, #payment_source_continue_with {
    margin-right: 15px;
}

/**************************************************************
 * Payments > Invoice buttons
 *************************************************************/
.pt-invoice-buttons {
    margin: 0 5px !important;
    width: 80%;
}

/**************************************************************
 * Payments > Emails
 *************************************************************/
body.post-type-paytium_emails .column-status,
body.post-type-paytium_emails .column-included {
    cursor: pointer;
}
body.post-type-paytium_emails .metabox-email-trigger-title {
    border-bottom: 1px solid #eee;
    padding: 0 0 5px 10px;
}

body.post-type-paytium_emails .email-attachment {
    position: relative;
}

body.post-type-paytium_emails .pt-remove-attachment {
    position: absolute;
    top: 0;
    right: 10px;
    color: #6b1111;
    font-size: 15px;
    cursor: pointer;
}

body.post-type-paytium_emails .payment-items-table th:first-child,
body.post-type-paytium_emails .payment-items-table td:first-child {
width: 35% !important;
}

/**************************************************************
 * My profile
 *************************************************************/
#paytium_profile {
    margin-top: 30px;
}
.profile-payments-no-access-wrapper {
    padding-top: 60px;
    text-align: center;
}
.user-profile-payment-details-wrapper {
    display: flex;
    justify-content: space-between;
}
.user-profile-payment-details-wrapper #poststuff .hndle {
    cursor: auto;
}
.user-profile-payment-details-section {
    width: 100%;
}
.user-profile-payment-details {

}
.user-profile-payment-items {
    /*max-width: 763px;*/
}
.user-profile-payment-items .postbox-header {
    display: block;
    border: none;
}
.user-profile-invoice {
    height: fit-content;
    padding: 30px 0 15px;
    margin: 10px;
    min-width: 300px;
    background: #fff;
    border: 1px solid #ccd0d4;
}
.user-profile-back-wrapper {
    padding: 15px;
}
.user-profile-right-side-blocks #poststuff {
    min-width: 255px;
    margin: 0 10px;
}
.user-profile-right-side-blocks #poststuff .inside {
    margin: 0;
    padding: 0;
}
.user-profile-right-side-blocks #poststuff .inside table {
    border: none;
}
#paytium_subscription_options {
    padding: 5px 10px;
}
#paytium_subscription_options label {
    display: block;
    margin: 10px 0;
}
.user-profile-payment-details.post-type-pt_subscription .inside {
    margin: 0;
    padding: 0;
}
.user-profile-payment-details.post-type-pt_subscription .inside-options {
    margin: 0 11px 11px 11px;
    line-height: 1em;
}
.subscription-options-form-submit {
    display: flex;
    align-items: center;
    padding: 10px 0;
}
.subscription-options-form-submit .submit {
    padding: 0;
    margin: 0;
}
.pt-subscription-update-response {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.pt-subscription-update-response-message-block {
    max-width: 600px;
    height: 200px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.pt-subscription-update-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18,18,18,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}
.pt-loader {
    position: relative;
    height: 100px;
    width: 100px;
    border-radius: 100px;
    border: 3px solid #fff;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    -webkit-animation: pt-loader 3s linear infinite;
    animation: pt-loader 3s linear infinite;
}
.pt-loader:after{
    content: "";
    position: absolute;
    top: 0;
    left: 15px;
    width: 12px;
    height: 12px;
    border-radius: 10px;
    background-color: #fff;
}

@-webkit-keyframes pt-loader{
    0%{-webkit-transform:rotate(0deg);}
    100%{-webkit-transform:rotate(360deg);}
}

@keyframes pt-loader{
    0%{transform:rotate(0deg);}
    100%{transform:rotate(360deg);}
}

.pt-subscription-update-response-message {
    font-size: 26px;
    line-height: 34px;
    text-align: center;
}
.pt-subscription-update-response-close {
    top: 10px;
}
.pt-subscription-update-response-close:before {
    font-size: 40px;
    width: 40px;
}
.pt-subscription-update-response .notice-dismiss:active:before,
.pt-subscription-update-response .notice-dismiss:focus:before,
.pt-subscription-update-response .notice-dismiss:hover:before {
    color: #787c82;
}
@media screen and (max-width: 1280px) {
    .user-profile-payment-details-wrapper {
        display: block;
        margin-right: 10px;
    }
    .user-profile-invoice,
    .user-profile-right-side-blocks #poststuff {
        margin: 10px 0 0 0;
    }
}