/* checkout, cart and my account only (woocommerce/swordis/setup.php) - the site-wide rules are in
   assets/css/custom.css, the product page ones in assets/css/product.css */

.checkout #payment {
    display: none;
}

/* select2 */

.woocommerce-checkout .select2-container--default .select2-results__option {
    padding: 12px;
    font-size: 16px;
}

.woocommerce-checkout .select2-container--default .select2-search--dropdown {
    padding: 0;
    margin: 0 0 10px;
}

.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f5f5f5;
    color: #000;
}

.woocommerce-checkout .select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 6px;
    border-radius: 3px;
    border: 1px solid #d3d3d3;
}

/* cart / checkout */
/* .woocommerce .blockUI {
    display: none ! important;
} */

/* checkout inputs and fields */
.checkout .woocommerce-billing-fields .form-row-first,
.checkout .woocommerce-shipping-fields .form-row-first {
    width: calc(50% - 8px);
    float: left;
    margin-right: 16px;
    clear: both;
}

.checkout .woocommerce-billing-fields .form-row-first,
.checkout .woocommerce-shipping-fields .form-row-first {
    width: calc(50% - 8px);
    float: left;
    margin-right: 16px;
    clear: both;
}

.checkout .woocommerce-billing-fields .form-row-last,
.checkout .woocommerce-shipping-fields .form-row-last {
    width: calc(50% - 8px);
    float: right;
    margin-right: 0;
}

.checkout #select2-shipping_country-container,
.checkout #select2-shipping_state-container,
.checkout #select2-billing_country-container,
.checkout #select2-billing_state-container {
    padding-top: 16px;
    line-height: 30px;
}

.checkout .form-row-wide {
    clear: both;
    width: 100%;
    margin-top: 0px;
}

.checkout .woocommerce-billing-fields .woocommerce-invalid input,
.checkout .woocommerce-shipping-fields .woocommerce-invalid input {
    border-color: #ff3d00;
}

.checkout .woocommerce-billing-fields .woocommerce-invalid span.invalid,
.checkout .woocommerce-shipping-fields .woocommerce-invalid span.invalid {
    color: #ff3d00;
    margin-top: 5px;
    display: block;
}

.checkout .woocommerce-billing-fields input:focus,
.checkout .woocommerce-shipping-fields input:focus {
    border-color: #d3d3d3;
}

.checkout .woocommerce-billing-fields input:focus+span.error,
.checkout .woocommerce-shipping-fields input:focus+span.error {
    display: none;
}

/* shipping methods tab */

ul.woocommerce-shipping-methods {
    position: relative;
    margin-bottom: 24px;
    list-style-type: none;
    padding: 0px;
}

ul.woocommerce-shipping-methods li {
    position: relative;
}

ul.woocommerce-shipping-methods li+li {
    margin-top: -1px;
}

ul.woocommerce-shipping-methods li label {
    position: relative;
    display: block;
}

ul.woocommerce-shipping-methods li input {
    display: none;
}

ul.woocommerce-shipping-methods li label {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 16px 16px 56px;
    border: 1px solid #cdcdcd;
    background: #fff;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}

ul.woocommerce-shipping-methods li label::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #cdcdcd;
    background: var(--Bg-Light-gray, #f5f5f5);
    top: 50%;
    margin-top: -12px;
    left: 16px;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}

ul.woocommerce-shipping-methods li label::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    margin-top: -6px;
    left: 22px;
    opacity: 0;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}

ul.woocommerce-shipping-methods li:first-child label {
    border-radius: 8px 8px 0 0;
}

ul.woocommerce-shipping-methods li:last-child label {
    border-radius: 0 0 8px 8px;
}

ul.woocommerce-shipping-methods li:only-child label {
    border-radius: 8px;
}

ul.woocommerce-shipping-methods li:only-child label,
ul.woocommerce-shipping-methods li input:checked+label {
    background: #fff3ef;
    border-color: #ff3d00;
    z-index: 1;
}

ul.woocommerce-shipping-methods li:only-child label::before,
ul.woocommerce-shipping-methods li input:checked+label::before {
    background: #ff3d00;
    border-color: #ff3d00;
}

ul.woocommerce-shipping-methods li:only-child label::after,
ul.woocommerce-shipping-methods li input:checked+label::after {
    opacity: 1;
}

/* login form popup */
.woocommerce-checkout .password-input {
    position: relative;
}

.woocommerce-checkout .show-password-input {
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    top: 50%;
    right: 16px;
    margin-top: -8px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 0px;
}

.woocommerce-checkout .show-password-input::before {
    content: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' stroke='%23bebebe' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.3866 7.99995C10.3866 9.31995 9.31995 10.3866 7.99995 10.3866C6.67995 10.3866 5.61328 9.31995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C9.31995 5.61328 10.3866 6.67995 10.3866 7.99995Z' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M7.9999 13.5138C10.3532 13.5138 12.5466 12.1271 14.0732 9.72714C14.6732 8.78714 14.6732 7.20714 14.0732 6.26714C12.5466 3.86714 10.3532 2.48047 7.9999 2.48047C5.64656 2.48047 3.45323 3.86714 1.92656 6.26714C1.32656 7.20714 1.32656 8.78714 1.92656 9.72714C3.45323 12.1271 5.64656 13.5138 7.9999 13.5138Z' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/svg%3E");
    width: 16px;
    height: 16px;
    display: inline-block;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
}

.woocommerce-checkout .show-password-input:hover::before {
    content: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' stroke='%23000000' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.3866 7.99995C10.3866 9.31995 9.31995 10.3866 7.99995 10.3866C6.67995 10.3866 5.61328 9.31995 5.61328 7.99995C5.61328 6.67995 6.67995 5.61328 7.99995 5.61328C9.31995 5.61328 10.3866 6.67995 10.3866 7.99995Z' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3Cpath d='M7.9999 13.5138C10.3532 13.5138 12.5466 12.1271 14.0732 9.72714C14.6732 8.78714 14.6732 7.20714 14.0732 6.26714C12.5466 3.86714 10.3532 2.48047 7.9999 2.48047C5.64656 2.48047 3.45323 3.86714 1.92656 6.26714C1.32656 7.20714 1.32656 8.78714 1.92656 9.72714C3.45323 12.1271 5.64656 13.5138 7.9999 13.5138Z' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/svg%3E");
}

.woocommerce-checkout .woocommerce-password-strength {
    font-size: 14px;
    font-weight: 600;
    margin: 5px 5px 6px;
}

.woocommerce-checkout .woocommerce-password-hint {
    font-size: 14px;
    margin: 5px;
    color: #595959;
    display: block;
}

/* New css */

.checkout .form-row {
    position: relative;
}

.checkout .woocommerce-invalid input {
    border-color: #ff3d00;
}

.checkout .woocommerce-invalid .woocommerce-input-wrapper::after {
    content: 'This field is required';
    position: absolute;
    right: 0;
    top: -20px;
    display: inline-block;
    height: 15px;
    color: #f70808;
}

/* checkout-wc */

body.swordis-free-order button#place_order {
    display: block !important;
    width: 100% !important;
}

.place-order #place_order {
    display: none !important;
}

.place-order #place_order {
    height: 42px !important;
    padding: 0px 10px !important;
    text-align: center;
    line-height: 38px;
}

#place_order.active {
    display: block !important;
    width: 100%;
}

/* paypal buttons and crad fields */
@media (max-width: 767px) {
    .gpay-card-info-container {
        width: 100%;
    }
}

/* paypal card fields */
#card-name-field-container,
#card-number-field-container,
#card-expiry-field-container,
#card-cvv-field-container {
    margin-bottom: 0px;
}

/* apple pay button */
apple-pay-button {
    --apple-pay-button-width: 100%;
    --apple-pay-button-height: 42px;
    --apple-pay-button-border-radius: 5px;
    --apple-pay-button-padding: 0px 0px;
}