/* ----------------------------------------------------------
   LAYOUT GENERALE
---------------------------------------------------------- */


#brx-content.wordpress {
    padding: 0 4rem;
}
.wp-site-blocks {
    padding: 13rem 2.6rem;
}
/* body.woocommerce-page {
    background: #ffffff;
} */
body.woocommerce-page h1 {
    text-align: center;
    margin-bottom:34px;
}
.wc-block-components-sidebar.wc-block-cart__sidebar.wp-block-woocommerce-cart-totals-block, .wc-block-checkout__sidebar.is-sticky {
    height: fit-content;
    position: sticky;
    top: 21vh;
}
a.wc-block-components-product-name{
    font-weight: 600;
}
.wc-block-cart__main .wc-block-cart-items td{
    border-top: 1px solid #fff0ca;
}
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__header, table.wc-block-cart-items .wc-block-cart-items__header, .wc-block-cart .wc-block-cart__totals-title {
    font-size: 16px!important;
    text-transform: uppercase!important;
}
section#ty-tab-details {
    gap: 20px;
    flex-direction: row;
}
/* Contenitore Account */
/* .woocommerce-account .woocommerce {
    padding: 2.6rem;
} */
td.wc-block-cart-item__image img {
    border-radius: 14px;
}
.page-id-5 h1{
    display:none;
}
/* Box login/register/reset */
form.woocommerce-form-login,
form.woocommerce-form-register,
form.woocommerce-ResetPassword.lost_reset_password {
    border-radius: 25px;
    padding: 5rem;
    max-width: 450px;
    min-height: 410px;
    margin: auto;
    margin-top:30px;
}
#customer_login h2{
    text-align: center!important;
    font-size:var(--text-l);
}
div#customer_login {
    padding-top:3rem;
    padding-bottom:3rem;
    width: 100%;
}
form.woocommerce-form-login, form.woocommerce-form-register, form.woocommerce-ResetPassword.lost_reset_password {
    width:100%;
    max-width: 600px;
}
.woocommerce-account form .show-password-input {
    right: 20px !important;
}
button.show-password-input {
    background: transparent!important;
}
/* Notifiche Woo */
.woocommerce-info {
    border-radius: 50px;
}
/* ----------------------------------------------------------
   NAVIGAZIONE MY ACCOUNT
---------------------------------------------------------- */
nav.woocommerce-MyAccount-navigation {
    border-radius: 25px;
    padding: 2rem;
}
/* ----------------------------------------------------------
   INPUT & FORM STYLE
---------------------------------------------------------- */
/* Base per input, select, textarea */
input:not([type="radio"]):not([type="submit"]):not([type="search"]):not([type="number"]):not([type="checkbox"]),
select,
textarea,
.select2-container--default .select2-selection--single {
    width: 100% !important;
    border: 1px solid currentcolor;
    border-radius: 25px !important;
    padding: 0 20px !important;
    font-size: inherit !important;
    line-height: 40px !important;
    color: currentcolor !important;
    background: transparent !important;
    box-shadow: none;
    outline: none;
    transition: var(--bricks-transition);
}
/* Textarea Blocks */
textarea.wc-block-components-textarea {
    min-height: 200px;
    padding: 24px !important;
}
/* Select container Woo Blocks */
.wc-blocks-components-select .wc-blocks-components-select__container {
    width: 100%;
    height: 3.125em;
    border-radius: 30px;
    background: transparent;
    box-sizing: border-box;
    position: relative;
}
/* Password toggle button */
button.show-password-input {
    background: #fff;
}
/* Checkbox Woo Blocks */
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox] {
    padding: 0 !important;
}
th.product-name {
    text-align: left;
}
/* ----------------------------------------------------------
   LABELS – floating label nel Checkout Blocks
---------------------------------------------------------- */

.woocommerce-checkout .woocommerce-shipping-fields label:not(.woocommerce-form__label-for-checkbox) :not(.required_field),
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:-webkit-autofill + label,
.wc-blocks-components-text-input input:-webkit-autofill + label{
    top: 0 !important;
    transform: translateY(18px) translateX(-8px) scale(.75) !important;
    padding: 1px 8px;
    background: #efefef;
    width: fit-content;
    position: relative;
    z-index: 1;
}
.select2-container--default .select2-selection--single{
    border-color:#212121;
}
.select2-dropdown {
    background-color: #f2f2f2;
}
/* Fix checkbox */
input#checkbox-control-0 {
    width: fit-content !important;
}
/* ----------------------------------------------------------
   BUTTONS
---------------------------------------------------------- */
button.wc-block-components-button.wc-element-button, button.wc-block-components-checkout-place-order-button, a.wc-block-components-button.contained {
    border-radius: 30px !important;
    font-weight: 400;
    background: #195125;
    color: white;
}
/* Badge prodotto */
.wc-block-components-product-badge {
    border-radius: 30px !important;
    background: #195125;
    color: #fff;
    font-weight: 300 !important;
}
.woocommerce-info.va-delivery-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.woocommerce-info.va-delivery-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff0ca;
    color: #195125 !important;
    padding: 4rem 2.6rem;
}
.alignwide {
    margin-left: 0%;
    padding-bottom: 9rem;
}
.wp-block-woocommerce-checkout-order-summary-block {
    border-radius: 20px;
}
form.cart .quantity+button, form.woocommerce-cart-form .quantity+button {
    margin-top: 0px!important;
}
form.cart .quantity input, form.woocommerce-cart-form .quantity input, form.cart .quantity .plus, form.woocommerce-cart-form .quantity .plus, form.cart .quantity .minus, form.woocommerce-cart-form .quantity .minus{
    order:0;
    border:0px!important;
}
.cart .quantity {
    border: 1px solid #212121;
    border-radius: 30px!important;
}
form.cart .quantity .minus, form.woocommerce-cart-form .quantity .minus {
    border-style: solid;
    border-width: 1px;
    order: 1;
}
form.cart .quantity .plus, form.woocommerce-cart-form .quantity .plus {
    border-style: solid;
    border-width: 1px;
    order: 2;
}
/* .wc-tabs{
    flex-wrap: nowrap;
    overflow: scroll;
} */
.newsletter input{
    background: white !important;
}


.select2-container .select2-selection--single{
    height:fit-content;
}

.select2-selection__rendered {
    line-height: 40px!important;
}






  ul.tabs.wc-tabs {
  width: 100%;
  gap:1rem;
  flex-wrap:nowrap;
}
  .wc-tabs li {
    padding-top: 10px;
    padding-right: 5px;
    padding-bottom: 10px;
    padding-left: 0;
    width: 50%;
}
  .wc-tabs li a  {
  font-weight:bold;
  font-size:var(--text-m);
  width:100%;
  text-align:center;
  position: relative;
    overflow: hidden;
    display: inline-block;
    padding: 36px 25px;
    margin: 4px;
    border-radius: 10px !important;
    z-index: 2;
    transition: all 0.4s !important;
    color:#ffffff; 
    background: #212121;
  }
    .wc-tabs li a:hover {
    color: #fff !important; 
    background: var(--px-color-2) !important; 
  }

    .wc-tabs li.active a{
    background: var(--px-color-2) !important; 
    color: #fff !important;
  }
    .star-rating span::before{
   color:var(--px-color-1); 
  }
  
.comment-respond .button{
    width: fit-content;
    color:var(--px-color-2); 
    padding: 15px 30px;
    border-radius: 0px;
    min-height: 0 !important;
    background: var(--px-boxshadow);
  }
.comment-respond .button:hover{
    color: #fff !important;
    background: var(--px-color-1) !important;
  }
  
.comment-respond .form-submit{
    width: fit-content; 
    color:var(--px-color-2); 
    padding:0px;
    border-radius: 0px;
    transition: 0.5s all;
    overflow: hidden;
    z-index: 2;
    background: var(--px-boxshadow);
  }
  
    .comment-respond .form-submit:hover{
    color: #fff !important;
    background: var(--px-color-1) !important;
  }

  
  
  
  
@media(max-width:1440px){
.wc-tabs li a {
    padding: 25px 25px;
}
}
@media(max-width:768px){
    .wc-tabs li{
        width:100%;
        padding:0;
    }
    .wc-tabs li a {
        padding: 20px 16px;
        margin: 0;
    }
    ul.tabs.wc-tabs{
        gap:0;
    }
    #brx-content.wordpress {
        padding: 0 2.6rem;
    }
}


/* ============================================================
   THANK YOU PAGE — ORDER RECEIVED
   Stile coordinato con il tema Bricks Child
   body.woocommerce-order-received
============================================================ */

/* --- Wrapper principale ------------------------------------ */
body.woocommerce-order-received .wp-site-blocks {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

body.woocommerce-order-received .woocommerce {
    max-width: 960px;
    margin: 0 auto;
}

/* ============================================================
   HERO — conferma ordine
============================================================ */
body.woocommerce-order-received .woocommerce-notice.woocommerce-thankyou-order-received {
    position: relative;
    display: block;
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
    font-weight: 600;
    color: #195125;
    padding: 4.5rem 2rem 0rem !important;
    margin: 0 0 2.5rem !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
#ty-tab-details .woocommerce-customer-details{
    display:none;
}
body.woocommerce-order-received .ty-account-cta {
    display: flex;
    justify-content: center;
    margin: -1rem 0 2.2rem;
    animation: ty-fadeup .45s .2s ease both;
}

body.woocommerce-order-received .ty-account-cta .btn-fill-slide {
    min-width: 220px;
    text-align: center;
}
.post-6753 h1{
    display:none;
}
/* cerchio checkmark animato */
body.woocommerce-order-received .woocommerce-notice.woocommerce-thankyou-order-received::before {
    content: "✓";
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #195125;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 72px;
    text-indent: 0;
    border-radius: 50%;
    box-shadow: 0 8px 28px rgba(25,81,37,.30);
    animation: ty-pop .55s .1s cubic-bezier(.18,1.25,.4,1) both;
    margin:3rem 0;
}

@keyframes ty-pop {
    0%   { transform: translateX(-50%) scale(0);   opacity: 0; }
    100% { transform: translateX(-50%) scale(1);   opacity: 1; }
}

/* stato ordine fallito */
body.woocommerce-order-received .woocommerce-notice.woocommerce-thankyou-order-failed {
    text-align: center;
    border-radius: 20px !important;
    padding: 2rem !important;
    background: #fff5f5 !important;
    border-left-color: #c0392b !important;
    color: #c0392b;
    animation: ty-fadeup .5s ease both;
}

/* ============================================================
   ORDER OVERVIEW — griglia mini-card statistiche
============================================================ */
body.woocommerce-order-received ul.order_details.woocommerce-order-overview {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 3rem !important;
    border: none !important;
    animation: ty-fadeup .5s .25s ease both;
}

body.woocommerce-order-received ul.order_details.woocommerce-order-overview li {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: .3rem;
    padding: 1.4rem 1rem !important;
    background: #f8f8f5;
    border-radius: 20px;
    border: none !important;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #777;
    transition: box-shadow .25s ease, transform .25s ease;
}

body.woocommerce-order-received ul.order_details.woocommerce-order-overview li:hover {
    transform: translateY(-2px);
}

body.woocommerce-order-received ul.order_details.woocommerce-order-overview li strong {
    display: block;
    font-weight: 700;
    color: #212121;
    letter-spacing: 0;
    text-transform: none;
    margin-top: .15rem;
}

/* Highlight card totale */
body.woocommerce-order-received ul.order_details.woocommerce-order-overview li.woocommerce-order-overview__total {
    background: #195125;
    color: rgba(255,255,255,.7);
}

body.woocommerce-order-received ul.order_details.woocommerce-order-overview li.woocommerce-order-overview__total strong {
    color: #ffffff;
}
.go-account{
    padding:9px 16px;
}
/* ============================================================
   SECTION TITLES
============================================================ */
body.woocommerce-order-received h2.woocommerce-order-details__title,
body.woocommerce-order-received h2.woocommerce-column__title {
    color: #212121;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: .65rem;
    font-size:16px;
    border-bottom: 1px solid #ebebeb;
}

/* ============================================================
   ORDER DETAILS — tabella prodotti ordinati
============================================================ */
body.woocommerce-order-received section.woocommerce-order-details {
    margin-bottom: 2.5rem;
    animation: ty-fadeup .5s .35s ease both;
}

body.woocommerce-order-received table.woocommerce-table--order-details {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    background: #f8f8f5;
    border-radius: 20px;
    overflow: hidden;
    font-size: 90%;
}
#ty-tab-details .woocommerce-customer-details address{
    font-size:90%;
}
/* Intestazione tabella */
body.woocommerce-order-received table.woocommerce-table--order-details thead tr th {
    background: #212121;
    color: #ffffff;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    font-weight: 500;
    border: none !important;
}

body.woocommerce-order-received table.woocommerce-table--order-details thead tr th:first-child {
    border-radius: 20px 0 0 0;
}

body.woocommerce-order-received table.woocommerce-table--order-details thead tr th:last-child {
    border-radius: 0 20px 0 0;
    text-align: right;
}

/* Righe prodotti */
body.woocommerce-order-received table.woocommerce-table--order-details tbody tr td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #ebebeb;
    color: #212121;
    vertical-align: middle;
    background: transparent;
}

body.woocommerce-order-received table.woocommerce-table--order-details tbody tr td a {
    font-weight: 600;
    color: #212121;
    text-decoration: none;
}

body.woocommerce-order-received table.woocommerce-table--order-details tbody tr td a:hover {
    color: #195125;
}

body.woocommerce-order-received table.woocommerce-table--order-details tbody tr td.product-total {
    text-align: right;
    font-weight: 600;
}

body.woocommerce-order-received table.woocommerce-table--order-details tbody tr:last-child td {
    border-bottom: none;
}

/* Footer tabella (subtotale / spedizione / totale) */
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr th,
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr td {
    padding: .7rem 1.5rem;
    color: #666;
    border-top: 1px solid #e8e8e8;
    background: transparent;
}

body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr td {
    text-align: right;
}

/* Riga totale finale */
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td {
    font-weight: 700;
    color: #195125;
    border-top: 2px solid #195125;
    padding-bottom: 1.2rem;
}

/* ============================================================
   CUSTOMER DETAILS — indirizzi
============================================================ */
body.woocommerce-order-received section.woocommerce-customer-details {
    animation: ty-fadeup .5s .45s ease both;
}

body.woocommerce-order-received .col2-set.addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem !important;
    margin: 0 !important;
}

body.woocommerce-order-received .woocommerce-column {
    background: #f8f8f5;
    border-radius: 20px;
    padding: 1.75rem 2rem !important;
    float: none !important;
    width: auto !important;
}

body.woocommerce-order-received .woocommerce-column--billing-address {
    border-left: 4px solid #195125;
}

body.woocommerce-order-received .woocommerce-column--shipping-address {
    border-left: 4px solid #c9a727;
}

body.woocommerce-order-received .woocommerce-column address {
    font-style: normal;
    line-height: 1.85;
    color: #444;
    margin: 0;
}

body.woocommerce-order-received .woocommerce-column address p {
    margin: 0;
}

/* ============================================================
   THANK YOU PAGE — Tab bar
============================================================ */

.ty-tabbar {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: .15rem .1rem .5rem;
    margin-bottom: 1.5rem;
}

.ty-tabbar::-webkit-scrollbar {
    display: none;
}

.ty-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
    padding: .7rem 1.35rem;
    border: 1.5px solid #e0e0d8;
    border-radius: 50px;
    background: #f8f8f5;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background .22s ease,
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .18s ease;
}

.ty-tab-btn svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.ty-tab-btn:hover {
    background: #eaf2eb;
    color: #195125;
    border-color: rgba(25, 81, 37, .3);
    transform: translateY(-1px);
}

.ty-tab-btn.is-active {
    background: #195125;
    color: #fff;
    border-color: #195125;
    transform: translateY(-2px);
}

/* ============================================================
   THANK YOU PAGE — Panels
============================================================ */

.ty-panels {
    position: relative;
}

.ty-panel {
    background: #f8f8f5;
    border-radius: 20px;
    padding: 2rem 2rem;
    animation: ty-panelfade .35s ease both;
}

.ty-panel[hidden] {
    display: none;
}

/* Re-animate on manual tab switch */
.ty-panel--anim {
    animation: ty-panelfade .3s ease both;
}

@keyframes ty-panelfade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Headings inside panels */
.ty-panel h2.woocommerce-order-details__title,
.ty-panel h2.woocommerce-column__title {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid #e5e5e5;
}

/* ── Products table inside "Dettagli ordine" tab ── */
.ty-panel table.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.ty-panel table.woocommerce-table--order-details thead tr th {
    background: #212121;
    color: #fff;
    text-transform: uppercase;
    padding: .85rem 1.25rem;
    font-weight: 500;
    border: none !important;
}

.ty-panel table.woocommerce-table--order-details thead tr th:first-child {
    border-radius: 12px 0 0 0;
}

.ty-panel table.woocommerce-table--order-details thead tr th:last-child {
    border-radius: 0 12px 0 0;
    text-align: right;
}

.ty-panel table.woocommerce-table--order-details tbody tr td {
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #e8e8e4;
    color: #212121;
    vertical-align: middle;
    background: transparent;
}

.ty-panel table.woocommerce-table--order-details tbody tr td a {
    font-weight: 600;
    color: #212121;
    text-decoration: none;
}

.ty-panel table.woocommerce-table--order-details tbody tr td a:hover {
    color: #195125;
}

.ty-panel table.woocommerce-table--order-details tbody tr td.product-total {
    text-align: right;
    font-weight: 600;
}

.ty-panel table.woocommerce-table--order-details tbody tr:last-child td {
    border-bottom: none;
}

.ty-panel table.woocommerce-table--order-details tfoot tr th,
.ty-panel table.woocommerce-table--order-details tfoot tr td {
    padding: .65rem 1.25rem;
    color: #666;
    border-top: 1px solid #e5e5e5;
    background: transparent;
}

.ty-panel table.woocommerce-table--order-details tfoot tr td {
    text-align: right;
}

.ty-panel table.woocommerce-table--order-details tfoot tr:last-child th,
.ty-panel table.woocommerce-table--order-details tfoot tr:last-child td {
    font-weight: 700;
    color: #195125;
    border-top: 2px solid #195125;
    padding-bottom: 1rem;
}

/* ── Address block inside "Fatturazione" / "Spedizione" tabs ── */
.ty-address {
    font-style: normal;
    line-height: 1.9;
    color: #444;
}

.ty-address p {
    margin: 0;
}

.ty-address a {
    color: #195125;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.ty-address a:hover {
    border-bottom-color: #195125;
}

/* ── BACS bank details inside tab ── */
.ty-panel .woocommerce-bacs-bank-details {
    margin: 0;
}

.ty-panel .woocommerce-bacs-bank-details > h2 {
    display: none; /* title already shown as tab label */
}

.ty-panel .woocommerce-bacs-bank-details .wc-bacs-bank-details {
    width: 100%;
    border-collapse: collapse;
}

.ty-panel .woocommerce-bacs-bank-details .wc-bacs-bank-details th,
.ty-panel .woocommerce-bacs-bank-details .wc-bacs-bank-details td {
    padding: .6rem .5rem;
    border-bottom: 1px solid #e8e8e4;
}

.ty-panel .woocommerce-bacs-bank-details .wc-bacs-bank-details tr:last-child th,
.ty-panel .woocommerce-bacs-bank-details .wc-bacs-bank-details tr:last-child td {
    border-bottom: none;
}

.ty-panel .woocommerce-bacs-bank-details .wc-bacs-bank-details th {
    font-weight: 600;
    color: #444;
    width: 40%;
}

/* Copy icon next to IBAN / conto corrente */
.ty-panel .woocommerce-bacs-bank-details .wc-bacs-bank-details td {
    font-weight: 700;
    color: #195125;
}


/* ============================================================
   ANIMAZIONE FADE-UP condivisa
============================================================ */
@keyframes ty-fadeup {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    #brx-content.wordpress {
       padding:0 1rem;
    }
    .post-6753{
        margin-bottom:4rem;
     }
    body.woocommerce-order-received .wp-site-blocks {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    body.woocommerce-order-received ul.order_details.woocommerce-order-overview {
        grid-template-columns: repeat(2, 1fr);
    }

    body.woocommerce-order-received .ty-account-cta {
        margin: .2rem 0 1.8rem;
    }

    body.woocommerce-order-received .ty-account-cta .btn-fill-slide {
        width: 100%;
        max-width: 320px;
    }

    .ty-tab-btn {
        padding: .65rem 1rem;
    }

    .ty-panel {
        padding: 1.5rem 1.25rem;
    }

    body.woocommerce-order-received table.woocommerce-table--order-details thead tr th:first-child {
        border-radius: 14px 0 0 0;
    }

    body.woocommerce-order-received table.woocommerce-table--order-details thead tr th:last-child {
        border-radius: 0 14px 0 0;
    }

    body.woocommerce-order-received table.woocommerce-table--order-details tbody tr td,
    body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr th,
    body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr td {
        padding: .75rem 1rem;
    }
}

@media (max-width: 480px) {
    body.woocommerce-order-received ul.order_details.woocommerce-order-overview {
        grid-template-columns: 1fr;
    }

    .ty-tab-btn {
        padding: .6rem .9rem;
        gap: .35rem;
    }

    .ty-tab-btn svg {
        width: 15px;
        height: 15px;
    }
}

