/* MY ACCOUNT */
.woocommerce table.my_account_orders th.card-expire,
.woocommerce table.my_account_orders td.card-expire,
.woocommerce-page table.account-payment-methods-table .payment-method-expires {
    width: 90px;
}

.woocommerce table.my_account_orders th.card-actions,
.woocommerce table.my_account_orders td.card-actions,
.woocommerce-page table.account-payment-methods-table .payment-method-actions {
    width: 120px;
}

.woocommerce table.my_account_orders td .tag-label,
.woocommerce-page table.account-payment-methods-table td .tag-label {
    font-size: 0.5em;
    padding: 0 5px 2px;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    margin-left: 4px;
    vertical-align: top;
    margin-top: 6px;
    text-decoration: none;
    border: 0;
    text-transform: uppercase;
}

.woocommerce table.my_account_orders td .tag-label.default,
.woocommerce-page table.account-payment-methods-table td .tag-label.default {
    background: #080;
}

.woocommerce table.my_account_orders td .tag-label.expired,
.woocommerce-page table.account-payment-methods-table td .tag-label.expired {
    background: #cdcdcd;
}

.woocommerce table.my_account_orders td .tag-label.show-on-hover,
.woocommerce-page table.account-payment-methods-table td .tag-label.show-on-hover {
    display: none;
}

.woocommerce table.my_account_orders td:hover .tag-label.show-on-hover,
.woocommerce-page table.account-payment-methods-table td:hover .tag-label.show-on-hover {
    display: inline-block;
    opacity: 0.3;
}

.woocommerce table.my_account_orders td:hover .tag-label.show-on-hover:hover,
.woocommerce-page table.account-payment-methods-table td:hover .tag-label.show-on-hover:hover {
    opacity: 1;
}

.woocommerce-page.yith-wcstripe-custom-payment-method-table table.account-payment-methods-table .payment-method-actions {
    white-space: nowrap;
    width: 20%;
}

.woocommerce-page.yith-wcstripe-custom-payment-method-table table.account-payment-methods-table tr .payment-method-actions a.button {
    border-radius: 48px;
    color: #434343;
    display: none;
    background: #f7f7f7;
    border: 1px solid #cdcdcd;
    min-height: 48px;
    min-width: 48px;
    position: relative;
}

.woocommerce-page.yith-wcstripe-custom-payment-method-table table.account-payment-methods-table tr:hover .payment-method-actions a.button {
    display: inline-block;
    float: right;
}

.woocommerce-page.yith-wcstripe-custom-payment-method-table table.account-payment-methods-table tr .payment-method-actions a.button:hover {
    background-color: #f0f0f0;
}

.woocommerce-page.yith-wcstripe-custom-payment-method-table table.account-payment-methods-table tr .payment-method-actions a.button.delete,
.woocommerce-page.yith-wcstripe-custom-payment-method-table table.account-payment-methods-table tr .payment-method-actions a.button.confirm,
.woocommerce-page.yith-wcstripe-custom-payment-method-table table.account-payment-methods-table tr .payment-method-actions a.button.default{
    font-size: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
}

.woocommerce-page.yith-wcstripe-custom-payment-method-table table.account-payment-methods-table tr .payment-method-actions a.button.default{
    background-image: url( ../images/make-default.svg );
}

.woocommerce-page.yith-wcstripe-custom-payment-method-table table.account-payment-methods-table tr .payment-method-actions a.button.delete {
    background-image: url( ../images/delete.svg );
    background-size: 14px;
}

.woocommerce-page.yith-wcstripe-custom-payment-method-table table.account-payment-methods-table tr .payment-method-actions a.button.confirm {
    background-image: url( ../images/verify-card.svg );
}

/* CHECKOUT */
.woocommerce #payment ul.payment_methods li .payment-mode-choise {
    margin-top: 2em;
}

.woocommerce #payment ul.payment_methods li .payment-mode-choise label {
    margin-left: 0;
    position: relative;
    width: auto;
    cursor: pointer;
    display: inline-block;
    margin-right: 10px;
}

.woocommerce #payment ul.payment_methods li .payment_box .card {
    clear: both;
    line-height: 2.2em;
    cursor: pointer;
    padding-left: 12px;
    position: relative;
}

.woocommerce #payment ul.payment_methods li .payment_box .card:hover,
.woocommerce #payment ul.payment_methods li .payment_box .card.selected {
    background: #f2f2f2;
    border-radius: 3px;
}

.woocommerce #payment ul.payment_methods li .payment_box .card label {
    cursor: pointer;
    display: block;
    padding-left: 26px;
}

.woocommerce #payment ul.payment_methods li .payment_box .yith-stripe-mode-card input[type="radio"] {
    margin-top: 0.6em;
    position: absolute;
    display: block;
}

.woocommerce #payment ul.payment_methods li .payment_box .card-type {
    font-weight: bold;
    margin-right: 8px;
}

.woocommerce #payment ul.payment_methods li .payment_box .card-number,
.woocommerce #payment ul.payment_methods li .payment_box .card-expire{
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.6;
    // IE8 filter
    filter: alpha(opacity=60);
}

.woocommerce #payment ul.payment_methods li .payment_box fieldset {
    margin-top: 30px;
}

.woocommerce #payment ul.payment_methods li .payment_box select {
    background: #f7f7f7;
    background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
    border: 1px solid;
    border-color: #bbb3b9 #c7c1c6 #c7c1c6;
    border-radius: 2px;
    color: #686868;
    padding: 0.625em 0.4375em;
    width: 100%;
    box-sizing: border-box;
    margin: 0 1em 0 0;
    outline: 0;
    line-height: 1;
}

.woocommerce #payment ul.payment_methods li .payment_box p.form-row.error input,
.woocommerce #payment ul.payment_methods li .payment_box p.form-row.error select,
.woocommerce #payment ul.payment_methods li .payment_box p.form-row.error .select2-container .select2-choice,
#myaccount-content form.add-card p.form-row.error input,
#myaccount-content form.add-card p.form-row.error select,
#myaccount-content form.add-card p.form-row.error .select2-container .select2-choice {
    border-color: #f19999;
    background: #fef8f8;
}

.woocommerce #payment ul.payment_methods li a.cvv2-help,
#myaccount-content form.add-card a.cvv2-help {
    font-size: 80%;
}

.woocommerce #payment ul.payment_methods li #cvv-suggestion,
form.add-card #cvv-suggestion {
    display: none;
}

#yith-stripe-card-elements,
.yith-stripe-elements-field{
    background: #fff;
    padding: 1em;
    border-radius: 3px;
    border: 1px solid #bbb;
    margin-bottom: 1.5em;
}

.yith-stripe-elements-field{
    margin-bottom: 0;
}

#wc-yith-stripe-cc-form .field-row:after {
    content: '';
    display: block;
    clear: both;
}

/* BLOCK CHECKOUT */

.wc-block-checkout__main .yith-stripe-form-container:after {
    content: '';
    display: block;
    clear: both;
}

.wc-block-checkout__main .yith-stripe-form-container .form-row {
    margin-block: 1rem;
}

.wc-block-checkout__main .yith-stripe-form-container .form-row label {
    display: block;
    margin-bottom: 0.7rem;
}

.wc-block-checkout__main .yith-stripe-form-container .form-row input {
    display: block;
    box-sizing: border-box;
    width: 100%;
}

.wc-block-checkout__main .yith-stripe-form-container .form-row-first,
.wc-block-checkout__main .yith-stripe-form-container .form-row-last {
    width: 47%;
    overflow: visible;
}

.wc-block-checkout__main .yith-stripe-form-container .form-row-first {
    float: left;
}

.wc-block-checkout__main .yith-stripe-form-container .form-row-last {
    float: right;
}

/* CONFIRMATION MODAL */

.yith-wcstripe-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    z-index: 1005;
}

.yith-wcstripe-modal .close-button{
    padding: 10px;
    position: absolute;
    top: 5px;
    right: 15px;
    text-decoration: none;
    font-size: 30px;
    cursor: pointer;
}

.yith-wcstripe-modal .modal-footer {
    float: right;
}

.yith-wcstripe-modal .modal-footer .button {
    margin-bottom: 0;
}

.yith-wcstripe-modal .modal-footer .button:last-child {
    margin-right: 0;
}

body.yith-wcstripe-modal-backdrop:before {
    content: '';
    position: fixed;
    background-color: rgba(0,0,0,.5);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1002;
}

/* TOOLTIP */

.yith-wcstripe-tooltip {
    background: #434343;
    border-radius: 3px;
    color: #fff;
    display: block;
    font-size: .7rem;
    font-weight: 400;
    left: 50%;
    padding: 5px 10px;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    top: calc(100% + 10px);
    z-index: 10;
}

.yith-wcstripe-tooltip:before {
    border: 5px solid transparent;
    border-bottom-color: #434343;
    content: '';
    display: block;
    height: 1px;
    left: 50%;
    margin-left: -5px;
    position: absolute;
    top: -10px;
    width: 1px;
}