/* ==========================================================================
   Cart page + minicart fixes (loaded after kragozorstyle.css)
   - discount code box inside the cart summary
   - cart table header / column alignment
   - conversion-rate line sizing
   - usable mobile cart (no horizontal scrolling, products before summary)
   ========================================================================== */

/* ---------- Discount code box (cart summary) ---------- */
.cart-summary .kz-coupon{display:block;float:none;width:auto;margin:0 0 5px;padding:15px 0 18px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;background:none;}
.cart-summary .kz-coupon__title{margin:0 0 10px;font-size:15px;line-height:20px;font-weight:700;color:#000;}
.cart-summary .kz-coupon__form{margin:0;padding:0;width:100%;}
.cart-summary .kz-coupon__row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:100%;}
.cart-summary .kz-coupon__label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;}
.cart-summary .kz-coupon__input,
.cart-summary .kz-coupon__input:focus{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;min-width:0;width:auto;height:45px;margin:0;padding:0 12px;border:1px solid #c2c2c2;border-right:none;border-radius:0;background:#fff;box-shadow:none;font-size:15px;color:#000;}
.cart-summary .kz-coupon__input:focus{border-color:#31c1ff;}
.cart-summary .kz-coupon__input::-webkit-input-placeholder{font-size:13px;color:#888;}
.cart-summary .kz-coupon__input::-moz-placeholder{font-size:13px;color:#888;opacity:1;}
.cart-summary .kz-coupon__input:-ms-input-placeholder{font-size:13px;color:#888;}
.cart-summary .kz-coupon__input::placeholder{font-size:13px;color:#888;opacity:1;}
.cart-summary .kz-coupon__input.mage-error{border-color:#e02b27;}
.cart-summary .kz-coupon .kz-coupon__apply,
.cart-summary .kz-coupon .kz-coupon__apply:focus{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;min-width:0;height:45px;margin:0;padding:0 18px;border:none;border-radius:0;background:#31c1ff;box-shadow:none;color:#fff;font-size:14px;font-weight:700;line-height:45px;}
.cart-summary .kz-coupon .kz-coupon__apply:hover{background:#0176c8;}
.cart-summary .kz-coupon div.mage-error{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3;}
.cart-summary .kz-coupon__form div.mage-error{margin:6px 0 0;font-size:12px;color:#e02b27;}
.cart-summary .kz-coupon__row{-ms-flex-wrap:wrap;flex-wrap:wrap;}
.cart-summary .kz-coupon__row div.mage-error{-ms-flex-preferred-size:100%;flex-basis:100%;}

.cart-summary .kz-coupon__applied{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:10px 12px;border:1px solid #9bd3a8;background:#eaf7ee;color:#1d6b33;font-size:14px;line-height:20px;}
.cart-summary .kz-coupon__applied-text:before{content:"\2713";margin-right:6px;font-weight:700;}
.cart-summary .kz-coupon__applied strong{font-weight:700;color:#1d6b33;margin:0;font-size:14px;}
.cart-summary .kz-coupon .kz-coupon__remove,
.cart-summary .kz-coupon .kz-coupon__remove:hover,
.cart-summary .kz-coupon .kz-coupon__remove:focus{width:auto;min-width:0;height:auto;margin:0 0 0 10px;padding:0;border:none;border-radius:0;background:none;box-shadow:none;color:#0c92cc;font-size:13px;font-weight:400;line-height:20px;text-decoration:underline;}
.cart-summary .kz-coupon .kz-coupon__remove:hover{color:#0176c8;}

/* ---------- Cart summary totals ---------- */
.cart-summary .cart-totals .conversion-rate{font-size:12px;line-height:16px;font-weight:400;color:#666;}
.cart-summary .cart-totals .grand.totals td.mark[colspan]{padding-top:0;padding-bottom:12px;border-top:none;font-size:12px;line-height:16px;}
.cart-summary .cart-totals .totals.discount .discount.coupon{display:block;font-size:12px;line-height:16px;color:#666;}
.cart-summary .cart-totals .totals.discount .amount .price{color:#1d6b33;font-weight:700;white-space:nowrap;}
.cart-summary .cart-totals .totals .mark .title{cursor:default;}
.cart-summary .cart-totals .grand.totals th.mark,
.cart-summary .cart-totals .grand.totals td.amount{border-top:1px solid #ccc;}

/* ---------- Cart table (all widths) ---------- */
.checkout-cart-index .cart.table-wrapper .cart thead tr th.col span{font-size:14px;font-weight:700;color:#000;}
.checkout-cart-index .cart.table-wrapper .product-item-details .product-item-name{font-size:17px;line-height:22px;}
.checkout-cart-index .cart.table-wrapper .product-item-details .product-item-name a{color:#000;}
.checkout-cart-index .cart.table-wrapper .product-item-details .product-item-name a:hover{color:#0c92cc;text-decoration:none;}

/* ---------- Cart table (desktop) ---------- */
@media screen and (min-width: 768px){
	.checkout-cart-index #shopping-cart-table{table-layout:fixed;}
	.checkout-cart-index .cart.table-wrapper .cart thead tr th.col.item{width:auto;}
	.checkout-cart-index .cart.table-wrapper .cart thead tr th.col.price,
	.checkout-cart-index .cart.table-wrapper .cart tbody td.col.price{width:150px;text-align:right;white-space:nowrap;}
	.checkout-cart-index .cart.table-wrapper .cart thead tr th.col.qty,
	.checkout-cart-index .cart.table-wrapper .cart tbody td.col.qty{width:165px;text-align:center;}
	.checkout-cart-index .cart.table-wrapper .cart thead tr th.col.subtotal,
	.checkout-cart-index .cart.table-wrapper .cart tbody td.col.subtotal{width:170px;text-align:right;white-space:nowrap;}
	.checkout-cart-index .cart.cart_item .field.qty .control.qty{float:none;margin:0 auto;}
}
/* ---------- Tablet / mobile: products first, then the summary ---------- */
@media screen and (max-width: 900px){
	.checkout-cart-index .cart-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;}
	.checkout-cart-index .cart-container > *{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3;}
	.checkout-cart-index .cart-container > .form-cart{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;float:none;width:100%;padding-right:0;}
	.checkout-cart-index .cart-container > .cart-summary{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;float:none;width:100%;position:static;}
	.checkout-cart-index .cart-container .cart-summary .checkout-methods-items .item button.checkout{display:block;width:100%;max-width:none;}
}

/* ---------- Mobile cart items: stacked cards instead of a 767px wide scroller ---------- */
@media screen and (max-width: 767px){
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper{height:auto;overflow:visible;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table{display:block;float:none;width:100% !important;min-width:0;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table thead{display:none;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item{display:block;float:none;width:100%;position:relative;padding:15px 0 12px;border-bottom:1px solid #ccc;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item:first-of-type{border-top:1px solid #ccc;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item tr.item-info{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;float:none;width:100%;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item tr.item-info td{display:block;float:none;min-height:0;border:none;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item tr.item-info td:before{display:none;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item tr td.cart_item_col{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;width:100% !important;padding:0 0 4px;}
	.checkout-cart-index .cart.table-wrapper .product-item-photo{display:block;float:none;-webkit-box-flex:0;-ms-flex:0 0 80px;flex:0 0 80px;width:80px;max-width:80px;padding:0 15px 0 0;position:static;-webkit-box-sizing:content-box;box-sizing:content-box;}
	.checkout-cart-index .cart.table-wrapper .product-item-details{display:block;float:none;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:auto;min-width:0;padding:0;white-space:normal;}
	.checkout-cart-index .cart.table-wrapper .product-item-details .product-item-name{font-size:16px;line-height:21px;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item tr td.price{width:100% !important;padding:0 0 12px 95px;text-align:left;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item tr td.qty{width:auto !important;padding:0;text-align:left;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item tr td.qty .field.qty .label{display:none;}
	.checkout-cart-index .cart.cart_item .field.qty .control.qty{float:none;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item tr td.subtotal{width:auto !important;padding:0;text-align:right;white-space:nowrap;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item tr.item-actions{display:block;float:none;width:auto;position:absolute;top:15px;right:0;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item tr.item-actions td{display:block;float:none;width:auto !important;padding:0;border:none;}
	.checkout-cart-index #shopping-cart-table .cart_item .item-actions .actions-toolbar{float:none;width:auto;min-height:0;margin:0;padding:0;text-align:right;}
	.checkout-cart-index .cart.table-wrapper .actions-toolbar > .action-edit{display:none;}
	.checkout-cart-index .cart.table-wrapper .actions-toolbar > .action-delete{position:static;margin:0;}
	.checkout-cart-index .cart-container #form-validate .cart.table-wrapper table .cart.cart_item tr td.cart_item_col{padding-right:40px;-webkit-box-sizing:border-box;box-sizing:border-box;}
	.checkout-cart-index .cart-container .form-cart .cart.main.actions{padding:15px 0 0;text-align:center;}
	.checkout-cart-index .cart-container .form-cart .cart.main.actions .action.update{float:none;display:block;width:100%;max-width:none;margin:0;}
	.checkout-cart-index .cart-summary .kz-coupon{margin:0 15px 5px;}
	.checkout-cart-index .cart-container #form-validate{margin-bottom:25px;}
}

/* ---------- Minicart ---------- */
.minicart-wrapper .subtotal .conversion-rate{display:block;padding:0 0 12px;line-height:18px;font-size:12px;}
.minicart-wrapper .kz-minicart-coupon{margin:0 0 15px;text-align:center;}
.minicart-wrapper .kz-minicart-coupon a,
.minicart-wrapper .kz-minicart-coupon a:visited{display:block;padding:11px 10px;border:1px solid #31c1ff;color:#fff !important;font-size:14px;line-height:20px;text-decoration:none;}
.minicart-wrapper .kz-minicart-coupon a:hover{background:#31c1ff;color:#fff !important;}
