/* ================================================= */
/*  FRONT PAGE
/* ================================================= */

@media (max-width: 767px) {
    .spot-prices-wrapper {
        overflow: hidden;
        position: relative;
    }

    .spot-prices-item {
        display: inline-block;
        width: 100%; /* Adjust this based on the number of items you want to show */
    }

    .ask-price-link {
        min-width: 100%;
        display: inline-block;
    }

    .spot-prices {
        display: flex;
    }

    .spot-prices-item {
        flex: 0 0 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    header.top-site-banner .spot-prices-header {
        font-size: 14px !important;
    }

    .add_to_cart_qty[class*='add_to_cart_qty'] > input,
    .add_to_cart_qty2[class*='add_to_cart_qty2'] > input {
        text-align: center !important;
    }

    .header-graphic-box,
    .header-graphic-text-box {
        display: none; /* Hide both elements on mobile */
    }

    .contained-slider,
    .contained-slider-wrapper {
        max-height: 128px;
    }

    .product-slider-image-link {
        min-height: 300px;
    }
    
    footer {
        text-align: center;
    }

    .social {
        justify-content: center;
    }

    body.single-product .product-page-amount-left-outer-div {
        display: none !important;
    }

    .wp-block-latest-posts__list li{
       text-align: center;
    }
    .wp-block-latest-posts__post-title {
        margin-left: 30px;
        margin-right: 30px;
    }
}

@media (max-width: 780px) {
    .entry-summary
    .wp-block-group
    .wp-block-group__inner-container
    .wp-block-columns.container div {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 350px) {
    .product-slider .add_to_cart_button,
    .wp-block-product-best-sellers
        .add_to_cart_button[class*='add_to_cart_button'] {
            font-size: 0.75rem;
            padding: 1em;
            flex: auto !important;
            min-width: 0;
        }
    }

@media screen and (max-width: 782px) {
    body.admin-bar header.top-site-banner {
        top: 0px;
    }
}

@media screen and (max-width: 820px) {
    .snize-main-panel {
        border-bottom: none !important;
    }
}

@media (max-width: 992px) {
    .wc-block-grid.has-5-columns .wc-block-grid__product {
        flex-basis: 33.333%;
    } 
}

@media (max-width: 1100px){
    .wc-block-grid.has-5-columns .wc-block-grid__product {
        max-width: 320px !important;
    }
}

@media (max-width: 866px){
    .wc-block-grid__products .wc-block-grid__product-image img {
        max-width: 90%;
        height: auto;
    }
}

/* Footer */
@media (max-width: 1200px){
    .content-social {
        text-align: center;
    }
    .footer-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .footer-wrapper > .content:not(.content-social) {
        width: 100%;
        height: auto;
        max-height: 50px;
        overflow: hidden;
        background: #eee;
        cursor: pointer;
        transition: max-height 0.4s ease;
        border-radius: 10px;
        text-align: center;
    }
    
    .footer-wrapper > .content.active {
        max-height: 500px;
    }

    .footer .content h5.title {
        margin-top: 10px;
    }

    .footer .content div ul.social {
        display: block !important;
        margin-top: 2%;
    }

    .title.follow-title {
        display: none;
    }
    #h-best-sellers {
        padding-left: 25px;
    }
}

@media (min-width: 1200px){
    .content.content-social {
        transform: translateY(-150px);
    }
}

/* ================================================= */
/*  CHECKOUT 
/* ================================================= */

@media only screen and (max-width: 885px) {
    .checkout-content {
    flex-direction: column;
    }

    .checkout-column-main {
    flex: 0 0 100%;
    margin-left: 0;
    }

    .checkout-column-sidebar {
    display: none;
    }

    .cart_item .product-thumbnail img {
    width: 85px !important;
    height: auto !important;
    object-fit: cover;
    max-width: none !important;
    }
}
/* Payment method styling */
@media only screen and (max-width: 699px) {
    .payment-method-content {
        display: flex;
    }

    .payment-method-action {
        display: none; 
    }

    .payment-method-action-mobile {
        display: flex;
        margin-top: 10px;
    }

    #change-pymt-method-btn-mobile {
        padding: 0.5em 1em;
        width: 100%;
        text-align: center;
    }
}

@media only screen and (max-width: 425px) {
    .billing-address-summary .billing-address {
    margin-left: 12px;
    }
}

/* ================================================= */
/*  CART PAGE
/* ================================================= */
@media only screen and (max-width: 768px) {
    body.woocommerce-cart .quantity-range .discount-price {
        margin-right: 0;
    }
    .pymt-method-options {
        flex-direction: column;
    }
    .pymt-method-option, 
    .pymt-method-options.open .pymt-method-option  {
        display: grid;
        grid-template-columns: auto auto;
        width: 100%;
    }
    .pymt-method-label-icon {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        width: 100%;
    }
    .pymt-method-icon {
        margin-left: 10px;
    }
    .pymt-method-option input {
        align-self: unset;
    }

    .pymt-method-options p {
        text-align: right;
    }

    .pymt-method-options{
        position: relative;
        cursor: pointer;
    }

    .pymt-method-option {
        padding: 10px;
        border-radius: 10px;
    }

    .pymt-method-option:not(:first-child) {
        display: none;
    }

    .pymt-method-options.open .pymt-method-option:hover {
        background: #ddd;
    }

    .free-shipping-notice-success {
        display: none;
    }
}

/* ================================================= */
/*  PRODUCT PAGE
/* ================================================= */
@media (max-width: 768px) {
    .related ul.products li.product {
    padding: 10px;
    }

    .related ul.products li.product a.button {
    margin-top: 5px;
    }
}
