/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */




/* Testo "Spedizione" pagine Carrello e Pagamento */
/* Mobile (default) */
.ct-shipping-heading {
    font-size: 24px !important;
    font-weight: 700 !important;
}

/* Tablet e dispositivi più grandi */
@media (min-width: 768px) {
.ct-shipping-heading {
    font-size: 24px !important;
    }
}


/* Titoli sezioni descrizione prodotto */
@media only screen and (max-width: 767px) {
  #tab-description h2.stk-block-heading__text {
    font-size: 26px !important;
    }
}

/*Dimensione font "Prezzo" e pulsante "Aggiungi al carrello" */ 
/* Mobile (default) */
.product-footer-wrapper .product-price-wrapper .price {
    font-size: 16px !important;
    width: 100% !important;
}

.product-footer-wrapper .product-cart-wrapper .button {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Tablet e dispositivi più grandi */
@media (min-width: 768px) {
.product-footer-wrapper .product-price-wrapper .price {
    font-size: 18px !important;
}

.product-footer-wrapper .product-cart-wrapper .button {
    font-size: 16px !important;
    }
}


/* Gestisce l'icona "+" del pulsante Aggiungi al carrello nell'archivio prodotti */
/* Rendi la scheda prodotto pronta per contenere il pulsante in fondo */
.woocommerce ul.products li.product {
  position: relative !important;
  padding-bottom: 60px !important;
}

/* Sfondo fisso in basso per il pulsante */
.product-cart-wrapper {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: #d8b36f !important;
  z-index: 2 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Pulsante: piena larghezza e centrato */
.woocommerce ul.products li.product .add_to_cart_button {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px !important;
}

/* "+" del pulsante: desktop e tablet */
.woocommerce ul.products li.product .add_to_cart_button .plus-icon {
  font-weight: bold !important;
  font-size: 18px !important;
  margin-right: 6px !important;
  display: inline-block !important;
  line-height: 1 !important;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .woocommerce ul.products li.product .add_to_cart_button .plus-icon {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-right: 5px !important;
  }
}

/* Nasconde la + durante il caricamento AJAX */
.woocommerce ul.products li.product .add_to_cart_button.loading .plus-icon {
  display: none !important;
}


.product-cart-wrapper a.added_to_cart.wc-forward {
    display:none;
}


/* Rimuove l’icona campanella */
.woocommerce-info::before {
    display: none !important;
}

/* Elimina lo stile "notice" */
.woocommerce-info {
    background: transparent !important;
    border: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* Contenitore principale centrato, largo 50% */
.fs-free-shipping-notice-and-button-wrapper {
    background: #2f1a0b;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 1.5em 0 0 0;
}

/* Testo e barra */
.fs-free-shipping-notice-contents {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
}

/* Testo "ti mancano..." */
.fs-free-shipping-notice-text {
    font-size: 14px;
    color: #fff;
    margin: 0;
}

/* Barra + valori */
.fs-free-shipping-notice-progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Nasconde valore iniziale */
.fs-free-shipping-notice-opening-value {
    display: none !important;
}

/* Valore finale */
.fs-free-shipping-notice-closing-value {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
}

/* Barra di progresso */
.fs-free-shipping-notice-progress-bar {
    background: #F2E6D0;
    height: 6px !important;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    flex-grow: 1 !important;
}

.fs-free-shipping-notice-progress-bar > span {
    display: block;
    height: 6px !important;
    background-color: #cea04a !important;
    transition: width 0.3s ease;
}

/* Bottone "continua acquisti" più piccolo */
.fs-free-shipping-notice-continue-shopping-button-wrapper {
    flex-shrink: 0;
}

.fs-free-shipping-notice-continue-shopping-button-wrapper .button {
    font-size: 13px;
    padding: 6px 10px;
    background-color: #d8b36f;
    border: none;
    border-radius: 4px;
    white-space: nowrap;
    text-align: center;
}

/* Rimuove il pulsante per mobile */
@media (max-width: 768px) {
  .fs-free-shipping-notice-continue-shopping-button-wrapper {
    display: none !important;
  }
}


/* Modifica grandezza foto e carosello prodotto singolo */
@media (max-width: 768px) {
  .woocommerce-product-gallery .flexy-item {
    display: flex;
    justify-content: center;  /* centro orizzontale */
    align-items: center;      /* centro verticale */
  }

  .woocommerce-product-gallery .flexy-item img {
    max-width: 80%;
    height: auto;
    margin: 0 auto; /* sicurezza extra */
    display: block;
  }

  .woocommerce-product-gallery .flexy-pills ol {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 10px 0 0 0;
    list-style: none;
  }

  .woocommerce-product-gallery .flexy-pills li {
    margin: 0 5px;
  }
}


/* ------------------------- PAGINA "CARRELLO" -------------------------------*/


.ct-cart-content {
  --mini-cart-divider-color: transparent !important;
}

/* Titolo "Totale" nella sezione laterale della pagina Carrello */ 
/* Mobile default */
.cart_totals h2 {
    font-size: 28px !important; 
}

/* Tablet e dispositivi più grandi */
@media (min-width: 768px) {
    .cart_totals h2 {
        font-size: 30px !important;
  }
}


/* Testi Prodotto, Quantità e Subtotale nella sezione a sinistra della pagina Carrello */
/* Mobile (default) */
.shop_table.cart.woocommerce-cart-form__contents th.product-name,
.shop_table.cart.woocommerce-cart-form__contents th.product-quantity,
.shop_table.cart.woocommerce-cart-form__contents th.product-subtotal {
    font-size: 20px !important;
    padding-bottom: 0.5em !important;
}

/* Tablet e dispositivi più grandi */
@media (min-width: 768px) {
    .shop_table.cart.woocommerce-cart-form__contents th.product-name,
    .shop_table.cart.woocommerce-cart-form__contents th.product-quantity,
    .shop_table.cart.woocommerce-cart-form__contents th.product-subtotal {
        font-size: 18px !important;
        padding-bottom: 0.5em !important;
    }
  }


/* Titolo prodotto pagina Carrello */
@media screen and (max-width: 768px) {
  .woocommerce-cart .product-name a {
    font-size: 16px !important;
  }
}


/* Testo e importo "Totale" nella sezione laterale della pagina Carrello */
/* Mobile (default) */
tr.order-total th,
tr.order-total td {
    font-size: 18px !important;
}


/* Testo pulsante "Procedi con l'ordine" */
.wc-proceed-to-checkout,
.wc-proceed-to-checkout a.checkout-button {
    font-size: 16px;
    font-weight: 600;
}


/* Regola la visibilità del pulsante per applicare il Coupon, è collegato al functions.php */
/* Transizione per l'opacità, anche se viene gestita da display */
.coupon button[name="apply_coupon"] {
    transition: opacity 0.3s ease;
}

/* Bottone visibile */
.visible-coupon-button {
    display: inline-block !important;
    opacity: 1;
}

/* Bottone nascosto e rimosso dal flusso */
.hidden-coupon-button {
    display: none !important;
    opacity: 0;
}



/* ------------------------ PAGINA "PAGAMENTO" -------------------------------*/


/* Testo Titoli nella pagina Pagamento */
/* Mobile (fino a 767px) */
.ct-woocommerce-checkout h3 {
    font-size: 24px !important;
}

/* Tablet e superiori (≥768px) */
@media (min-width: 768px) {
    .ct-woocommerce-checkout h3 {
        font-size: 30px !important;
  }
}


/* Testo Titolo "Il tuo ordine" nella pagina Pagamento */
/* Testo Titoli nella pagina Pagamento */
#order_review_heading {
    font-size: 32px !important;
    padding-top: 10px !important;
}

/* Tablet e superiori (≥768px) */
@media (min-width: 768px) {
    #order_review_heading {
        font-size: 36px !important;
    }
}


/* Testi Prodotto e Subtotale nella sezione a destra della pagina Pagamento */
.shop_table.woocommerce-checkout-review-order-table th.product-name,
.shop_table.woocommerce-checkout-review-order-table th.product-total {
    font-size: 18px !important;
    padding-bottom: 0.5em !important;
}


/* Testo pulsante "Effettua ordine" */
#place_order.button.alt {
  font-size: 16px !important;
  font-weight: 600 !important;
}


/* Trasforma il link "Accedi" nella pagina di Pagamento in un pulsante */
.woocommerce-form-login-toggle .woocommerce-info .showlogin {
    margin-inline-start: 1em !important;
    padding: 0.4em 1em;
    background-color: #d8b36f; /* colore di sfondo */
    color: #0b0603 !important;    /* colore del testo */
    border-radius: 2px;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}


.woocommerce-form-login-toggle .woocommerce-info .showlogin:hover {
    background-color: #cea04a; /* colore sfondo al passaggio del mouse */
    color: #0b0603 !important;
    text-decoration: none;
}


/* Aggiunge spaziatura per allineare testo e pulsante su mobile */
@media (max-width: 768px) {
  .woocommerce-form-login-toggle .woocommerce-info .showlogin {
    margin-bottom: 10px !important;
  }
}

/* Gestisce la posizione del pulsante */
.woocommerce-form-login-toggle .woocommerce-info {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    white-space: nowrap;
}


/* Rende il pulsante Login uguale al link "Accedi" */
.woocommerce-form-login__submit {
    background-color: #d8b36f !important;
    border: none !important;
    border-radius: 2px !important;
    padding: 0.4em 1.1em !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
    min-height: auto !important;
    margin-top: 10px !important;
    
}

/* Hover */
.woocommerce-form-login__submit:hover {
    background-color: #cea04a !important;
    color: #ffffff !important;
}



/* Nasconde "OR" sotto i metodi di pagamento Apple/Google pay */
#wcpay-express-checkout-button-separator {
    display: none !important;
}

/*Gestisce la fisarmonica e la freccia, con la loro aniamzione */
/* Wrapper riga con titolo + freccia */
.coderockz-toggle-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 20px 0 !important;
    cursor: pointer !important;
}

/* Freccia SVG */
.coderockz-toggle-arrow {
    width: 40px !important;
    height: 40px !important;
    margin-left: 12px !important;
    transition: transform 0.3s ease !important;
    fill: #d8b36f !important;
    transform: rotate(180deg) !important; /* Default: chiuso */
}

/* Freccia ruotata quando aperto */
.coderockz-arrow-rotated {
    transform: rotate(0deg) !important;
}

/* Sezioni visibili/nascoste */
.coderockz-toggle-section {
    transition: max-height 1s ease-in-out, opacity 0.8s ease-in-out !important;
    overflow: hidden !important;
    max-height: 1000px !important;
    opacity: 1 !important;
}

.coderockz-collapsed {
    max-height: 0 !important;
    padding: 0 !important;
    margin-top: 20px !important;
    margin-bottom: -10px !important;
    opacity: 0 !important;
}


/* Solo quando la fisarmonica è aperta, aggiunge spazio */
.coderockz-toggle-section:not(.coderockz-collapsed) + #coderockz_woo_delivery_pickup_time_section h3 {
  margin-bottom: 10px !important;
  padding-top: 14px !important;
}


/* Gestisce i bordi della sezione Carte */
/* Stile base per mobile: solo bordo superiore e inferiore */
#payment ul.payment_methods > li.wc_payment_method {
  border-top: 1px solid rgba(207, 160, 74, 0.26) !important;
  border-bottom: 1px solid rgba(207, 160, 74, 0.26) !important;
  border-left: none !important;
  border-right: none !important;
}

/* Da tablet in su (≥768px): tutti e 4 i bordi */
@media (min-width: 768px) {
  #payment ul.payment_methods > li.wc_payment_method {
    border: 1px solid rgba(207, 160, 74, 0.26) !important;
  }
}



