/* ==========================================================================
   Badex Customizations — badex-styles.css
   Anpassad CSS för badex.se (B2B-grossistbutik)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Sidfot
   -------------------------------------------------------------------------- */

.site-footer .wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    color: #e5e5e5;
    height: inherit !important;
}

.site-footer .wpcf7 input[type="submit"] {
    height: inherit !important;
    background-color: #E0C387;
    font-family: "Roboto", Sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 16px 16px 16px 16px;
    padding: 15px 30px;
}

.site-footer .wpcf7 input[type="submit"]:hover {
    background-color: #E0A950;
}

.site-footer .wpcf7-mail-sent-ok {
    border: 0;
    border-bottom: 2px solid #398f14;
}

.site-footer .wpcf7-mail-sent-ng {
    border: 0;
    border-bottom: 2px solid #ff0000;
}

.site-footer .wpcf7-spam-blocked {
    border: 0;
    border-bottom: 2px solid #ffa500;
}

.site-footer .wpcf7-validation-errors {
    border: 0;
    border-bottom: 2px solid #f7e700;
}

.site-footer .elementor-widget-wp-widget-ocean_contact_info H5 {
    color: #e5e5e5;
    font-size: 16px;
}

.site-footer .elementor-widget-wp-widget-woocommerce_recently_viewed_products H5 {
    color: #e5e5e5;
    font-size: 16px;
}

.site-footer .elementor-widget-wp-widget-woocommerce_recently_viewed_products a {
    color: #E0C387;
}

.site-footer .elementor-widget-wp-widget-woocommerce_recently_viewed_products a:hover {
    color: #E0A950;
}

.site-footer .elementor-widget-wp-widget-woocommerce_recently_viewed_products .amount {
    display: none;
}

.site-footer .oceanwp-custom-links li a {
    color: #E0C387;
}

.site-footer .oceanwp-custom-links li a:hover {
    color: #E0A950;
}

#footer-bottom #footer-bottom-menu {
    display: none;
}

/* --------------------------------------------------------------------------
   Produktsida
   -------------------------------------------------------------------------- */

.pwb-brand-shortcode {
    margin-left: 6em;
    margin-right: 6em;
    text-align-last: center;
}

.pwb-brand-shortcode img {
    width: 100px;
}

.yikes-custom-woo-tab-title-dokument {
    display: none;
}

.woocommerce-Tabs-panel h2 {
    display: none;
}

.woocommerce div.product form.cart .variations {
    text-align: center;
    font-family: alice;
}

.woocommerce div.product form.cart .variations .hasCustomSelect {
    opacity: inherit !important;
    position: relative !important;
    padding: 0 !important;
    width: 200px !important;
    max-width: 100%;
    -moz-white-space: pre-wrap;
    -o-white-space: pre-wrap;
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align-last: center;
}

.woocommerce div.product form.cart .variations .theme-select {
    display: none !important;
}

.woocommerce table.shop_table td {
    text-transform: none !important;
}

.elementor-widget-woocommerce-product-title .entry-title {
    border: 0;
}

.vi-wpvs-variation-wrap.vi-wpvs-variation-wrap-vi_wpvs_image_design .vi-wpvs-option-wrap.vi-wpvs-option-wrap-selected {
    z-index: 1000;
}

.vi-wpvs-variation-wrap .vi-wpvs-option-wrap {
    position: inherit !important;
}

.wooco_components .wooco_component_required .wooco_component_name:after {
    content: none !important;
}

.wooco_components .wooco_component {
    border-bottom: none;
    border-top: 1px solid #ddd;
    text-align: center;
}

.wooco_component_product_selection .dd-desc > span {
    display: none;
}

.wooco_component_product {
    flex-direction: column-reverse;
    row-gap: 2px;
}

.wooco_component_product_name {
    text-align: center;
    margin-top: 10px;
}

.wooco_component_product_select {
    white-space: pre-wrap;
    height: 4em;
}

.wooco_component_product_image img {
    margin-top: 5px;
}

.woocommerce-variation-description p {
    margin-bottom: 0;
}

.woocommerce-price-suffix {
    font-size: unset;
}

.stock {
    color: #4a4a4a !important;
    font-size: unset !important;
    font-weight: normal !important;
}

.elementor-product-simple .stock {
    text-align: center;
}

.woocommerce-Price-amount {
    font-size: unset !important;
    vertical-align: unset !important;
    padding-top: unset !important;
    letter-spacing: unset !important;
}

.woocommerce-variation-price {
    display: none;
}

.woocommerce .net_product_price p {
    margin-bottom: 0;
}

.woocommerce .site-breadcrumbs {
    padding-top: 5px;
}

/* --------------------------------------------------------------------------
   Produktarkiv
   -------------------------------------------------------------------------- */

.woocommerce ul.products.list li.product li.title a {
    font-size: inherit !important;
}

.products-per-page {
    margin-top: 10px;
    margin-right: 8px;
}

.oceanwp-toolbar .products-per-page {
    margin-top: 0;
    margin-right: 8px;
}

.woocommerce .oceanwp-grid-list a:last-child {
    display: none;
}

/* --------------------------------------------------------------------------
   Mini-cart (Elementor)
   -------------------------------------------------------------------------- */

.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons a.elementor-button--checkout {
    display: none;
}

.elementor-menu-cart__footer-buttons {
    display: inline !important;
}

/* --------------------------------------------------------------------------
   Store Locator
   -------------------------------------------------------------------------- */

#wpsl-stores .wpsl-store-location .wpsl-store-thumb {
    height: 80px !important;
    width: 80px !important;
}

/* --------------------------------------------------------------------------
   Varukorg
   -------------------------------------------------------------------------- */

.woocommerce-cart-form {
    font-family: poppins;
}

.woocommerce-cart-form button[type="submit"],
.woocommerce a.button.wc-backward {
    height: inherit !important;
    background-color: #E0C387;
    font-family: "Roboto", Sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 16px 16px 16px 16px;
    padding: 15px 30px;
}

.woocommerce a.button.wc-forward,
.woocommerce a.restore-item {
    background-color: #E0C387;
    font-family: "Roboto", Sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 16px 16px 16px 16px;
    padding: 6px 18px;
}

.woocommerce-cart-form button[type="submit"]:hover,
.woocommerce a.button.wc-backward:hover,
.woocommerce a.button.wc-forward:hover,
.woocommerce a.restore-item:hover {
    background-color: #E0A950;
}

.wc-proceed-to-checkout {
    text-align: center;
}

.woocommerce-cart-form__cart-item .wcpa_cart_meta .wcpa_cart_meta_item .wcpa_cart_meta_item-label {
    font-weight: inherit;
}

.woocommerce-cart-form__cart-item .backorder_notification {
    display: none;
}

.woocommerce-cart-form__cart-item .wcpa_cart_meta {
    font-size: inherit;
}

.shop_table .cart-subtotal,
.woocommerce-checkout-review-order-table .cart-subtotal {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Kassa — dölj kassafält och obligatoriska-asterisker
   -------------------------------------------------------------------------- */

.woocommerce .woocommerce-billing-fields .required {
    display: none;
}

/* Fält som görs till type=hidden via PHP — CSS som säkerhetsnät. */
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_postcode_field,
.woocommerce-checkout #billing_email_field,
.woocommerce-checkout #billing_phone_field {
    display: none !important;
}

/* Dölj "Skicka till annan adress"-kryssrutan. */
.woocommerce .woocommerce-shipping-fields #ship-to-different-address-checkbox {
    display: none;
}

/* --------------------------------------------------------------------------
   Frakt — visuellt säkerhetsnät (tas även bort via PHP-filter)
   -------------------------------------------------------------------------- */

.woocommerce-shipping-totals,
.woocommerce-checkout-review-order-table th.shipping,
.woocommerce-checkout-review-order-table td.shipping {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Order / Konto-sidor
   -------------------------------------------------------------------------- */

.woocommerce .woocommerce-customer-details {
    display: none;
}

.woocommerce .woocommerce-order .woocommerce-order-overview__total {
    display: none;
}

.woocommerce .woocommerce-thankyou-order-details ul.order_details li:first-child,
.woocommerce .woocommerce-thankyou-order-details li {
    border-right: 0 !important;
    padding: 0 !important;
}

.woocommerce .woocommerce-thankyou-order-details {
    border: 0 !important;
}

.woocommerce .cart_item .product-total p,
.woocommerce .cart_item .product-total {
    padding: 0 !important;
    margin: 0;
}

.woocommerce .cart_item .product-subtotal p,
.woocommerce .cart_item .product-price p {
    margin: 0;
}

.single_add_to_cart_button,
.add_to_cart_button {
    text-transform: none !important;
}

.woocommerce .woocommerce-order-details .product-total,
.woocommerce-cart .cart-collaterals .cart_totals .order-total,
.woocommerce .cart .product-subtotal,
.woocommerce .cart .product-price,
.woocommerce .woocommerce-checkout-review-order-table .product-total,
.woocommerce .woocommerce-checkout-review-order-table .order-total {
    text-wrap-style: pretty;
}

/* Pris- och delsummakolumner: förhindra radbrytning mitt i belopp/label. */
.woocommerce .cart .product-price span,
.woocommerce .cart .product-subtotal span,
.woocommerce .cart .product-price .woocommerce-Price-amount,
.woocommerce .cart .product-subtotal .woocommerce-Price-amount {
    white-space: nowrap;
}

/* Sätt minimibredd på pris-kolumnerna så texten får plats. */
.woocommerce table.cart th.product-price,
.woocommerce table.cart td.product-price,
.woocommerce table.cart th.product-subtotal,
.woocommerce table.cart td.product-subtotal {
    min-width: 170px;
}

/* Kassa-review-order: samma behandling. */
.woocommerce-checkout-review-order-table td.product-total span {
    white-space: nowrap;
}

.elementor-widget-woocommerce-purchase-summary .woocommerce p {
    margin-bottom: 0 !important;
}

.amount {
    opacity: inherit !important;
}

/* --------------------------------------------------------------------------
   Butiksavisering
   -------------------------------------------------------------------------- */

.woocommerce-store-notice {
    font-size: larger;
    letter-spacing: 1.2px !important;
}

/* --------------------------------------------------------------------------
   Utskrift
   -------------------------------------------------------------------------- */

@media print {
    .wc-proceed-to-checkout { display: none; }
    .site-footer { display: none; }
    #top-bar-wrap { display: none; }
    #site-header { display: none; }
    .elementor-widget-share-buttons { display: none; }
    .elementor-widget-gallery { display: none; }
    .elementor-widget-theme-post-featured-image { max-width: 400px; }
    .elementor-widget-woocommerce-product-short-description { display: none; }
    .elementor-widget-woocommerce-product-add-to-cart { display: none; }
    .elementor-widget-woocommerce-product-related { display: none; }
    .woocommerce-cart-form__contents td.product-remove { display: none; }
    .woocommerce-cart-form__contents th.product-remove { display: none; }
    .woocommerce-cart table.cart img { max-width: 80px !important; }
    .grecaptcha-badge { display: none !important; }

    a[href]:after { content: none !important; }

    /* Kompaktera tabellen för A4 liggande. */
    .woocommerce table.cart th,
    .woocommerce table.cart td {
        padding: 4px 6px !important;
        font-size: 11px !important;
    }

    /* Pris-kolumner: ingen radbrytning och fast bredd. */
    .woocommerce table.cart th.product-price,
    .woocommerce table.cart td.product-price,
    .woocommerce table.cart th.product-subtotal,
    .woocommerce table.cart td.product-subtotal {
        min-width: 0 !important;
        width: 160px !important;
    }

    .woocommerce .cart .product-price span,
    .woocommerce .cart .product-subtotal span {
        white-space: nowrap;
    }

    /* Produktnamn-kolumn kan ta resterande utrymme. */
    .woocommerce table.cart td.product-name {
        width: auto !important;
    }

    @page {
        size: landscape;
        margin: 20mm 10mm;
    }

    body { width: 100%; }
}
