/* =========================================================
   ARITRIWOOD - CARRITO
   Preview privado
   ========================================================= */

body.aw-cart-preview {
    --aw-bg: #f8f5ee;
    --aw-paper: #ffffff;
    --aw-green: #39452c;
    --aw-green-dark: #29331f;
    --aw-text: #24231f;
    --aw-navy: #15263a;
    --aw-muted: #716d64;
    --aw-border: #ded9cf;
    --aw-gold: #c89b62;

    background: var(--aw-bg) !important;
}


/* =========================================================
   QUITAR HEADER / FOOTER ANTIGUOS
   ========================================================= */

body.aw-cart-preview #masthead,
body.aw-cart-preview .site-header,
body.aw-cart-preview .site-top-header-wrap,
body.aw-cart-preview .kadence-top-header,
body.aw-cart-preview #colophon,
body.aw-cart-preview .site-footer {
    display: none !important;
}


/* =========================================================
   TÍTULO
   ========================================================= */

body.aw-cart-preview .entry-hero,
body.aw-cart-preview .entry-hero-container-inner {
    min-height: 155px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #f7f4ed !important;
    background-image: none !important;

    border-bottom: 1px solid var(--aw-border);
}


body.aw-cart-preview .entry-title {
    margin: 0 !important;

    color: var(--aw-navy) !important;

    font-size: 38px !important;
    font-weight: 800 !important;

    text-align: center;
}


body.aw-cart-preview .entry-title::after {
    content: "";

    display: block;

    width: 42px;
    height: 2px;

    margin: 16px auto 0;

    background: var(--aw-green);
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

body.aw-cart-preview .content-container,
body.aw-cart-preview #primary,
body.aw-cart-preview .content-area {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
}


body.aw-cart-preview .site-main {
    width: min(1180px, calc(100% - 44px)) !important;

    margin: 0 auto !important;

    padding: 42px 0 62px !important;
}


/* Evitar el enorme espacio vertical actual */

body.aw-cart-preview .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   CART BLOCK - ESTRUCTURA
   ========================================================= */

body.aw-cart-preview .wc-block-cart {
    margin: 0 !important;
}


body.aw-cart-preview .wc-block-cart__main,
body.aw-cart-preview .wc-block-cart__sidebar {
    margin-top: 0 !important;
}


body.aw-cart-preview .wc-block-cart__main {
    padding-right: 28px !important;
}


/* =========================================================
   PRODUCTOS
   ========================================================= */

body.aw-cart-preview .wc-block-cart-items {
    border: 1px solid var(--aw-border) !important;
    border-radius: 10px !important;

    overflow: hidden;

    background: #ffffff !important;
}


body.aw-cart-preview
.wc-block-cart-items
.wc-block-cart-items__header {
    background: #f3f0e8;
}


body.aw-cart-preview
.wc-block-cart-items th {
    padding: 15px 18px !important;

    color: #5c594f !important;

    font-size: 10px !important;
    font-weight: 700 !important;

    letter-spacing: .06em;

    text-transform: uppercase;
}


body.aw-cart-preview
.wc-block-cart-items td {
    padding: 18px !important;

    border-color: #ece8df !important;
}


/* Imagen producto */

body.aw-cart-preview
.wc-block-cart-item__image img {
    width: 92px !important;
    height: 92px !important;

    object-fit: contain !important;

    border-radius: 6px;

    background: #f1efeb;
}


/* Nombre */

body.aw-cart-preview
.wc-block-components-product-name {
    color: var(--aw-text) !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    line-height: 1.35 !important;

    text-decoration: none !important;
}


/* Datos extra */

body.aw-cart-preview
.wc-block-components-product-metadata,
body.aw-cart-preview
.wc-block-components-product-details {
    color: var(--aw-muted) !important;

    font-size: 11px !important;
}


/* Precio */

body.aw-cart-preview
.wc-block-components-product-price {
    color: var(--aw-green-dark) !important;

    font-size: 13px !important;
    font-weight: 700 !important;
}


/* =========================================================
   CANTIDAD
   ========================================================= */

body.aw-cart-preview
.wc-block-components-quantity-selector {
    height: 38px !important;

    border: 1px solid var(--aw-border) !important;
    border-radius: 5px !important;

    background: #ffffff !important;

    box-shadow: none !important;
}


body.aw-cart-preview
.wc-block-components-quantity-selector input {
    font-size: 12px !important;
}


/* Eliminar */

body.aw-cart-preview
.wc-block-cart-item__remove-link {
    color: #777268 !important;

    font-size: 10px !important;

    text-decoration: underline !important;
}


body.aw-cart-preview
.wc-block-cart-item__remove-link:hover {
    color: #a24135 !important;
}


/* =========================================================
   RESUMEN / TOTALES
   ========================================================= */

body.aw-cart-preview
.wc-block-cart__sidebar {
    padding: 0 !important;
}


body.aw-cart-preview
.wc-block-components-sidebar-layout
.wc-block-components-totals-wrapper,
body.aw-cart-preview
.wp-block-woocommerce-cart-order-summary-block {
    border-color: var(--aw-border) !important;
}


body.aw-cart-preview
.wc-block-cart__sidebar
.wp-block-woocommerce-cart-order-summary-block {
    padding: 24px !important;

    border: 1px solid var(--aw-border) !important;
    border-radius: 10px !important;

    background: #ffffff;

    box-shadow:
        0 6px 22px
        rgba(30,30,20,.04);
}


/* Título */

body.aw-cart-preview
.wc-block-components-totals-wrapper h2,
body.aw-cart-preview
.wc-block-cart__totals-title {
    color: var(--aw-navy) !important;

    font-size: 17px !important;
    font-weight: 700 !important;
}


/* Filas totales */

body.aw-cart-preview
.wc-block-components-totals-item {
    color: #4b4942;

    font-size: 13px !important;
}


body.aw-cart-preview
.wc-block-components-totals-footer-item {
    padding-top: 18px !important;

    border-top: 1px solid var(--aw-border);
}


body.aw-cart-preview
.wc-block-components-totals-footer-item
.wc-block-components-totals-item__label,
body.aw-cart-preview
.wc-block-components-totals-footer-item
.wc-block-formatted-money-amount {
    color: var(--aw-navy) !important;

    font-size: 19px !important;
    font-weight: 700 !important;
}


/* =========================================================
   CUPÓN
   ========================================================= */

body.aw-cart-preview
.wc-block-components-totals-coupon {
    border-color: var(--aw-border) !important;
}


body.aw-cart-preview
.wc-block-components-panel__button {
    color: #4b4942 !important;

    font-size: 12px !important;
}


body.aw-cart-preview
.wc-block-components-totals-coupon__input input {
    border: 1px solid var(--aw-border) !important;
    border-radius: 5px !important;

    box-shadow: none !important;
}


/* =========================================================
   FINALIZAR COMPRA
   ========================================================= */

body.aw-cart-preview
.wc-block-cart__submit-button {
    min-height: 52px !important;

    border: 1px solid var(--aw-green) !important;
    border-radius: 5px !important;

    background: var(--aw-green) !important;

    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    text-transform: uppercase;

    box-shadow: none !important;

    transition:
        background .2s ease,
        transform .2s ease;
}


body.aw-cart-preview
.wc-block-cart__submit-button:hover {
    background: var(--aw-green-dark) !important;

    border-color: var(--aw-green-dark) !important;

    transform: translateY(-1px);
}


/* =========================================================
   CARRITO CLÁSICO - FALLBACK
   ========================================================= */

body.aw-cart-preview
.woocommerce-cart-form,
body.aw-cart-preview
.cart_totals {
    border: 1px solid var(--aw-border);

    border-radius: 10px;

    background: #ffffff;
}


body.aw-cart-preview
.woocommerce-cart-form table {
    margin: 0 !important;

    border: 0 !important;
}


body.aw-cart-preview
.woocommerce-cart-form th,
body.aw-cart-preview
.woocommerce-cart-form td {
    padding: 16px !important;

    border-color: #ece8df !important;
}


body.aw-cart-preview
.cart_totals {
    padding: 24px;
}


body.aw-cart-preview
.checkout-button {
    background: var(--aw-green) !important;

    color: #ffffff !important;

    border-radius: 5px !important;
}


/* =========================================================
   FOOTER NUEVO
   ========================================================= */

body.aw-cart-preview .aw-footer {
    width: 100%;

    background: #303826 !important;

    color: #f3f0e8;
}


body.aw-cart-preview .aw-footer-main {
    padding: 48px 0 42px;
}


body.aw-cart-preview .aw-footer-container {
    width: min(1220px, calc(100% - 48px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.45fr
        .8fr
        .9fr
        .9fr
        1.25fr;

    gap: 42px;
}


body.aw-cart-preview .aw-footer-logo {
    max-width: 92px !important;
    max-height: 82px !important;

    margin-bottom: 18px !important;

    filter: brightness(0) invert(1);
}


body.aw-cart-preview .aw-footer h3 {
    margin: 2px 0 18px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
}


body.aw-cart-preview .aw-footer p {
    color: rgba(255,255,255,.70);

    font-size: 12px;
    line-height: 1.65;
}


body.aw-cart-preview .aw-footer ul {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


body.aw-cart-preview .aw-footer li {
    margin: 0 0 9px !important;

    list-style: none !important;
}


body.aw-cart-preview .aw-footer a {
    color: rgba(255,255,255,.72) !important;

    font-size: 12px;

    text-decoration: none !important;
}


body.aw-cart-preview .aw-footer a:hover {
    color: #ffffff !important;
}


/* sociales */

body.aw-cart-preview .aw-footer-social {
    display: flex;

    gap: 10px;

    margin-top: 18px;
}


body.aw-cart-preview .aw-footer-social a,
body.aw-cart-preview .aw-footer-social-disabled {
    display: flex !important;

    width: 38px !important;
    height: 38px !important;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.28);

    border-radius: 50%;
}


body.aw-cart-preview .aw-footer-social img {
    width: 17px !important;
    height: 17px !important;

    filter: brightness(0) invert(1);
}


/* Footer inferior */

body.aw-cart-preview .aw-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);

    background: #293020;
}


body.aw-cart-preview .aw-footer-bottom-inner {
    width: min(1220px, calc(100% - 48px));

    min-height: 52px;

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: space-between;

    color: rgba(255,255,255,.56);

    font-size: 10px;
}


/* =========================================================
   BUSCADOR FOOTER
   ========================================================= */

body.aw-cart-preview
.aw-footer
.dgwt-wcas-search-wrapp {
    width: 100% !important;
    max-width: 265px !important;

    margin: 14px 0 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;
}


body.aw-cart-preview
.aw-footer
.dgwt-wcas-search-form,
body.aw-cart-preview
.aw-footer
.dgwt-wcas-sf-wrapp {
    position: relative !important;

    width: 100% !important;
    height: 46px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}


body.aw-cart-preview
.aw-footer
.dgwt-wcas-search-input {
    width: 100% !important;
    height: 46px !important;

    margin: 0 !important;

    padding:
        0
        48px
        0
        16px !important;

    border:
        1px solid
        rgba(255,255,255,.28) !important;

    border-radius: 6px !important;

    background:
        rgba(255,255,255,.06) !important;

    color: #ffffff !important;

    font-size: 13px !important;

    box-shadow: none !important;
}


body.aw-cart-preview
.aw-footer
.dgwt-wcas-search-input::placeholder {
    color: rgba(255,255,255,.58) !important;

    opacity: 1;
}


body.aw-cart-preview
.aw-footer
.dgwt-wcas-search-submit {
    position: absolute !important;

    top: 50% !important;
    right: 10px !important;
    left: auto !important;

    width: 30px !important;
    height: 30px !important;

    display: flex !important;

    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 0 !important;

    transform: translateY(-50%) !important;

    border: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}


body.aw-cart-preview
.aw-footer
.dgwt-wcas-search-submit svg {
    position: static !important;

    width: 14px !important;
    height: 14px !important;

    transform: none !important;

    fill: none !important;
    stroke: #ffffff !important;

    stroke-width: 1.7 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    body.aw-cart-preview
    .wc-block-components-sidebar-layout {
        display: block !important;
    }


    body.aw-cart-preview
    .wc-block-cart__main {
        width: 100% !important;

        padding-right: 0 !important;
    }


    body.aw-cart-preview
    .wc-block-cart__sidebar {
        width: 100% !important;

        margin-top: 24px !important;
    }


    body.aw-cart-preview
    .aw-footer-container {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 34px;
    }


    body.aw-cart-preview
    .aw-footer-brand {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    body.aw-cart-preview .entry-hero {
        min-height: 115px !important;
    }


    body.aw-cart-preview .entry-title {
        font-size: 28px !important;
    }


    body.aw-cart-preview .site-main {
        width: calc(100% - 26px) !important;

        padding:
            26px
            0
            42px !important;
    }


    body.aw-cart-preview
    .wc-block-cart-items td {
        padding:
            13px
            8px !important;
    }


    body.aw-cart-preview
    .wc-block-cart-item__image img {
        width: 70px !important;
        height: 70px !important;
    }


    body.aw-cart-preview
    .wc-block-components-product-name {
        font-size: 12px !important;
    }


    body.aw-cart-preview
    .wc-block-cart__sidebar
    .wp-block-woocommerce-cart-order-summary-block {
        padding: 18px !important;
    }


    body.aw-cart-preview
    .aw-footer-container {
        width: calc(100% - 36px);

        grid-template-columns: 1fr;

        gap: 0;
    }


    body.aw-cart-preview
    .aw-footer-brand,
    body.aw-cart-preview
    .aw-footer-column {
        padding: 23px 0;

        border-bottom:
            1px solid
            rgba(255,255,255,.12);
    }


    body.aw-cart-preview
    .aw-footer-bottom-inner {
        width: calc(100% - 36px);

        min-height: 68px;

        flex-direction: column;

        justify-content: center;

        gap: 5px;
    }

}
