/* 
Theme Name: Gottomat
Theme URI: https://byhlinder.com
Description: Gottomat
Author: Oscar Byhlinder
Author URI: https://byhlinder.com
Template: hello-elementor
Version: 2.0.0
Text Domain: gottomat
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: 
*/

/* Add your custom styles here */
.scanner-active #logo img {
    z-index: 99999;
    position: relative;
    filter: brightness(100);
}

a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:before {
    display: inline-block;
    font: var(--fa-font-light);
    font-size: 2em;
    content: "\2b";
}

a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.added {
    background-color: var(--e-global-color-0f1419d);
}

a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.added:after {
    font: var(--fa-font-light);
    content: "\f164";
    position: absolute;
    top: -70%;
    right: 6px;
    color: var(--e-global-color-0f1419d);
    font-size: 30px;
}

a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.loading:after {
    display: inline-block;
    font: var(--fa-font-light);
    font-size: 40px !important;
    content: "\e1d4";
    position: absolute;
    top: -1px;
    right: -3px;
    font-size: 2em;
    animation: spin 2s linear infinite;
    padding: 6px;
    border-radius: 100px;
    color: #000;
}

.added_to_cart {
    display: none !important;
}

.elementor-menu-cart__product-remove {
    background-color: #f8e2e2;
}

.elementor-menu-cart__product-image a, .elementor-menu-cart__product-image img {
    object-fit: contain;
    max-height: 50px;
}

#minicart .elementor-menu-cart__product {
    border-bottom: 1px solid #f2f2f2;
}

.loop-product-image-wrapper:has(a.loading) {
    opacity: .4;
}

.loop-product-image-wrapper:has(a.added) {

}

.e-loop-item.loading {
    opacity: .6;
}

.e-loop-item.loading .loop-product-image-wrapper::after {
    content:"";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.5);
}

.woocommerce div.product .product_title {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
}

.woocommerce div.product .elementor-widget-woocommerce-product-price p.price del,
.woocommerce div.product .elementor-widget-woocommerce-product-price span.price del {
    opacity: .5;
    font-size: 9px;
    margin-top: -2px;
    position: relative;
    position: absolute;
}

/* HEADER */

@media (max-width: 767px) {
    .elementor-widget-icon-box.elementor-position-left .elementor-icon-box-icon, .elementor-widget-icon-box.elementor-position-right .elementor-icon-box-icon {
        display: inline-flex !important;
    }
}


/* CHECKOUT */
/* edited
.woocommerce-checkout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
*/

.woocommerce-cart #order_review #payment, .woocommerce-checkout #payment {
    background: transparent;
}

.woocommerce-cart #order_review #payment ul.payment_methods,
.woocommerce-checkout #order_review #payment ul.payment_methods {
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,.05);
    padding: 0;
    overflow: hidden;
}

.woocommerce-cart #order_review #payment ul.payment_methods li img,
.woocommerce-checkout #order_review #payment ul.payment_methods li img {
    border-radius: 0;
}

.woocommerce-cart #order_review #payment ul.payment_methods li,
.woocommerce-checkout #order_review #payment ul.payment_methods li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: #fff;
    position: relative;
}

.woocommerce-checkout #order_review #payment ul.payment_methods li:last-child {
    border-bottom: 0;
}

#payment ul.payment_methods li label {
    display: inline-block;
    width: 100%;
    line-height: 30px;
    padding-left: 30px;
}

#payment ul.payment_methods li input {
    width: 21px;
    height: 21px;
    -webkit-appearance: radio;
}

#payment ul.payment_methods li .wc-stripe-save-source label {
    width: auto;
    padding: 0;
}

.woocommerce-cart #order_review #payment ul.payment_methods li input,
.woocommerce-checkout #order_review #payment ul.payment_methods li input {
    margin: 0;
    position: absolute;
    top: 17px;
    left: 10px;
}

.woocommerce-cart #order_review #payment div.payment_box,
.woocommerce-checkout #order_review #payment div.payment_box {
    width: unset;
    margin: 10px -10px -10px;
    background-color: #f1f1f1;
    box-shadow: inset 0 0 10px rgba(0,0,0,.05);
}

.woocommerce-cart #order_review #payment div.payment_box::before,
.woocommerce-checkout #order_review #payment div.payment_box::before {
    content: unset;
    display: none;
}

.woocommerce #payment .wc-stripe-gateway-desc {
    margin-top: 0;
}

#order_review {
    display: flex;
    flex-direction: column-reverse;
}

.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
    border-radius: 50px;
    padding: 15px;
    background-color: var( --e-global-color-primary );
}


/* CART */

.woocommerce-privacy-policy-text p {
    font-size: .8em;
}

.checkout #order_review .shop_table {
    width: 90%;
    margin: 0 auto;
}

/* CONFIRMATION */

.woocommerce-table--order-details thead .product-total, .woocommerce-table--order-details tfoot td, .woocommerce-table--order-details tbody .product-total {
    text-align: right;
}

.woocommerce-order-details .order_details .includes_tax {
    display: block;
}

.elementor-message {
    text-align: center;
}

/* MY ACCOUNT */

.woocommerce-account {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var( --e-global-color-secondary );
}

.woocommerce-account .page {
    flex: 1;
}

.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
}

.previous-orders {
	margin-top: 20px;
}

.previous-orders h4 {
    color: var( --e-global-color-primary );
}

.order-item {
	background: white;
	border-radius: 20px;
	margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.order-item a {
	text-decoration: none;
	color: inherit;
	display: block;
	padding: 20px;
}

.order-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 5px;
}

.store-name {
	font-weight: bold;
	font-size: 16px;
	color: #333;
}

.order-total {
	font-weight: bold;
	font-size: 16px;
}

.order-details {
	display: flex;
	justify-content: space-between;
	color: #666;
	font-size: 14px;
}

.order-date, .products-count {
	color: #666;
}

h2 {
	font-size: 24px;
	margin-bottom: 20px;
	color: #fff;
}

.greeting {
	text-align: center;
	font-size: 24px;
	margin-bottom: 30px;
	color: #fff;
	font-weight: bold;
}

.logout-link {
	margin-top: 10px;
	font-size: 16px;
	font-weight: normal;
}

.woocommerce .woocommerce-order-details {
    border-radius: 5px;
    border-top: 5px solid #353f4c;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.woocommerce .woocommerce-order-details::after {
    background-color: #353f4c;
    border-radius: 25px;
    content: "";
    height: 11px;
    left: 0;
    position: absolute;
    top: -5px;
    width: 100%;
    z-index: 100;
}

.receipt-tear {
    background-image: linear-gradient(135deg, #fafafa 0%, #fafafa 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%), linear-gradient(-135deg, #fafafa 0%, #fff 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%), linear-gradient(45deg, #fff 0%, #fff 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%), linear-gradient(-45deg, #fff 0%, #fff 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 90%);
    background-position: top center, top center, bottom center, bottom center;
    background-size: 0.75rem 0.75rem, 0.75rem 0.75rem, 0.75rem 0rem, 0rem 0rem, 100% 0rem, 100% 0rem;
    background-repeat: repeat-x;
    height: 30px;
    width: 98%;
    box-shadow: 0 -20px 3px 0 rgba(0, 0, 0, .2);
}

.receipt-wrapper {
    -webkit-animation: slideDown 1.5s;
    animation: slideDown 1.5s;
    background-color: #fafafa;
    -webkit-box-shadow: 0 -4px 3px 0 rgba(0, 0, 0, .2);
    box-shadow: 0 -4px 3px 0 rgba(0, 0, 0, .2);
    overflow-y: auto;
    padding: 20px;
    position: relative;
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    width: 98%;
    z-index: 101;
}

.receipt-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.receipt-header h5 {
    font-family: var( --e-global-typography-f5b2bb3-font-family ), Sans-serif;
}

.receipt-header i {
    font-size: 3em;
}

.woocommerce .woocommerce-order-details .order_details {
    margin: 0 0 20px;
    padding: 0;
    border:none;
}

.woocommerce .woocommerce-order-details .order_details li {
    width: 100%;
    justify-content: space-between;
    display: flex;
    font-family: var( --e-global-typography-f5b2bb3-font-family ), Sans-serif;
    margin: 0;
    padding: 0;
    border: none;
}

.woocommerce .woocommerce-order-details .order_details li strong {
    font-size: 1em;
    text-transform: uppercase;
}

.woocommerce .woocommerce-order-details .woocommerce-table td,
.woocommerce .woocommerce-order-details .woocommerce-table th {
    border: none;
}

.woocommerce .woocommerce-order-details .woocommerce-table,
.checkout #order_review .shop_table {
    border-collapse: collapse;
    overflow: hidden;
    font-family: var( --e-global-typography-f5b2bb3-font-family ), Sans-serif;
    font-size: .8em;
    border: none;
}

.woocommerce .woocommerce-order-details .woocommerce-table thead tr,
.checkout #order_review .shop_table thead tr {
    text-align: left;
}

.woocommerce .woocommerce-order-details .woocommerce-table th,
.woocommerce .woocommerce-order-details .woocommerce-table td,
.checkout #order_review .shop_table th,
.checkout #order_review .shop_table td {
    padding: 5px 0;
    border: none;
    background-color: transparent;
}

.woocommerce .woocommerce-order-details .woocommerce-table th,
.checkout #order_review .shop_table th {
    text-align: left;
}

.woocommerce .woocommerce-order-details .woocommerce-table td,
.checkout #order_review .shop_table td {
    text-align: right;
}

.woocommerce .woocommerce-order-details .woocommerce-table .product-name,
.checkout #order_review .shop_table .product-name  {
    width: 75%;
    text-align: left;
}

.woocommerce .woocommerce-order-details .woocommerce-table .product-total,
.checkout #order_review .shop_table .product-total {
    text-align: right;
}

.woocommerce-order-details table tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

.woocommerce-order-details table tbody tr.active-row {
    font-weight: bold;
    color: var( --e-global-color-primary );
}

.woocommerce-order-details table tfoot .woocommerce-Price-amount {
    font-weight: bold;
}

.woocommerce .customer-purchases {

}

.woocommerce .customer-purchases td, .woocommerce .customer-purchases th {
    background: transparent;
    border:none;
    vertical-align: middle;
    padding: 5px 0;
    text-align: left;
}

.woocommerce .customer-purchases .button, .woocommerce .customer-purchases .button:hover {
    border-radius: 10px;
    width: 100%;
    text-align: center;
    background: #0e4644;
    color: #fff;
}