/* Cart offers layout refinement only */
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid > .kiappz-so-cart-offers{grid-column:1!important;grid-row:auto;align-self:start;margin-top:26px!important}
body.woocommerce-cart .kiappz-so-cart-offers{box-sizing:border-box;min-width:0;background:#fff;border:1px solid #e5e9f0;border-radius:18px;box-shadow:0 8px 30px rgba(24,29,39,.045);padding:20px 20px 10px}
body.woocommerce-cart .kiappz-so-cart-offers__head{margin-bottom:12px}
body.woocommerce-cart .kiappz-so-cart-offers__head h3{font-size:18px!important;line-height:1.35!important;letter-spacing:-.2px;margin:0 0 6px!important;color:#243653!important;font-weight:700!important}
body.woocommerce-cart .kiappz-so-cart-offers__head p{font-size:13px;line-height:1.55;margin:0!important;color:#667085}
body.woocommerce-cart .kiappz-so-cart-offers__list{display:block}
body.woocommerce-cart .kiappz-so-cart-offers__item{display:grid;grid-template-columns:72px minmax(0,1fr) 138px;align-items:center;column-gap:18px;padding:16px 0;border-top:1px solid #e6ebf2;background:none;border-radius:0;min-width:0}
body.woocommerce-cart .kiappz-so-cart-offers__item:first-child{border-top:0;padding-top:8px}
body.woocommerce-cart .kiappz-so-cart-offers__item:last-child{padding-bottom:12px}
body.woocommerce-cart .kiappz-so-cart-offers__image{display:block;align-self:center}
body.woocommerce-cart .kiappz-so-cart-offers__image img{display:block!important;width:72px!important;height:72px!important;object-fit:cover!important;border-radius:10px!important;margin:0!important;border:1px solid #eef2f6}
body.woocommerce-cart .kiappz-so-cart-offers__details{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
body.woocommerce-cart .kiappz-so-cart-offers__name{font-size:14px!important;line-height:1.5!important;font-weight:600!important;text-decoration:none!important;color:#243653!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.woocommerce-cart .kiappz-so-cart-offers__name:hover{color:#455fa8!important}
body.woocommerce-cart .kiappz-so-cart-offers__meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.woocommerce-cart .kiappz-so-cart-offers__prices{display:flex;align-items:center;gap:9px;flex-wrap:nowrap}
body.woocommerce-cart .kiappz-so-cart-offers__prices del{font-size:14px!important;color:#98a2b3!important;opacity:1!important;text-decoration:line-through;text-decoration-thickness:1.2px}
body.woocommerce-cart .kiappz-so-cart-offers__prices ins{font-size:16px!important;font-weight:800!important;color:#455fa8!important;text-decoration:none!important;background:none!important}
body.woocommerce-cart .kiappz-so-cart-offers__badge{display:inline-flex;align-items:center;justify-content:center;background:#fff1df;color:#a95b00;border-radius:999px;padding:3px 10px;font-weight:700;font-size:11px;line-height:1.3;white-space:nowrap}
body.woocommerce-cart .kiappz-so-cart-offers__add{justify-self:end;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:138px!important;min-width:138px!important;height:42px!important;padding:0 14px!important;background:#ff940a!important;color:#fff!important;border:0!important;border-radius:10px!important;font-weight:700!important;font-size:14px!important;line-height:1!important;cursor:pointer;transition:background .2s,transform .2s;white-space:nowrap}
body.woocommerce-cart .kiappz-so-cart-offers__add span{display:block;line-height:1!important}
body.woocommerce-cart .kiappz-so-cart-offers__add:hover{background:#e58300!important;transform:translateY(-1px)}
body.woocommerce-cart .kiappz-so-cart-offers__add:disabled{opacity:.65;cursor:wait;transform:none}
body.woocommerce-cart .kiappz-so-cart-offers__error{font-size:13px;color:#b42318;margin:12px 0 0!important}
body.woocommerce-cart .kiappz-so-cart-offers__fixed-qty{font-size:14px;color:#455fa8;font-weight:700;white-space:nowrap}
@media(min-width:992px){
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid > .kiappz-so-cart-offers{grid-column:1!important;grid-row:auto;align-self:start}
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid > .cart-collaterals{grid-column:2!important;grid-row:1 / span 2!important}
}
@media(max-width:991px){
 body.woocommerce-cart .kiappz-so-cart-offers__item{grid-template-columns:72px minmax(0,1fr);row-gap:12px}
 body.woocommerce-cart .kiappz-so-cart-offers__add{grid-column:2;justify-self:start}
}
@media(max-width:600px){
 body.woocommerce-cart .kiappz-so-cart-offers{padding:16px 16px 6px}
 body.woocommerce-cart .kiappz-so-cart-offers__item{grid-template-columns:60px minmax(0,1fr);column-gap:12px;padding:14px 0}
 body.woocommerce-cart .kiappz-so-cart-offers__image img{width:60px!important;height:60px!important}
 body.woocommerce-cart .kiappz-so-cart-offers__name{font-size:13px!important}
 body.woocommerce-cart .kiappz-so-cart-offers__prices del{font-size:13px!important}
 body.woocommerce-cart .kiappz-so-cart-offers__prices ins{font-size:15px!important}
 body.woocommerce-cart .kiappz-so-cart-offers__add{width:130px!important;min-width:130px!important;height:40px!important;font-size:13px!important}
}

/* v1.2.0: Explicit placements keep both left cards adjacent in Theme Editor grid. */
@media (min-width:992px) {
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid {
   grid-template-rows: auto auto !important;
   grid-auto-flow: row !important;
   row-gap: 12px !important;
   align-content: start !important;
 }
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid > .woocommerce-notices-wrapper:empty {
   display: none !important;
 }
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid > .woocommerce-notices-wrapper:not(:has(.woocommerce-message,.woocommerce-error,.woocommerce-info)) {
   display: none !important;
 }
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid > form.woocommerce-cart-form {
   grid-column: 1 !important;
   grid-row: 1 !important;
   align-self: start !important;
   margin: 0 !important;
 }
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid > .cart-collaterals {
   grid-column: 2 !important;
   grid-row: 1 / span 2 !important;
   align-self: start !important;
   margin: 0 !important;
 }
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid > .kiappz-so-cart-offers {
   grid-column: 1 !important;
   grid-row: 2 !important;
   align-self: start !important;
   margin: 0 !important;
 }
 /* Preserve genuine WooCommerce errors and information instead of hiding them. */
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid:has(> .woocommerce-notices-wrapper:has(.woocommerce-message,.woocommerce-error,.woocommerce-info)) {
   grid-template-rows: auto auto auto !important;
 }
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid > .woocommerce-notices-wrapper:has(.woocommerce-message,.woocommerce-error,.woocommerce-info) {
   display: block !important;
   grid-column: 1 / -1 !important;
   grid-row: 1 !important;
 }
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid:has(> .woocommerce-notices-wrapper:has(.woocommerce-message,.woocommerce-error,.woocommerce-info)) > form.woocommerce-cart-form {
   grid-row: 2 !important;
 }
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid:has(> .woocommerce-notices-wrapper:has(.woocommerce-message,.woocommerce-error,.woocommerce-info)) > .cart-collaterals {
   grid-row: 2 / span 2 !important;
 }
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid:has(> .woocommerce-notices-wrapper:has(.woocommerce-message,.woocommerce-error,.woocommerce-info)) > .kiappz-so-cart-offers {
   grid-row: 3 !important;
 }
}
@media (max-width:991px) {
 body.woocommerce-cart .woocommerce.kiappz-te-cart-grid > .kiappz-so-cart-offers {
   margin-top: 12px !important;
 }
}

/* 1.3.0 - independent compact recommendations inside the right-hand totals table. */
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals table.shop_table tr.kiappz-so-summary-offers-row > td {
    padding: 18px 0 8px !important; border-bottom: 0 !important;
    width: 100% !important; text-align: left !important; display: table-cell !important;
}
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers {
    padding: 0 !important; margin: 0 !important; border: 0 !important;
    box-shadow: none !important; background: transparent !important; border-radius: 0 !important;
}
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers__heading,
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__head { margin: 0 0 8px !important; }
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__head h3 {
    margin: 0 !important; padding: 0 !important; font-size: 16px !important;
    line-height: 1.35 !important; font-weight: 700 !important; color: #243653 !important;
}
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__item {
    display: grid !important; grid-template-columns: 48px minmax(0,1fr) !important;
    gap: 9px 11px !important; padding: 12px 0 !important; border: 0 !important;
    border-bottom: 1px solid #e6ebf2 !important; border-radius: 0 !important;
}
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__item:last-child { border-bottom: 0 !important; padding-bottom: 3px !important; }
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__image img {
    width: 48px !important; height: 48px !important; border-radius: 8px !important;
}
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__name {
    font-size: 12px !important; line-height: 1.4 !important; font-weight: 600 !important;
    color: #263b70 !important; -webkit-line-clamp: 2;
}
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__details { gap: 4px !important; }
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__meta { gap: 5px !important; }
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__prices { gap: 7px !important; }
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__prices del { font-size: 11px !important; }
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__prices ins { font-size: 13px !important; }
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__badge {
    font-size: 10px !important; padding: 2px 7px !important;
}
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers a.kiappz-so-summary-offers__add {
    grid-column: 2 !important; width: auto !important; min-width: 0 !important;
    height: auto !important; min-height: 0 !important; display: inline !important;
    justify-self: start !important; align-self: start !important;
    margin: -4px 0 0 !important; padding: 0 !important;
    border: 0 !important; border-radius: 0 !important;
    background: transparent !important; color: #FF940A !important;
    font-size: 12px !important; font-weight: 700 !important;
    text-decoration: underline !important; text-underline-offset: 3px !important;
    white-space: nowrap !important; line-height: 1.4 !important;
    box-shadow: none !important; transform: none !important;
}
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers a.kiappz-so-summary-offers__add:hover {
    background: transparent !important; color: #d77800 !important; transform: none !important;
}

/* Summary-only refinements: link flush right, alongside product details. */
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers .kiappz-so-cart-offers__item {
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    column-gap: 10px !important;
}
body.woocommerce-cart .woocommerce.kiappz-te-cart-grid .cart_totals .kiappz-so-summary-offers a.kiappz-so-summary-offers__add {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    text-align: right !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}
/* Offer prices in cart and checkout */

.kiappz-so-line-price {
    display: inline-flex !important;
    flex-direction: column !important;
    gap: 2px;
}

.kiappz-so-line-price del,
.kiappz-so-line-price ins,
.kiappz-so-line-price .amount {
    font: inherit !important;
    color: inherit !important;
    opacity: 1 !important;
}

.kiappz-so-line-price del {
    display: block !important;
    margin: 0 !important;
    text-decoration: line-through !important;
}

.kiappz-so-line-price ins {
    display: block !important;
    margin: 0 !important;
    text-decoration: none !important;
    background: transparent !important;
}