/*
Theme Name: Fibel
Theme URI: 
Author: Foad Yousefi
Author URI: fibel.no
Description: Fibel Child Theme for Ollie
Template: ollie
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fibel
*/


html {
    scroll-behavior: smooth;
}

/* Footer */
.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-contact-us p {
    margin: 0;
    color: var(--wp--preset--color--border-dark);
}

.footer-slogan {
    color: var(--wp--preset--color--border-dark);
}

footer.site-footer a:hover {
    text-decoration: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Mini-cart Customizations */
/* Make title size h3 */
h2.wc-block-mini-cart__title {
  font-size: 1.5rem !important;
  font-weight: 600;
}

/* Remove product excerpt/description */
.wc-block-components-product-metadata__description {
  display: none !important;
}

/* Replace "Remove item" with a trash icon */
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link {
    font-size: 0 !important;
    width: 24px !important;
    height: 24px !important;
    mask-image: url("assets/img/delete.svg") !important;
    mask-repeat: no-repeat !important;
    mask-position: center !important;
    mask-size: contain !important;
    border: none !important;
    background-color: var(--wp--preset--color--main) !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    text-decoration: none !important;
    position: absolute;
    right: 20px;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link:hover {
    background-color: tomato !important;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector {
    margin-bottom: 0 !important;
}

.wc-block-mini-cart__drawer [data-wp-text="state.lowInStockLabel"] {
    background: tomato;
    color: white;
    border-radius: 100vh;
    padding: 2px 8px;
}

.wc-block-mini-cart__footer {
    padding-bottom: 100px;
}

body.is-dark-theme .wp-block-woocommerce-mini-cart-contents {
    background-color: var(--wp--preset--color--base);
}

body.is-dark-theme .wp-block-woocommerce-mini-cart-contents .wc-block-components-quantity-selector__button {
    color: var(--wp--preset--color--contrast);
    font-weight: 700;
    font-size: 1rem;
}

/* Fix for elongated checkbox and radio inputs */
input[type="checkbox"],
input[type="radio"],
.wc-block-components-radio-control__input,
.wc-block-components-checkbox__input {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    padding: 0 !important;
    margin: 0 10px 0 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
    aspect-ratio: 1 / 1 !important;
}

.wc-block-components-address-form__country.wc-block-components-country-input {
    display: none !important;
}

.fiby-product-link {
    margin-top: 10px;
    font-size: .9rem;
}

.fiby-product-link a:hover {
    color: var(--wp--preset--color--primary-accent) !important;
    text-decoration: underline !important;
}

.wp-block-woocommerce-product-collection li.wc-block-product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 1px 1px 6px 0px light-dark(rgb(0 0 0 / 0.1), rgb(255 255 255 / 0.2));
    padding: 10px;
    border-radius: 15px 15px 30px 30px;
    transition: all 0.3s ease-in-out;
    background-color: light-dark(white, #0f172a);
}

.wp-block-woocommerce-product-collection li.wc-block-product:hover {
    box-shadow: 1px 1px 6px 0px light-dark(rgb(0 0 0 / 0.2), rgb(255 255 255 / 0.3));
    transform: scale(1.002);
}

.wp-block-woocommerce-product-collection li.wc-block-product .add_to_cart_button,
.wp-block-woocommerce-product-collection li.wc-block-product .wc-block-components-product-button__button {
    width: 100%;
    background-color: var(--wp--preset--color--primary-accent);
    color: white;
    text-align: center;
    border-radius: 100vh;
    display: block;
}

.wp-block-woocommerce-product-collection li.wc-block-product .add_to_cart_button:hover {
    background-color: hsl(from var(--wp--preset--color--primary-accent) h 80% 50%);
}