/* Globals */

html,
body {
    overflow-x: hidden !important;
}

/* Header */

.pushlogic-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #ffffff;
    box-shadow: 0 0 20px #cccccc;
    transition: all 0.3s ease-in-out;
    /* Smooth transition for all properties */
}

@media all and (max-width: 600px) {
    .logged-in .pushlogic-sticky-header {
        top: 0;
    }
}

@media all and (min-width: 601px) and (max-width: 782px) {
    .logged-in .pushlogic-sticky-header {
        top: 46px;
    }
}

@media all and (min-width: 783px) {
    .logged-in .pushlogic-sticky-header {
        top: 32px;
    }
}

.pushlogic-sticky-header .millstone-logo {
    padding: 10px 0;
}

.pushlogic-sticky-header .millstone-logo img {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    max-width: none !important;
    transition: height 0.3s ease-in-out, max-height 0.3s ease-in-out;
    /* Smooth logo resizing */
}

.pushlogic-sticky-header .millstone-badge {
    position: absolute;
    left: 5px;
    top: 5px;
    z-index: 9999;
}

.pushlogic-sticky-header .wp-block-columns {
    padding: 0 10px !important;
    margin: 0 !important;
    transition: padding 0.3s ease-in-out, margin 0.3s ease-in-out;
    /* Smooth padding/margin transition */
}

.pushlogic-sticky-header .millstone-header-bottom {
    margin: 0 !important;
}

.pushlogic-sticky-header .millstone-header-bottom .wp-block-navigation {
    justify-content: center;
    padding: 0 0.5em;
    gap: 3em;
}

header.wp-block-template-part .millstone-header-bottom {
    border-top: 4px double #cccccc;
    border-bottom: 4px double #cccccc;
}

header.wp-block-template-part .millstone-header-bottom nav {
    background: #fff;
    background: -moz-linear-gradient(top, #e8e8e8 0%, #ffffff 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e8e8e8), color-stop(100%, #ffffff));
    background: -webkit-linear-gradient(top, #e8e8e8 0%, #ffffff 100%);
    background: -o-linear-gradient(top, #e8e8e8 0%, #ffffff 100%);
    background: -ms-linear-gradient(top, #e8e8e8 0%, #ffffff 100%);
    background: linear-gradient(to bottom, #e8e8e8 0%, #ffffff 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e8e8e8', endColorstr='#ffffff', GradientType=0);
    box-shadow: 0 0 20px rgba(000, 000, 000, 0.1);
}

header.wp-block-template-part .millstone-header-bottom .wp-block-navigation__container>li>a {
    padding-top: 0.75em;
    padding-bottom: 0.75em;
}

header.wp-block-template-part .wp-block-separator {
    border-width: 0 0 4px 0;
    border-style: double;
    border-color: #dbdbdb;
}

header.wp-block-template-part .has-global-padding {
    padding-left: 0;
    padding-right: 0;
}

.millstone-header-top {
    padding-left: 10em !important;
    padding-right: 10em !important;
}

header.wp-block-template-part .millstone-badge-right {
    display: none;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    top: calc(100% + 15px);
    left: auto;
    right: -1px;
}

.plmm-search-form-wrapper {
    display: none;
    padding: 20px;
    background: #efefef;
    box-shadow: inset 0 0 20px rgba(000, 000, 000, 0.2);
}

.plmm-search-form-wrapper.plmm-search-form-open {
    display: flex;
}

.plmm-search-form-toggle {
    display: block;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin: 0 0 0 15px;
}

.plmm-search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plmm-search-form input[type="search"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1.25rem;
    width: 100%;
    font-family: var(--wp--preset--font-family--heading);
    text-transform: uppercase;
}

.plmm-search-form label {
    width: 70%;
}

.plmm-search-form input[type="search"]:focus {
    outline: none;
    border-color: #555555;
}

.plmm-search-form input[type="search"]::placeholder {
    color: #555555;
}

.plmm-search-form input[type="submit"] {
    background: #555555;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 500ms ease-in-out;
    width: 28%;
    font-family: var(--wp--preset--font-family--heading);
    text-transform: uppercase;
}

.plmm-search-form-wrapper p {
    display: none;
}

/* Footer */

footer.wp-block-template-part .millstone-mills-footer {
    border-top: 4px double #cccccc;
}

.millstone-copyright {
    font-size: 0.6em !important;
    letter-spacing: 3px;
}

.millstone-copyright a {
    text-decoration: none;
}

.plmm-newsletter-sign-up {
    border-top: 4px double #cccccc;
}

.plmm-newsletter-sign-up .wpcf7-form,
.plmm-newsletter-sign-up .wpcf7-form p {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plmm-newsletter-sign-up .wpcf7-form p:not(:last-of-type) {
    margin: 0 10px 0 0;
}

.plmm-newsletter-sign-up .wpcf7-form input {
    min-height: 35px;
}

/* Blocks */

.millstone-wide-slider {
    width: 100% !important;
    max-width: 100% !important;
}

.millstone-wide-slider .swiper-button-prev,
.millstone-wide-slider .swiper-button-next {
    color: #555555;
    padding: 5px;
    background-color: #ffffff;
}

.millstone-wide-slider .swiper-button-prev {
    left: 0 !important;
}

.millstone-wide-slider .swiper-button-next {
    right: 0 !important;
}

/* Homepage */

.home .wp-block-post-title {
    position: absolute;
    left: -9999px;
}

.home main .wp-block-group.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained {
    display: none;
}

.home .entry-content.wp-block-post-content.has-global-padding.is-layout-constrained.wp-block-post-content-is-layout-constrained {
    padding: 0 !important;
    margin: 0 !important;
}

.home .swiper-slide img {
    width: 100% !important;
    height: auto !important;
}

.ub_image_slider {
    min-height: auto !important;
}

.home div[style="margin-top:0;margin-bottom:0;height:var(--wp--preset--spacing--30)"] {
    display: none;
}

.home .wp-block-group.is-layout-flow.wp-block-group-is-layout-flow {
    margin: 0;
}

.home .entry-content {
    position: relative;
}

/*
.home .entry-content:after {
    content: "";
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    top:0;
    background:transparent url('../images/mm-badge-backdrop.png') no-repeat center;
    background-size:30% auto;
    background-position:50% 100%;
    opacity:0.03;
}
*/
.plmm-main-content {
    position: relative;
    z-index: 1;
}

.ub_call_to_action_headline {
    padding: 0;
}

/* Calls to Action */

#pushlogic-calls-to-action {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 0 50px;
    border-bottom: 4px double #efefef;
    padding: 20px 0 50px;
}

#pushlogic-calls-to-action>div {
    width: 24%;
}

#pushlogic-calls-to-action a {text-decoration:none;}

#pushlogic-calls-to-action>div img {
    border: 1px solid rgba(000, 000, 000, 0.1);
    transition: border-color 500ms ease-in-out;
    width: 100%;
    height: auto;
}

#pushlogic-calls-to-action>div h3 {
    margin: 0;
    padding: 6px;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
}

#pushlogic-calls-to-action>div a:hover {
    text-decoration: none;
}

#pushlogic-calls-to-action>div a:hover img {
    border-color: #000000;
}

@media all and (max-width:1024px) {
    #pushlogic-calls-to-action>div {
        width: 49%;
    }
}

@media all and (max-width:600px) {
    #pushlogic-calls-to-action>div {
        width: 100%;
    }
}

.plmm-image-title-cta {
    border: 1px solid rgba(000, 000, 000, 0.1);
    background: #ffffff;
}

.plmm-image-title-cta a {
    display: block;
    text-decoration: none;
    transition: opacity 500ms ease-in-out;
    text-align: center;
}

.plmm-image-padding {
    padding: 20px;
}

.plmm-image-title-cta a:hover {
    opacity: 0.5;
}

/* Archive */

.archive .product {
    outline: 1px solid #ccc;
}

.woocommerce.wc-block-catalog-sorting select.orderby {
    border: 1px solid #ccc;
    padding: 10px 5px;
}

/* Product Page */

.millstone-mills-product-price {
    font-size: 2.5rem;
}

#pushlogic-advanced-product-images-container.plmm-sticky-content {
    position: -webkit-sticky;
    position: sticky !important;
    top: 80px;
}

#pushlogic-advanced-product-images-container-inner {
    transition: all 500ms ease-in-out;
}

#pushlogic-advanced-product-images-container:not(.plmm-sticky-content) #pushlogic-advanced-product-images-container-inner {
    width: 100%;
}

#pushlogic-advanced-product-images-container.plmm-sticky-content #pushlogic-advanced-product-images-container-inner {
    width: 80%;
}

.woocommerce-tabs {
    position: relative;
    z-index: 10;
    background: #ffffff;
}

.single-product .variations tbody tr,
.single-product .variations tbody {
    display: block;
}

.single-product .variations tbody tr th,
.single-product .variations tbody tr td {
    display: block;
    width: 100%;
}

.single-product .quantity .qty {
    height: 37px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.single-product .tagged_as {
    display: none;
}

.pushlogic-product-additional-settings h3 {
    margin: -20px 0 20px !important;
}

/* Product Page - Responsive Pop Up */

.plapo-select-salt-btn,
.plapo-select-pepper-btn {
    display: block;
    width: 100%;
    background: #555555;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 500ms ease-in-out;
}

/* full-screen dark overlay */
.plapo-modal {
    display: none;
    /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;

    /* center the modal content */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* white modal box */
.plapo-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 90%;
    margin: 0 auto;
}

/* close “×” button */
.plapo-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.plapo-modal-close:hover {
    color: #000;
}

/* modal heading */
.plapo-modal-content h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
}

/* swatch grid */
.plapo-modal-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 !important;
    padding: 0 !important;
}

/* each swatch item */
.plapo-modal-swatches li {
    list-style: none;
    cursor: pointer;
    border: 2px solid transparent;
    width: 11%;
    transition: border-color 0.2s, transform 0.1s;
}

@media all and (max-width:600px) {
    .plapo-modal-swatches li {
        width: 22%;
    }
}

.plapo-modal-swatches li:hover {
    border-color: #555;
    transform: scale(1.05);
}

/* swatch image */
.plapo-modal-swatches img {
    display: block;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 2px;
}

.plapo-swatch-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-top: 4px;
}

/* responsive tweaks */
@media (max-width: 480px) {
    .plapo-modal-content {
        padding: 16px;
        max-width: 95%;
        max-height: 90%;
    }

    .plapo-modal-swatches {
        gap: 8px;
    }
}

/* Category Page */

.plmm-pagination .wp-block-query-pagination-numbers {
    margin: 0;
    display: flex;
    justify-content: center;
}

.plmm-pagination .page-numbers,
.plmm-pagination .wp-block-query-pagination-next {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    margin: 0 5px;
}

/* Basket */

.woocommerce-account .wp-block-post-title,
.woocommerce-account main .woocommerce,
.woocommerce-cart .wp-block-post-title,
.woocommerce-cart main .woocommerce,
.woocommerce-checkout .wp-block-post-title,
.woocommerce-checkout main .woocommerce {
    max-width: 100%;
}

.woocommerce td.product-name .wc-item-meta p,
.woocommerce td.product-name .wc-item-meta:last-child,
.woocommerce td.product-name dl.variation p,
.woocommerce td.product-name dl.variation:last-child {
    margin-top: 0;
    font-size: 0.8rem;
    line-height: 1.2;
}

.woocommerce-cart .variation {
    margin-top: 10px !important;
}

.plmm-return-to-shop a {
    text-decoration: none;
    position: relative;
    top: 2px;
}

.plmm-return-to-shop svg {
    fill: #555555;
    width: 20px;
    height: 20px;
}

/* Checkout */

.woocommerce-page table.shop_table {
    width: 100%;
}

.woocommerce-checkout .pushlogic-sticky-header .millstone-badge {display:none;}

/* Contact Page */

.mmcp-columns {
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(000, 000, 000, 0.1);
    border: 1px solid #ccc;
}

.mmcp-left {
    background: #efefef;
}

.mmcp-columns iframe {
    display: block;
    border: 0;
    margin: 0;
}

/* Contact Forms */

.mmcf {
    padding: 20px;
}

.wpcf7-form input:not([type="submit"]) {
    display: block;
    font-size: 16px;
    padding: 5px;
    border: 3px double #ccc;
    width: calc(100% - 16px);
}

.wpcf7-form textarea {
    display: block;
    font-size: 16px;
    padding: 5px;
    border: 3px double #ccc;
    width: calc(100% - 16px);
}

.wpcf7-form input[type="submit"] {
    font-size: 18px;
    letter-spacing: 4px;
    font-family: var(--wp--preset--font-family--heading);
    text-transform: uppercase;
    padding: 10px;
    border: 3px double #ccc;
    width: 100%;
    background: #555555;
    color: #fff;
    margin: 0;
    cursor: pointer;
    transition: all 350ms ease-in-out;
}

.wpcf7-form input[type="submit"]:hover {
    background: #000000;
}

/* --- Responsive Styling */

/* Navigation */

@media (max-width: 1330px) {
    .entry-content>div:not(.ub_image_slider) {
        padding: 0 1em;
    }
}

@media (max-width: 1220px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: flex !important;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none !important;
    }

    .millstone-header-top {
        position: relative;
        padding: 1em 6em !important;
    }

    header.wp-block-template-part .millstone-header-bottom {
        border: none;
        margin-left: 10px !important;
    }

    header.wp-block-template-part .millstone-header-bottom nav {
        background: #ffffff;
        box-shadow: none;
    }

    header.wp-block-template-part {
        border-bottom: 1px solid #cccccc;
        background: #ffffff !important;
    }

    .wp-block-navigation__responsive-container .wp-block-navigation__container {
        gap: 20px !important;
        flex-direction: column;
        align-items: stretch;
    }

    .wp-block-navigation__responsive-container .wp-block-navigation__container .wp-block-navigation-item__label {
        display: block;
        font-size: 1.25rem !important;
    }

    .wp-block-navigation .wp-block-navigation-item,
    .wp-block-navigation .wp-block-navigation-item a {
        display: block !important;
        text-align: left;
        width: 100% !important;
    }

    .wp-block-navigation-item__content {
        width: 100% !important;
    }

    .wp-block-navigation-item__content:focus {
        outline: none !important;
    }

    .wp-block-navigation__responsive-container-content ul li ul {
        display: none !important;
    }

    .wp-block-navigation__responsive-container-content ul li {
        border-bottom: 1px solid #000000;
    }

    .wp-block-navigation__responsive-container-content ul {
        width: 100%;
    }

    .wp-block-navigation__responsive-container-close {
        right: 10px !important;
    }

    .plapo-submenu-view li:not(:last-of-type) {
        margin: 0 0 15px !important;
    }

    .plapo-submenu-view li a {
        font-size: 1.25rem !important;
    }

    .plapo-back-btn {
        background: #000000 !important;
        color: #ffffff;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
}

@media (min-width: 1221px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none !important;
    }

    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block !important;
        width: 100%;
        position: relative;
        z-index: auto;
        background-color: inherit;
    }
}

@media (max-width: 1024px) {
    .single-product .variations tbody tr th {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    .single-product .variations tbody tr td {
        margin: 0 !important;
        padding: 0 0 10px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 880px) {
    .millstone-header-top {
        padding: 1em 5em !important;
    }

    .pushlogic-sticky-header .millstone-badge img {
        width: 90px !important;
        height: auto !important;
    }
}

@media all and (max-width: 1024px) {
    .single-product .variations_form {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        z-index: 999998;
        padding: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0 !important;
        box-shadow: 0 0 20px rgba(000, 000, 000, 0.1);
    }

    .single-product .variations {
        margin: 0 !important;
    }

    .single-product .variations * {
        margin: 0 !important;
    }

    .single-product .variations tbody tr td,
    .single-product .variations tbody tr th {
        padding: 0 !important;
    }

    .single-product .variations tbody {
        display: flex !important;
        justify-content: space-between;
        width: 100%;
    }

    .single-product .variations tbody tr {
        width: 49% !important;
    }

    .single-product .single_variation_wrap {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin: 10px 0 0 !important;
    }

    .single-product .woocommerce-variation-add-to-cart {
        display: flex !important;
        justify-content: space-between;
        width: 100% !important;
    }

    .reset_variations {
        position: fixed;
        bottom: 23px;
        left: 0;
        right: 0;
        display: block;
        text-align: center;
        text-transform: uppercase;
    }
}

@media (min-width: 401px) and (max-width: 780px) {
    .millstone-header-top {
        padding: 1em 4em !important;
    }

    header.wp-block-template-part:not(.pushlogic-sticky-header) .millstone-badge img {
        width: 70px !important;
        height: auto !important;
    }

    header.wp-block-template-part:not(.pushlogic-sticky-header) .millstone-logo img {
        height: 40px !important;
        max-height: 40px !important;
        width: auto !important;
        max-width: none !important;
    }

    .millstone-copyright {
        border-top: 4px double #cccccc;
        padding: 10px;
        margin: 20px 0 10px !important;
    }

    .plmm-search-form input[type="search"] {
        font-size: 0.8rem;
    }

    .plmm-search-form input[type="submit"] {
        font-size: 0.8rem;
        padding: 10px;
    }

    .millstone-wide-slider .swiper-button-prev,
    .millstone-wide-slider .swiper-button-next {
        top: calc(50% - 14px);
    }

    /*
    .millstone-badge-right {display:block !important;}
    .wc-block-customer-account__account-icon {position:absolute;top:0;left:80px;}
    .wp-block-woocommerce-mini-cart {position:absolute;bottom:0;right:80px;}
    .plmm-search-form-toggle {position:absolute;top:0;right:80px;}
    .wp-block-navigation__responsive-container-open {position:absolute;bottom:0;left:80px;}
    header.wp-block-template-part > .wp-block-group > .wp-block-columns > .wp-block-column:first-of-type, header.wp-block-template-part > .wp-block-group > .wp-block-columns > .wp-block-column:last-of-type {max-width:70px;}
    */
    /*
    #wc-stripe-payment-request-wrapper {position:fixed;bottom:10px;left:10px;width:calc(49% - 10px);z-index:999999 !important;margin:0 !important;}
    */
}

@media (max-width: 580px) {
    .millstone-header-top {
        padding: 1em 3em !important;
    }

    header.wp-block-template-part>.wp-block-group>.wp-block-columns>.wp-block-column:first-of-type {
        display: none;
    }

    header.wp-block-template-part>.wp-block-group>.wp-block-columns>.wp-block-column:nth-child(2) {
        position:absolute;
        left:0;right:0;
    }

    header.wp-block-template-part {height:75px;}

    header.wp-block-template-part>.wp-block-group>.wp-block-columns {
        justify-content: center;
        position: relative !important;
        height:75px;
    }

    /* Make the last column positioned so absolute positioning works within it */
    header.wp-block-template-part>.wp-block-group>.wp-block-columns>.wp-block-column:last-child {
        position: static !important;
    }
    
    header.wp-block-template-part>.wp-block-group>.wp-block-columns>.wp-block-column:last-child > div {
        position: static !important;
    }

    header.wp-block-template-part>.wp-block-group>.wp-block-columns>.wp-block-column:last-child a, header.wp-block-template-part>.wp-block-group>.wp-block-columns>.wp-block-column:last-child button {padding:0 !important;}

    .plmm-newsletter-sign-up .wpcf7-form,
    .plmm-newsletter-sign-up .wpcf7-form p {
        display: block;
    }

    .plmm-newsletter-sign-up .wpcf7-form p:not(:last-of-type) {
        margin: 0 0 10px 0;
    }

    header.wp-block-template-part .wp-block-woocommerce-customer-account {
        position:absolute;top:calc(50% - 12.5px);left:80px;z-index:999999;
    }

    header.wp-block-template-part .millstone-header-bottom {
        position:absolute;top:calc(50% - 12px);left:35px;z-index:999999;
    }

    header.wp-block-template-part .wp-block-ub-icon {position:absolute;top:calc(50% - 12px);right:50px;z-index:999999;}

    header.wp-block-template-part .wp-block-woocommerce-mini-cart {position:absolute;top:calc(50% - 12.5px);right:85px;}

    header.wp-block-template-part .plmm-search-form-toggle {margin:0;}

    .millstone-wide-slider .swiper-button-prev, .millstone-wide-slider .swiper-button-next {display:none !important;}
}

@media (max-width: 400px) {
    .millstone-header-top {
        padding: 1em 2em !important;
    }

    .wc-block-mini-cart__button,
    .wp-block-woocommerce-customer-account,
    .pushlogic-sticky-header .millstone-header-bottom .wp-block-navigation {
        padding: 0;
    }

    header.wp-block-template-part .millstone-logo img {
        height: 30px !important;
        max-height: 30px !important;
        width: auto !important;
        max-width: none !important;
    }

    .millstone-copyright {
        border-top: 4px double #cccccc;
        padding: 10px;
        margin: 20px 0 10px !important;
    }

    .single-product .variations_form {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        z-index: 999998;
        padding: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin: 0 !important;
        box-shadow: 0 0 20px rgba(000, 000, 000, 0.1);
    }

    .single-product .variations {
        margin: 0 !important;
    }

    .single-product .variations tbody tr td,
    .single-product .variations tbody tr th {
        padding: 0 !important;
    }

    .single-product .variations tbody {
        display: flex !important;
        justify-content: space-between;
        width: 100%;
    }

    .single-product .variations tbody tr {
        width: 49% !important;
    }

    .single-product .single_variation_wrap {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin: 10px 0 0 !important;
    }

    .single-product .woocommerce-variation-add-to-cart {
        display: flex !important;
        justify-content: space-between;
        width: 100% !important;
    }

    .reset_variations {
        position: fixed;
        bottom: 23px;
        left: 0;
        right: 0;
        display: block;
        width:50px;
        text-align: center;
        text-transform: uppercase;
        margin: 0 auto !important;
    }

    .plmm-search-form input[type="search"] {
        font-size: 0.8rem;
    }

    .plmm-search-form input[type="submit"] {
        font-size: 0.8rem;
        padding: 10px;
    }

    .millstone-wide-slider .swiper-button-prev,
    .millstone-wide-slider .swiper-button-next {
        top: calc(50% - 14px);
    }

    header.wp-block-template-part .wp-block-woocommerce-customer-account {
        left:65px;
    }

    header.wp-block-template-part .millstone-header-bottom {
        left:20px;
    }

    header.wp-block-template-part .wp-block-ub-icon {right:35px;}

    header.wp-block-template-part .wp-block-woocommerce-mini-cart {right:70px;}
    header.wp-block-template-part .millstone-logo {top: calc(50% - 15px);}
}

/* Removing elements - might need reinstating later */

.woocommerce-breadcrumb,
.wp-block-woocommerce-product-results-count,
.wp-block-woocommerce-catalog-sorting {
    display: none !important;
}

/* Responsive Column Gutenberg Overrides */

.plmm-cta-row.wp-block-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px;
    /* Allow wrapping */
}

.plmm-cta-row .wp-block-image {padding:3rem 0;display:flex;justify-content:center;align-items:center;}

.plmm-cta-row.wp-block-columns>.wp-block-column {
    width: 100% !important;
    /* Force exactly half width */
    box-sizing: border-box;
}

@media all and (max-width:780px) {

    .plmm-cta-row.wp-block-columns {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        /* Allow wrapping */
    }

    .plmm-cta-row.wp-block-columns>.wp-block-column {position:relative;}

    .plmm-cta-row.wp-block-columns>.wp-block-column h2 {
        font-size: 1rem !important;
        padding: 5px !important;
    }
}

@media all and (max-width:580px) {
    .plmm-cta-row.wp-block-columns {
        display: grid !important;
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 10px;
        /* Allow wrapping */
    }
    .woocommerce-checkout header.wp-block-template-part .millstone-badge {display:none !important;}
}

/*
Quantity Toggle
*/

.woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.woocommerce div.product form.cart div.quantity {
    float:none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin:0 10px 0 0;
}

.product-type-simple form.cart {
    float:none;
    display: flex;
    align-items: center;
    margin:0 10px 0 0;
}

.woocommerce div.product form.cart div.quantity:before {
    content:"Quantity:";
    margin:0 10px 0 0;
}

.woocommerce div.product form.cart div.quantity .qty {
    margin:0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 16px;
    width: 51px;
}

.woocommerce-cart .quantity {
    float:none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin:0 10px 0 0;
}

.woocommerce-cart .quantity .qty {
    margin:0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border: 1px solid #cccccc;
    font-size: 16px;
    width: 42px;
    height: 37px;
}

/* Hide spinner arrows on number inputs */
.woocommerce div.product form.cart div.quantity .qty::-webkit-outer-spin-button,
.woocommerce div.product form.cart div.quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.woocommerce div.product form.cart div.quantity .qty[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-minus span, .qty-plus span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height:1;
}

.qty-minus span {position: relative;bottom:1px;}

.qty-minus {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 41px;
    width: 41px;
    line-height:1;
    border: 1px solid #ccc;
    border-right: none;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    cursor: pointer;
    font-size: 1.5rem;
}

.qty-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 41px;
    width: 41px;
    line-height:1;
    border: 1px solid #ccc;
    border-left: none;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    cursor: pointer;
    font-size: 1.5rem;
}

