/*
Theme Name: GreenMart Child
Theme URI: https://demo.thembay.com/greenmart/
Author: Thembay
Description: This is a child theme for GreenMart
Version: 1.0
Author URI: https://thembay.com/
Template: greenmart
Text Domain: greenmart-child
*/

/*  [ Add your custom css below ]
- - - - - - - - - - - - - - - - - - - - */


#billing_company,#billing_address_2,
#billing_postcode,
#billing_email_field
{display:none!important;}
#billing_country_field,#billing_address_3_field,#billing_company_field,#billing_postcode_field,#billing_last_name_field
{display:none!important;}
#billing_address_1{padding: 10px 10px !important; height: 100px!important}
form.checkout #order_comments{min-height: 70px!important; height: 85px!important}
.woocommerce-account .woocommerce-Address.col-1 {
    max-width: 100% !important;
    width: 100% !important;
}
.entry-single .author-info, .single-post .entry-meta-list{display:none;}

.woofc-area.woofc-style-01 .woofc-area-mid .woofc-item .woofc-item-inner .woofc-item-qty .woofc-item-qty-inner input{
    background-color: white;
}
/*none */
.cat-item-16,
.cat-item-uncategorized {
    display: none !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle,.woocommerce-checkout form.checkout .woocommerce-remove-coupon,
.singular-shop .product_meta,
.single_add_to_cart_button.added+a
{ display: none; }


@media (max-width: 767px) {
    .form-cart-popup .information form.cart.open .single_variation_wrap {
        margin-top: 5px;
    }
    .mobile-attribute-list {display:none}
.single_add_to_cart_button.added+a{display:none;}
}

.stock.in-stock {
    color: #b73525 !important;
}

.wooac-popup .wooac-action a,
.mobile-cart.cart-icon .cart-mobile
{background-color:#b73525;
    color:white;
}
/*none !important*/

.tbay-breadscrumb,
li.woocommerce-MyAccount-navigation-link--view-wepos {
    display: none !important;
}
.single_add_to_cart_button.loading::after,
.single_add_to_cart_button.loading::before {
    display: none !important;
    content: none !important;
}
/*none !important*/
.woocommerce-cart .woocommerce-shipping-totals.shipping,
.singular-shop h1.product_title, .singular-shop h1.product_title+.tbay-subtitle {
display:none !important;
}

.tbay-element-products .product-block {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tbay-element-products .product-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tbay-element-products .caption {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tbay-element-products .meta {
    flex: 1;
}

/* title jadi max 3 baris */
.tbay-element-products h3.name {
    line-height: 1.5em;
    height: 4.5em;
    overflow: hidden;
}

/* tombol selalu bawah */
.tbay-element-products .groups-button {
    margin-top: auto;
}

.tbay-element-products h3.name a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.woocommerce div.product .images a.woocommerce-product-gallery__trigger,
body div.product .images a.woocommerce-product-gallery__trigger {

    background-color: #fff !important;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 3 3 3 3 9'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='3 15 3 21 9 21'/%3E%3Cpolyline points='21 15 21 21 15 21'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px !important;

    text-indent: -9999px;
    overflow: hidden;
}

/* MATIKAN semua icon bawaan */
.woocommerce div.product .images a.woocommerce-product-gallery__trigger::before,
.woocommerce div.product .images a.woocommerce-product-gallery__trigger::after,
body div.product .images a.woocommerce-product-gallery__trigger::before,
body div.product .images a.woocommerce-product-gallery__trigger::after {
    content: none !important;
    display: none !important;
    background: none !important;
}



.woocommerce table.shop_table.woocommerce-checkout-review-order-table,
.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
    border: solid 1px;
    background-color: #FFFBF3;
    border-radius: 10px !important;
    padding: 3px !important;
}



/*warna */

.woocommerce-checkout form.checkout .order-payment #payment ul.payment_methods li{border: solid 1px;
    background-color: #FFFBF3;}
    
    :where(.woocommerce) .select2-container.select2-container--open .select2-dropdown--below,
.woocommerce form .form-row.woocommerce-validated .select2-container:not(.select2-container--open) .select2-selection {
    border: 1px solid rgba(145, 158, 171, 0.24) !important;}

.woocommerce-shipping-methods.aw-enhanced > li:not(.aw-shipping-header-row):not(.aw-shipping-footer-row):not(.aw-courier-group):not(.aw-speed-group):not(.aw-price-group),


.aw-courier-group-header,.aw-courier-group-header.has-selected,.aw-courier-services,
:where(.woocommerce) .select2-container .select2-dropdown, :where(.woocommerce) .select2-container .select2-selection,
.woocommerce-order tfoot,
    .woocommerce-order-received .woocommerce-order .woocommerce-thankyou-order-details,
.select2-results__option,
.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container--default .select2-selection--single .select2-selection__rendered,
.woocommerce-cart .woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-cart .woocommerce .cart-collaterals .cart_totals .shop_table{background-color: #FFFBF3;}


.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}
.select2-selection__rendered {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select2-selection__arrow b {
    display: none !important;
}

.select2-selection__arrow {
    position: relative;
    
}

.woocommerce-account #main-content .woocommerce .woocommerce-MyAccount-content input, .woocommerce-account #main-content .woocommerce .woocommerce-MyAccount-content .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;}
.select2-container--default .select2-selection--single .select2-selection__arrow{top: 40%;}

.select2-selection__arrow::after {
    content: "⌵";
    font-size: 18px;
    font-weight: 400;
    position: absolute;
    top: 40%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.custom-shipping {
    color: transparent;
}

.custom-shipping * {
    color: initial;
}

.woocommerce #payment #place_order, .woocommerce-page #payment #place_order{width:100%;}

.aw-shipping-label-header{
    display:none;
}
    
/* Normal */
form.checkout .woocommerce-shipping-methods input[type="radio"] + label:before {
    transform: translateY(-4px) !important;
}

/* Checked */
form.checkout .woocommerce-shipping-methods input[type="radio"]:checked + label:before {
    transform: translateY(+0px) !important;
}

.woocommerce-shipping-methods.aw-enhanced > li:not(.aw-shipping-header-row):not(.aw-shipping-footer-row):not(.aw-courier-group):not(.aw-speed-group):not(.aw-price-group) {
    background-color: #fffbf3;
    padding: 10px 2px;
    border-top: 1px solid #e9ecef ;
}
.woocommerce .woocommerce-info, .woocommerce .woocommerce-message, .woocommerce .woocommerce-error,
.aw-courier-services,
.aw-courier-group-header.active,
.aw-courier-group-header.has-selected,
.woocommerce ul#shipping_method li
{
    border: 1px solid #e1e8ed;
    background-color: #FFFBF3;
   
    
}
.woocommerce a.added_to_cart,
.woocommerce-additional-fields h3 {
    display: none;
}
.mb-4, .my-4{margin-top:-25px;}

/* =============================================
   WooCommerce My Account — Mobile Bottom Nav
   ============================================= */

@media (max-width: 767px) {

  .woocommerce-MyAccount-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #f5f0e8;
    border-top: 1px solid #ddd8cc;
    padding: 0;
    margin: 0;
    margin-bottom: 0px !important;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Sembunyikan Dashboard */
  .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard {
    display: none !important;
  }

  .woocommerce-MyAccount-navigation ul li {
    flex: 1;
    display: flex;
    align-items: stretch;
    text-align: center;
    position: relative;
  }

  .woocommerce-MyAccount-navigation ul li a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px 12px;
    font-size: 11px;
    color: #7a7060;
    text-decoration: none;
    line-height: 1.2;
    transition: color 0.15s;
    background: none;
  }

  /* Active state */
  .woocommerce-MyAccount-navigation ul li.is-active a,
  .woocommerce-MyAccount-navigation ul li.current-menu-item a {
    color: #fff;
    background: #b33a2a;
  }

  .woocommerce-MyAccount-navigation ul li.is-active::before,
  .woocommerce-MyAccount-navigation ul li.current-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #b33a2a;
    border-radius: 0 0 2px 2px;
  }

  /* Padding konten agar tidak tertutup nav */
  .woocommerce-MyAccount-content {
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }


}

/* WooCommerce - Address Card + Button Below
   Appearance > Customize > Additional CSS */

/* Grid container */
.woocommerce-Addresses,
.woocommerce .col2-set.addresses {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 1rem !important;
    overflow: hidden !important;
}

/* Card box */
.woocommerce-Address,
.woocommerce .col2-set.addresses .col-1,
.woocommerce .col2-set.addresses .col-2 {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 1.25rem 1.25rem 4rem !important;
    position: relative !important;
    float: none !important;
    width: auto !important;
    box-sizing: border-box !important;
}

/* Sembunyikan edit dari area judul */
.woocommerce-Address-title,
.woocommerce .col2-set.addresses h3 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

/* Edit button — pindah ke bawah card */
.woocommerce-Address-title a,
.woocommerce .col2-set.addresses .title a {
    position: absolute !important;
    bottom: 1.25rem !important;
    left: 1.25rem !important;
    display: inline-block !important;
    padding: 7px 18px !important;
    background: #b73525 !important;
    color: #fff !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: background 0.15s !important;
}



.woocommerce-Address-title a:hover,
.woocommerce .col2-set.addresses .title a:hover {
    background: #b73525 !important;
    color: #fff !important;
}

@media (max-width: 600px) {
    .woocommerce-Addresses,
    .woocommerce .col2-set.addresses {
        grid-template-columns: 1fr !important;
    }
}


/* =====================================================
   Override semua background putih -> #FFFBF3
   Paste ke: Appearance > Customize > Additional CSS
   ===================================================== */

/* === GLOBAL === */
html, body,
#page,
body.tbay-body-default.post-type-archive-product .main-wrapper,
body.tbay-body-default.single-product .main-wrapper,
body.tbay-body-default.woocommerce-cart #tbay-main-content,
body.tax-dc_vendor_shop,
.u-columns,
.related-posts,
.track_order {
    background-color: #FFFBF3 !important;
}

/* === HEADER === */
#tbay-header,
#tbay-header .header-main,
#tbay-header .menu_fixed,
#sticky-menu-bar,
#tb-limited-notification {
    background-color: #FFFBF3 !important;
}

/* === MOBILE TOPBAR & FOOTER === */
.topbar-device-mobile,
.topbar-device-mobile .search-device .tbay-search-form .input-group,
.footer-device-mobile {
    background-color: #FFFBF3 !important;
}

/* === MOBILE MENU (mm-menu) === */
.mm-menu,
.mm-menu_theme-white,
.mm-menu .mm-navbars_top > .mm-navbar:not(.mm-navbar_tabs) .mm-searchfield input {
    background-color: #FFFBF3 !important;
}

/* === OFFCANVAS / CANVAS MENU === */
.element-menu-canvas .menu-canvas-content,
.element-menu-canvas .menu-canvas-content .toggle-canvas-close,
.tbay-offcanvas-main,
.tbay-offcanvas-main .navbar-nav .dropdown-menu,
.menu-canvas-content .tbay-vertical .navbar-nav .dropdown-menu,
.menu-canvas-content .tbay-vertical .navbar-nav .sub-menu,
#tbay-search-form-canvas .sidebar-canvas-search .sidebar-content,
#tbay-search-form-canvas .sidebar-canvas-search .sidebar-content .autocomplete-suggestions {
    background-color: #FFFBF3 !important;
}

/* === DROPDOWN MENU === */
.dropdown-menu,
.tbay-login .account-menu,
.tbay-custom-language .sub-menu,
.tbay-vertical > .navbar-nav .dropdown-menu,
.tbay-vertical > .navbar-nav .sub-menu,
.elementor-widget-tbay-nav-menu .tbay-horizontal .navbar-nav .dropdown-menu,
.category-inside-content,
.widget_icl_lang_sel_widget .wpml-ls-legacy-dropdown .wpml-ls-sub-menu,
.header-default .tbay-topcart .dropdown-content {
    background-color: #FFFBF3 !important;
}

/* === SEARCH === */
.tbay-search-form .form-group .input-group,
.tbay-search-form .select-category,
.tbay-search-form.tbay-search-min form,
.greenmart-search-results .autocomplete-suggestions,
.search-device .tbay-search-result .autocomplete-suggestions {
    background-color: #FFFBF3 !important;
}

/* === BREADCRUMB & ARCHIVE TITLE === */
.tbay-breadcrumb,
.tbay-breadscrumb .product-nav-icon .psnav {
    background-color: #FFFBF3 !important;
}

/* === PRODUCT BLOCK & SHOP === */
.product-block,
.product-block .caption,
.product-block .group-actions-product,
.product-block .yith-compare a,
.product-block ul.show-brand a,
.product-block.grid .onsale > span.featured,
.product-block.grid .sold-dokan,
.list-categories-product .cat-content,
.list-categories-product .item-cat,
.custom-img-cat-style-1 .custom-image-list-categories.owl-carousel .item-cat,
.custom-img-cat-style-1 .custom-image-list-categories.row > .item,
.custom-img-cat-style-2 .item-image .item-cat .content,
.custom-image-list-tags,
.custom-image-list-tags .item-tag {
    background-color: #FFFBF3 !important;
}

/* === SINGLE PRODUCT === */
#sidebar-shop + .singular-shop,
.singular-shop > .product > div,
.singular-shop > .product > div.tabs-fulltext .item-panel,
.singular-shop .image-mains .featured,
.form-cart-popup .information form.cart,
.form-cart-popup .information form.cart .group_table tr p.stock,
.form-cart-popup .information form.cart .mobile-infor-wrapper .infor-body p.stock,
.form-cart-popup .information #shop-now .tbay-wishlist {
    background-color: #FFFBF3 !important;
}

/* === WOOCOMMERCE CART & CHECKOUT === */
.woocommerce .cart-popup .dropdown-menu p.buttons a.view-cart,
.cart-popup .dropdown-menu p.buttons a.view-cart,
.woocommerce .woocommerce-MyAccount-navigation,
.woocommerce .woocommerce-MyAccount-content,
.woocommerce table.shop_table_responsive.cart tr.cart_item,
.woocommerce-page table.shop_table_responsive.cart tr.cart_item,
.woocommerce table.woocommerce-checkout-review-order-table tr.order-total,
.woocommerce table.shop_table_responsive tr.order-total,
.woocommerce-page table.woocommerce-checkout-review-order-table tr.order-total,
.woocommerce-page table.shop_table_responsive tr.order-total,
.woocommerce table.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce table.woocommerce-checkout-review-order-table tr.order-total td,
.woocommerce table.shop_table_responsive tr.order-total th,
.woocommerce table.shop_table_responsive tr.order-total td,
.woocommerce-page .woocommerce-checkout-review-order .quantity,
.woocommerce table.shop_table.cart tbody td.product-quantity .quantity,
#tbay-cart-modal .modal-content,
#tbay-cart-modal .popup-cart .main-content .button.view-cart {
    background-color: #FFFBF3 !important;
}

/* === QUANTITY & INPUT === */
.woocommerce .quantity input.qty,
.woocommerce-page .quantity input.qty,
.woocommerce .quantity button,
.woocommerce-page .quantity button,
.quantity .box,
.form-control,
input#ywqa_ask_question_text,
.input-default,
.post-password-form input[type=password],
.woocommerce .input-text,
.wpcf7-form input,
.wpcf7-form textarea,
#review_form_wrapper #respond #comment,
#review_form_wrapper #respond input[type="text"],
#review_form_wrapper #respond input[type="email"] {
    background-color: #FFFBF3 !important;
}

/* === TABS MOBILE === */
.woocommerce-tabs-mobile .wc-tab-mobile {
    background-color: #FFFBF3 !important;
}

/* === SIDEBAR MOBILE === */
@media (max-width: 767px) {
    #tbay-main-content .sidebar-mobile-wrapper,
    #tbay-main-content .wcfmmp-store-page-wrap .left_sidebar,
    #tbay-main-content .dokan-store-sidebar {
        background-color: #FFFBF3 !important;
    }
}

/* === MISC === */
.tbay-to-top a,
.testi-style-image .testimonials,
.feature-style-2 .inner,
.feature-style-3 .inner,
.product-flash-sales,
.product-count-down,
.product-recently-viewed-header .content-view,
.recent-viewed-products .content-view,
#main-content .product-recently-viewed-main .content-empty,
.slick-initialized .slick-slide,
.bg-sm-white,
table .table,
.table .table,
#product-size-guide .modal-dialog,
.social-log span {
    background-color: #FFFBF3 !important;
}

/* Warna harga */
.price,
.woocommerce-Price-amount,
.woocommerce-Price-amount.amount,
.price ins .woocommerce-Price-amount,
.price > .woocommerce-Price-amount,
span.price,
.product-block .price,
.entry-summary .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.cart-popup .mini-cart-subtotal .woocommerce-Price-amount,
.woocommerce-mini-cart__total .woocommerce-Price-amount {
    color: #666666 !important;
}

/* Harga coret (harga lama) tetap lebih terang */
.price del,
.price del .woocommerce-Price-amount {
    color: #BBBBBB !important;
}
.tbay-filter .SumoSelect>.CaptionCont,
.woo-variation-swatches .wvs-style-squared.variable-items-wrapper .variable-item:not(.radio-variable-item).button-variable-item
{background-color:#FFFBF3;}


.woofc-area.woofc-rounded-yes .woofc-inner .woofc-area-mid .woofc-item .woofc-item-inner 
{background-color:#FFFBF3;
border:solid 1px;}

.woofc-area.woofc-style-01 .woofc-area-bot .woofc-continue span,
.woofc-area.woofc-style-01 .woofc-area-bot .woofc-data, .woofc-area.woofc-style-01 .woofc-area-bot .woofc-total{color:#9B652F;}
.woofc-area.woofc-style-01 .woofc-area-top,
.woofc-area.woofc-rounded-yes .woofc-inner .woofc-area-bot .woofc-action .woofc-action-inner > div a {

	background-color: #9B652F;}

/* Dots bounce — WooCommerce Classic Checkout */
.blockUI.blockOverlay::before { display: none !important; }

/* Ganti dengan dots bounce */
.blockUI.blockOverlay::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b73525;
  box-shadow: 20px 0 0 #b73525, -20px 0 0 #b73525;
  animation: wc-dots 0.8s infinite alternate;
}

@keyframes wc-dots {
  0%   { box-shadow: 20px 0 0 #b73525, -20px 0 0 #b73525; }
  33%  { box-shadow: 20px -8px 0 #b73525, -20px 0 0 #b73525; }
  66%  { box-shadow: 20px 0 0 #b73525, -20px -8px 0 #b73525; }
  100% { box-shadow: 20px 8px 0 #b73525, -20px 0 0 #b73525; }
}

/* Warna & opacity overlay saat loading checkout */
.blockUI.blockOverlay {
  background-color: rgba(183, 53, 37, 0.08) !important; /* putih semi-transparan */
}

div.nsl-container-block.nsl-container .nsl-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100%;
}

div.nsl-container .nsl-button-svg-container {
    width: auto !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    flex: 0 0 auto !important;
}

div.nsl-container .nsl-button-label-container {
    flex: 0 1 auto !important;
    width: auto !important;
}