/* Log In Page */

.woocommerce-form-login {
    display: flex;
    flex-direction: column;

    .woocommerce-form-row {
        margin-bottom: 0;

        .woocommerce-Input {
            margin-bottom: 12px;
            border-radius: 6px;
        }
    }

    .form-row {

        .woocommerce-form-login__rememberme {
            display: flex;
            align-items: center;

            .woocommerce-form__input-checkbox {
                width: 20px;
                height: 20px;
                margin-right: 8px;
                border-radius: 4px;
            }

            .woocommerce-form__input-checkbox:focus {
                color: #EA67A4;
            }

                       .woocommerce-form__input-checkbox:checked {
                color: #EA67A4;
            }

        }
        
    }

    .woocommerce-form-login__submit {
        margin-top: 48px;
        display: inline-flex;
            border: 2px solid white;
            background-color: transparent;
            align-items: center;
            justify-content: center;
            color: white;
            padding: 1rem 2rem;
            border-radius: 9999px;
            text-decoration: none;
            transition: background-color 0.3s ease;
            font-family: 'Open Sans', sans-serif;
            font-weight: 700;
            font-size: 14px;
            line-height: 14px;
            text-transform: uppercase;
    }

        .woocommerce-form-login__submit:hover {
            background-color: white;
            color: black;
            border: 2px solid white;
    }

}

/* Archive Product Page */

body.post-type-archive-product .woocommerce-message {
	background-color: #650C6F;
    border: 0;
    width: 100%;

}

.woocommerce-message::before {
	content: none !important;
}


.woocommerce-products-header {
    padding-bottom: 60px !important;
}

.woocommerce-products-header__title {
    color: #650C6F;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
}

.page-description {
    color: #650C6F;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

.woocommerce-products-header .page-description blockquote {
    background-color: white;
    padding: 16px;
    border: 4px solid #650C6F;
    border-radius: 8px;
    color: #650C6F;
    font-size: 1.125rem; 
    margin-bottom: 1.5rem;

    p:last-child {
        margin-bottom: 0;
    }

    strong {
        font-style: normal;
        margin: 0;
        font-weight: 700;
    }
}

.storefront-sorting {
    display: none;
}

/* Single Product */

ul.products::before,
ul.products::after {
  content: none !important;
  display: none !important;
}


ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1024px) {
  ul.products {
    grid-template-columns: 1fr;
  }
}

.products .product {
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 400px;
}

ul.products li.product {
    margin: 0;
    width: 100%;
}

.woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: black;
}

/* Image */
ul.products li.product img {
  width: 100%;
  height: auto;
}

.woocommerce-loop-product__title {
    text-align: left;
    font-family: 'Fredoka', sans-serif !important;
    color: #650C6F !important;
    font-size: 30px !important;
    line-height: 36px !important;
    font-weight: 700 !important;
    text-decoration: none;
}

/* Price */
ul.products li.product .price {
    text-align: left;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #650C6F !important;
}

/* Price */
ul.products li.product .woocommerce-product-details__short-description {
    text-align: left;
    font-family: 'Open Sans', sans-serif !important;
    color: black !important;
    font-size: 16px !important;
    line-height: 24px !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
}


/* Add to Cart button */
ul.products li.product .button {
justify-items: left;
  border: 2px solid #650C6F;
  color: #650C6F;
  background: transparent;
  padding: 0.5rem 1.25rem;
  font-weight: bold;
  border-radius: 9999px;
  text-align: center;
  transition: all 0.3s ease;
  width: fit-content;
  margin-top: auto;
}

ul.products li.product .button:hover {
  background: #650C6F;
  color: #ffffff;
}

/* Cart Styles */

.woocommerce-cart-form {
    margin-bottom: 36px;
    .woocommerce-cart-form__contents {
        margin-bottom: 0;
    }
}

.cart-collaterals {

    .cart_totals {

        strong {
            font-weight: 800;
        }

        .wc-proceed-to-checkout {
            display: flex;
            margin-left: auto;
        }

        .wc-proceed-to-checkout a {
            display: inline-flex;
            border: 2px solid white;
            background-color: transparent;
            align-items: center;
            justify-content: center;
            color: white;
            padding: 1rem 2rem;
            border-radius: 9999px;
            text-decoration: none;
            transition: background-color 0.3s ease;
            font-family: 'Open Sans', sans-serif;
            font-weight: 700;
            font-size: 14px;
            line-height: 14px;
            text-transform: uppercase;
        }

        .wc-proceed-to-checkout a:hover {
            color: black;
            background-color: white;
        }
    }

    /* Remove arrow from proceed to checkout */
    .wc-forward::after, .woocommerce-Button--next::after {
        display: none !important;
    }

}

/* Checkout Styles */

.woocommerce-checkout {
    #customer_details {
        label {
            font-family: 'Open Sans', sans-serif;
            font-weight: 700;
            color: white;
            margin-bottom: 8px;
        }
    }

    #loyalty_program_checkbox {
        width: 20px;
        height: 20px;
        padding-right: 8px;
    }

    #loyalty_program_checkbox:checked {
    background-color: #EA67A4;
}
}


.woocommerce-terms-and-conditions-wrapper {

    .validate-required {
        margin: 16px 0 !important;
        #terms {
            width: 16px;
            height: 16px;
        }
    }

}

/* Order Confirmation Styles */

.woocommerce-order {
    .wc-bacs-bank-details-heading {
        color: white;
        font-family: Fredoka, sans-serif;
        font-size: 30px;
        font-weight: 700;
        line-height: 36px;
    }

    .wc-bacs-bank-details-account-name {
        color: white;
        font-family: Fredoka, sans-serif;
        font-size: 30px;
        font-weight: 700;
        line-height: 36px;
    }
}

[data-automation-id="woo-commerce-subscription-opt-in"] {
    display: flex;
    align-items: center;
  margin-top: 8px;
  font-size: 18px;
}

/* Account portal button */

/* Force purple text on hover for the Portal button */
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--portal-external > a:hover {
  color: #6b21a8 !important;
}