/* Scoped to classic cart/checkout. Button color, background, border color and
   hover colors deliberately remain owned by Blocksy/the site's custom CSS. */
body.bcc-cart, body.bcc-checkout {
    --bcc-line: #d9dcdf;
    --bcc-muted: #61666c;
    --bcc-space: clamp(24px, 3vw, 48px);
    --bcc-heading-font: 'GT_America', Arial, sans-serif;
}
.bcc-cart .bcc-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(330px, 1fr);
    gap: 0;
    align-items: stretch;
}
.bcc-cart .bcc-cart-layout > .woocommerce-cart-form {
    min-width: 0;
    margin: 0;
    padding-inline-end: var(--bcc-space);
}
.bcc-cart .bcc-cart-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-block: 0 24px;
    border-bottom: 1px solid var(--bcc-line);
}
.bcc-cart .bcc-cart-heading h2 {
    margin: 0;
    font-family: var(--bcc-heading-font);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.35;
}
.bcc-cart .bcc-cart-heading h2 span,
.bcc-cart .bcc-summary-heading span { font-weight: 400; color: var(--bcc-muted); }
.bcc-cart .bcc-cart-heading h2 span { font-family: inherit; font-size: inherit; }
.bcc-cart .bcc-cart-amount { font-size: 25px; line-height: 1.3; }
.bcc-cart .bcc-cart-layout .bcc-items {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-collapse: collapse;
}
.bcc-cart .bcc-items > tbody { display: block; width: 100%; }
.bcc-cart .bcc-items tr.bcc-item {
    display: grid;
    grid-template-columns: 151.2px minmax(0, 1fr) 112px;
    grid-template-rows: auto 1fr auto;
    column-gap: 18px;
    row-gap: 16px;
    min-height: 0;
    padding-block: 24px;
    border-bottom: 1px solid var(--bcc-line);
}
.bcc-cart .bcc-items .bcc-item > td {
    display: block;
    float: none;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    text-align: start;
    background: none;
}
.bcc-cart .bcc-items .bcc-item > td::before { display: none; }
/* Let the image and subtotal share the bottom edge of the product details. */
.bcc-cart .bcc-items .product-thumbnail { grid-column: 1; grid-row: 1 / 4; align-self: end; }
.bcc-cart .bcc-items .product-thumbnail a { display: block; }
.bcc-cart .bcc-items .product-thumbnail img {
    display: block;
    width: 151.2px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 2px;
}
.bcc-cart .bcc-items .product-name { grid-column: 2; grid-row: 1 / 3; overflow-wrap: anywhere; font-size: 15px; }
.bcc-cart .bcc-items .product-name > a { font-weight: 500; }
.bcc-cart .bcc-items .product-name .bcc-item-price { margin: 6px 0 10px; font-size: 14px; font-weight: 400; }
.bcc-cart .bcc-item-price del { color: var(--bcc-muted); margin-inline-end: 7px; }
.bcc-cart .bcc-item-price ins { background: none; text-decoration: none; font-weight: 600; }
.bcc-cart .bcc-item-price :is(del, ins) { display: inline-block; }
.bcc-cart .bcc-items .product-name .variation { margin: 10px 0 0; font-size: 13px; }
.bcc-cart .bcc-items .variation p { margin: 0; }
.bcc-cart .bcc-items .product-quantity { grid-column: 3; grid-row: 1; justify-self: end; }
.bcc-cart .bcc-items .product-quantity .quantity { margin: 0; }
.bcc-cart .bcc-items .product-subtotal { grid-column: 2 / 4; grid-row: 3; align-self: end; justify-self: start; font-size: 14px; }
.bcc-cart .bcc-line-label { color: var(--bcc-muted); margin-inline-end: 8px; }
.bcc-cart .bcc-items .bcc-item > .product-remove { grid-column: 3; grid-row: 2; justify-self: end; align-self: start; }
.bcc-cart .bcc-items .product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    height: auto;
    min-height: 44px;
    padding: 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}
.bcc-cart .bcc-items .remove svg { flex-shrink: 0; }
.bcc-cart .bcc-items .bcc-actions-row { display: block; }
.bcc-cart .bcc-items .actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    padding: 0;
    border: 0;
}
.bcc-cart .bcc-cart-layout .bcc-items { margin-bottom: 24px; }
.bcc-cart .bcc-update-trigger,
.bcc-cart .bcc-update-feedback[hidden],
.bcc-cart .bcc-update-retry[hidden] { display: none !important; }
.bcc-cart .bcc-update-feedback { margin: 0 0 16px; font-size: 13px; }
.bcc-cart .bcc-update-retry { min-height: 36px; padding: 6px 12px; margin-inline-start: 8px; }
.bcc-cart .bcc-note { padding: 17px 22px; margin-top: 4px; text-align: center; font-size: 13px; background: #f5f6f7; }
.bcc-cart .bcc-cart-layout > .bcc-collaterals {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    width: auto;
    margin: 0;
    padding-inline-start: var(--bcc-space);
    border-inline-start: 1px solid var(--bcc-line);
}
.bcc-cart .bcc-collaterals .cart_totals {
    order: -1;
    float: none;
    position: static;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
}
.bcc-cart .cart_totals > h2:not(.bcc-summary-heading) { display: none; }
.bcc-cart .cart_totals .bcc-summary-heading { font-family: var(--bcc-heading-font); font-size: 22px; font-weight: 500; line-height: 1.5; margin: 0 0 20px; }
.bcc-cart .cart_totals .bcc-summary-heading span { white-space: nowrap; font-family: inherit; font-size: inherit; }
.bcc-cart .cart_totals .shop_table { border: 0; border-collapse: collapse; margin: 0; width: 100%; }
.bcc-cart .cart_totals .shop_table th,
.bcc-cart .cart_totals .shop_table td { border: 0; padding: 12px 0; font-size: 14px; font-weight: 400; vertical-align: top; }
.bcc-cart .cart_totals .shop_table th { text-align: start; width: 40%; }
.bcc-cart .cart_totals .shop_table td { text-align: end; }
.bcc-cart .cart_totals .shop_table td::before { display: none; }
.bcc-cart .cart_totals .shop_table tr { background: none; }
.bcc-cart .cart_totals .woocommerce-shipping-destination,
.bcc-cart .cart_totals .woocommerce-shipping-calculator { display: none !important; }
/* The live store indents the subtotal by 8 px. Use that same left edge for shipping. */
.bcc-cart .cart_totals .cart-subtotal { text-indent: 0; }
.bcc-cart .cart_totals .shop_table .cart-subtotal th,
.bcc-cart .cart_totals .shop_table .shipping > th { padding-inline-start: 8px; }
.bcc-cart .cart_totals .ct-shipping-heading { text-align: start; margin-bottom: 12px; padding-inline-start: 8px; text-indent: 0; font-weight: 400; }
.bcc-cart .cart_totals .woocommerce-shipping-methods input[type="radio"]:not(:checked) { border: 2px solid #777e87; }
.bcc-cart .cart_totals .shop_table .order-total th,
.bcc-cart .cart_totals .shop_table .order-total td { padding-block: 20px; border-top: 1px solid var(--bcc-line); font-size: 16px; }
.bcc-cart .cart_totals .order-total strong { font-weight: 600; }
.bcc-cart .cart_totals .shop_table .bcc-coupon-row > td { padding: 0; text-align: start; border-top: 1px solid var(--bcc-line); }
.bcc-cart .bcc-coupon summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; padding: 18px 0; list-style: none; font-size: 13px; }
.bcc-cart .bcc-coupon summary::-webkit-details-marker { display: none; }
.bcc-cart .bcc-coupon summary::after { content: ''; width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-inline-end: 3px; flex-shrink: 0; }
.bcc-cart .bcc-coupon[open] summary::after { transform: rotate(225deg); }
.bcc-cart .bcc-coupon-form { margin: 0 0 18px; }
.bcc-cart .bcc-coupon-form label { display: block; margin-bottom: 7px; font-size: 12px; }
.bcc-cart .bcc-coupon-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.bcc-cart .bcc-coupon-fields input { flex: 1 1 135px; min-width: 0; width: 100%; }
.bcc-cart .bcc-coupon-fields .button { flex: 0 1 auto; padding-inline: 16px; }
.bcc-cart .cart_totals .wc-proceed-to-checkout { padding: 0; margin-top: 6px; }
.bcc-cart .cart_totals .checkout-button { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 51px; margin: 0; font-size: 15px; border-radius: 2px; }
.bcc-cart :is(.bcc-coupon summary, .bcc-items .remove):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.bcc-cart .bcc-payment-slot:empty { display: none; }
.bcc-cart .bcc-payment-slot .metodos-pago-carrito {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 18px 12px;
    box-sizing: border-box;
}
.bcc-cart .bcc-payment-slot .metodos-pago-carrito > strong { grid-column: 1 / -1; font-size: 16px; }
.bcc-cart .bcc-payment-slot .metodos-pago-carrito > br { display: none; }
.bcc-cart .bcc-payment-slot .metodos-pago-carrito > img { display: block; max-width: 100%; width: 100px; height: auto; margin: 0 !important; }
.bcc-cart .bcc-payment-slot .metodos-pago-carrito > img:first-of-type { grid-column: 1 / -1; width: 100%; max-width: 400px; }

/* Blocksy retains its own customer-details / order-review wrappers. No fields
   or payment nodes are moved, cloned or hidden. */
.bcc-checkout form.ct-woocommerce-checkout {
    grid-template-columns: minmax(0, 1.55fr) minmax(350px, 1fr);
    gap: var(--bcc-space);
    align-items: start;
}
.bcc-checkout .ct-customer-details { min-width: 0; }
.bcc-checkout form.checkout .ct-order-review {
    min-width: 0;
    position: static;
    padding: 0 0 0 var(--bcc-space);
    padding-inline: var(--bcc-space) 0;
    border: 0;
    border-inline-start: 1px solid var(--bcc-line);
    border-radius: 0;
    box-shadow: none;
    background: none;
}
.bcc-checkout form.checkout h3 { font-size: 21px; font-weight: 500; margin-bottom: 24px; }
.bcc-checkout form.checkout #order_review_heading { font-size: 19px; }
.bcc-checkout #customer_details .col-1,
.bcc-checkout #customer_details .col-2 { float: none; width: 100%; }
.bcc-checkout #customer_details .form-row { margin-bottom: 18px; }
.bcc-checkout #customer_details .form-row > label { font-size: 13px; margin-bottom: 7px; }
.bcc-checkout #customer_details :is(input.input-text, select, textarea) { min-height: 46px; border-radius: 2px; }
.bcc-checkout #customer_details textarea { min-height: 110px; }
.bcc-checkout .woocommerce-checkout-review-order-table { width: 100%; border: 0; border-collapse: collapse; }
.bcc-checkout .woocommerce-checkout-review-order-table th,
.bcc-checkout .woocommerce-checkout-review-order-table td { padding: 14px 0; border: 0; border-bottom: 1px solid var(--bcc-line); font-size: 14px; }
.bcc-checkout .woocommerce-checkout-review-order-table .product-name { overflow-wrap: anywhere; }
.bcc-checkout .woocommerce-checkout-review-order-table .product-total,
.bcc-checkout .woocommerce-checkout-review-order-table tfoot td { text-align: end; }
.bcc-checkout .woocommerce-checkout-review-order-table .order-total th,
.bcc-checkout .woocommerce-checkout-review-order-table .order-total td { padding-block: 20px; font-size: 16px; }
.bcc-checkout #place_order { width: 100%; min-height: 51px; border-radius: 2px; font-size: 15px; }
.bcc-checkout .woocommerce-privacy-policy-text { font-size: 12px; line-height: 1.7; }

@media (max-width: 999px) {
    .bcc-cart .bcc-cart-layout,
    .bcc-checkout form.ct-woocommerce-checkout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .bcc-cart .bcc-cart-layout > .woocommerce-cart-form { padding-inline-end: 0; }
    .bcc-cart .bcc-cart-layout > .bcc-collaterals,
    .bcc-checkout form.checkout .ct-order-review { padding: 28px 0 0; border-inline-start: 0; border-top: 1px solid var(--bcc-line); }
}
@media (max-width: 599px) {
    .bcc-cart .bcc-cart-heading { padding-bottom: 18px; }
    .bcc-cart .bcc-cart-heading h2 { font-weight: 700; white-space: normal; }
    .bcc-cart .cart_totals .bcc-summary-heading { font-weight: 700; }
    .bcc-cart .mensaje-carritook { display: none; }
    .bcc-cart .bcc-cart-amount { font-size: 21px; }
    .bcc-cart .bcc-items tr.bcc-item { grid-template-columns: 103.2px minmax(0, 1fr) 44px; grid-template-rows: auto auto auto; gap: 14px; min-height: 0; padding-block: 20px; }
    .bcc-cart .bcc-items .product-thumbnail { grid-column: 1; grid-row: 1 / 3; }
    .bcc-cart .bcc-items .product-name { grid-column: 2 / 4; grid-row: 1; }
    .bcc-cart .bcc-items .product-quantity { grid-column: 2; grid-row: 3; justify-self: start; align-self: center; }
    .bcc-cart .bcc-items .bcc-item > .product-remove { grid-column: 3; grid-row: 3; justify-self: end; align-self: center; }
    .bcc-cart .bcc-items .product-remove .remove { width: 44px; min-height: 44px; }
    .bcc-cart .bcc-items .product-remove .remove > span { display: none; }
    .bcc-cart .bcc-items .product-subtotal { grid-column: 2 / 4; grid-row: 2; justify-self: start; align-self: end; }
    .bcc-cart .bcc-line-label { display: block; font-size: 11px; text-align: start; margin: 0; }
    .bcc-cart .cart_totals .shop_table tr { display: table-row; }
    .bcc-cart .cart_totals .shop_table th,
    .bcc-cart .cart_totals .shop_table td { display: table-cell; }
    .bcc-checkout #customer_details .form-row-first,
    .bcc-checkout #customer_details .form-row-last { float: none; width: 100%; }
}
