/* =================================================================
   CROCOBLOCK - Widget Enhancements
   ================================================================= */

/*
 * Testimonial - Widget has no wrapper padding controls
 */
.jet-testimonials__content {
    padding: var(--space-xl); /* Main content padding */
    gap: var(--space-3xs); /* Element spacing within testimonial */
}

/*
 * JetFilters - Removes the focus effect when its selected 
 */
.jet-select__control:focus, .jet-select__control:focus-visible,
.jet-select__control:focus-within, .jet-sorting-select:focus,
.jet-sorting-select:focus-visible, .jet-sorting-select:focus-within {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/*
 * Inline SVG - There was a min-width set that didn't allow to use small sized icons
 */
.jet-inline-svg svg {
    min-width: unset !important;
}

/*
 * JetMenu - Align dropdown to the right 
 */

.jet-nav__sub {
    left: unset !important;
    right: 0 !important;
}

/*
 * Pagination - Mobile - Shows only previous/next to have visual control and simplicity
 */
@media (max-width: 767px) {
    .archive-pagination .jet-smart-filters-pagination .jet-filters-pagination__item:not(.prev-next) {
        display: none;
    }
}

/* ================================================================
   WOOCOMMERCE CORE
   ================================================================ */

/* Sale price - Removes underline to improve readability */
.product-item .product-price ins { text-decoration: none; }

/* Regular price - Sets a neutral colour, reduces size and improves readability */
.product-item .product-price del {
    color: var(--colour-grey-500);
    font-weight: normal;
    font-size: 0.74em;
    text-decoration: none;

}

/* WooCommerce - Breadcrumb widget */
.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 0px;
}

/* Inverts regular and sale price order */
 .product-item .jet-woo-product-price:has(ins):has(del) {
    display: flex;
    flex-direction: row-reverse;
    column-gap: 0.4em;
}

/* Hides "in stock" label */
.product-item .product-stock:has(.in-stock) { display: none; }

/* Stock label bottom margin */
.product-item .product-stock p { margin-bottom: 0; }

/*
 * WooCommerce - Notices - Several optimizations
 */ 

.wrapper-notices { /* Hide outer wrapper by default - It has some height that breaks design*/
    display: none;
}

.wrapper-notices:has(.woocommerce-message),
.wrapper-notices:has(.woocommerce-error),
.wrapper-notices:has(.woocommerce-info) { /* Show wrapper when it contains a notice */
    display: flex; 
}

.woocommerce-message { /* Breaking design */
    margin-top: 0px;
    margin-bottom: 0px;
}


/* =================================================================
   TYPOGRAPHY
   ================================================================= */

/*
 * Vertical Heading
 * Reverts to horizontal on mobile for readability 
 */
.responsive-vertical-heading { writing-mode: vertical-rl; }

/*
 * Mobile Override - Horizontal Text Below 768px
 * Improves mobile UX and prevents layout issues 
 */
@media (max-width: 767px) {
    .responsive-vertical-heading { writing-mode: horizontal-tb; } 
}

/* 
 * Vertical Text - 180° Rotation
 * White-space and overflow prevent text wrapping issues 
 */
.vertical-heading {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    display: inline-block;
    overflow: visible;
}