/* Shopping bag and the confirmation drawer share the storefront's calm textile palette. */
.ag-cart-page { --ag-cart-sage: #f3f6ee; --ag-cart-border: #e0e7d8; padding-bottom: 72px; }
.ag-cart-page .ag-cart-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; padding: 35px 0 32px; }
.ag-cart-page .ag-cart-heading h1 { margin: 7px 0 10px; color: #2d4534; font-size: 42px; line-height: 1.25; letter-spacing: -1.1px; }
.ag-cart-page .ag-cart-heading p { margin: 0; color: #687560; font-size: 16px; line-height: 1.75; }
.ag-cart-page .ag-cart-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; margin: 0 0 6px; padding: 0; list-style: none; color: #8a9581; font-size: 13px; }
.ag-cart-page .ag-cart-steps > * { display: inline-flex; align-items: center; gap: 8px; line-height: 1.5; }
.ag-cart-page .ag-cart-steps > * + *::before { content: ''; width: 20px; height: 1px; margin-right: 9px; background: #dfe6d7; }
.ag-cart-page .ag-cart-steps .is-current,
.ag-cart-page .ag-cart-steps [aria-current="step"] { color: #3d6542; font-weight: 700; }
.ag-cart-page .ag-cart-steps b { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #dce5d4; border-radius: 50%; font-size: 12px; line-height: 1; font-weight: 650; }
.ag-cart-page .ag-cart-steps .is-current b,
.ag-cart-page .ag-cart-steps [aria-current="step"] b { background: #3e6642; border-color: #3e6642; color: #fff; }
.ag-cart-page .ag-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.ag-cart-page .woocommerce-cart-form,
.ag-cart-page .cart-collaterals { float: none; width: auto; min-width: 0; }
.ag-cart-page .ag-cart-layout > .cart-collaterals { position: sticky; top: 205px; }
.ag-cart-page .woocommerce-cart-form { margin: 0; }
.ag-cart-page .woocommerce-cart-form table.shop_table { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; table-layout: auto; }
.ag-cart-page .woocommerce-cart-form .shop_table thead th { padding: 13px 8px; border-bottom: 1px solid var(--ag-cart-border); color: #6f7e64; font-size: 13px; font-weight: 600; }
.ag-cart-page .woocommerce-cart-form .shop_table td { padding: 24px 8px; border-bottom: 1px solid var(--ag-cart-border); background: transparent; color: #4c5f43; font-size: 15px; vertical-align: middle; }
.ag-cart-page .woocommerce-cart-form .shop_table th:first-child,
.ag-cart-page .woocommerce-cart-form .shop_table td:first-child { padding-left: 0; }
.ag-cart-page .woocommerce-cart-form .shop_table th:last-child,
.ag-cart-page .woocommerce-cart-form .shop_table td:last-child { padding-right: 0; }
.ag-cart-page .woocommerce-cart-form .product-thumbnail { width: 120px; }
.ag-cart-page .woocommerce-cart-form .product-thumbnail a { display: block; width: 104px; height: 104px; border: 1px solid #e8ece1; border-radius: 12px; overflow: hidden; background: #f3f5ee; }
.ag-cart-page .woocommerce-cart-form .product-thumbnail img { display: block; width: 104px; height: 104px; object-fit: contain; border-radius: 0; }
.ag-cart-page .woocommerce-cart-form .product-name { min-width: 170px; }
.ag-cart-page .woocommerce-cart-form .product-name > a:not(.ag-cart-brand) { display: block; color: #374f30; font-size: 15px; line-height: 1.6; font-weight: 650; overflow-wrap: anywhere; }
.ag-cart-page .woocommerce-cart-form .product-name > a:hover { color: #2e6438; text-decoration: underline; text-underline-offset: 3px; }
.ag-cart-page .ag-cart-brand { display: block; margin-bottom: 4px; color: #707d66; font-size: 13px; line-height: 1.5; font-weight: 500; }
.ag-cart-page .ag-cart-item-meta,
.ag-cart-page .ag-cart-item-details,
.ag-cart-page .product-name dl.variation { margin: 7px 0; color: #707f64; font-size: 13px; line-height: 1.7; }
.ag-cart-page .ag-cart-item-meta dl,
.ag-cart-page .ag-cart-item-details dl { margin: 0; }
.ag-cart-page .ag-cart-item-meta dt,
.ag-cart-page .ag-cart-item-details dt,
.ag-cart-page .product-name dl.variation dt { float: left; clear: left; margin: 0 5px 0 0; color: #7c8871; font-weight: 500; }
.ag-cart-page .ag-cart-item-meta dd,
.ag-cart-page .ag-cart-item-details dd,
.ag-cart-page .product-name dl.variation dd { margin: 0; color: #64765b; overflow-wrap: anywhere; }
.ag-cart-page .ag-cart-item-meta p,
.ag-cart-page .ag-cart-item-details p,
.ag-cart-page .product-name dl.variation p { margin: 0; }
.ag-cart-page .ag-cart-stock { display: inline-flex; align-items: center; gap: 5px; color: #5e7c4c; font-size: 13px; line-height: 1.6; }
.ag-cart-page .ag-cart-stock svg { width: 14px; height: 14px; }
.ag-cart-page .woocommerce-cart-form .product-price { width: 99px; }
.ag-cart-page .woocommerce-cart-form .product-quantity { width: 112px; }
.ag-cart-page .woocommerce-cart-form .product-subtotal { width: 111px; text-align: right; font-weight: 700; }
.ag-cart-page .woocommerce-cart-form .product-remove { width: 44px; text-align: right; }
.ag-cart-page .woocommerce-cart-form .woocommerce-Price-amount { display: inline-block; white-space: nowrap; }
.ag-cart-page .woocommerce-cart-form .woocommerce-Price-currencySymbol { font-size: .85em; }
.ag-cart-page .product-remove a.remove { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; border-radius: 50%; color: #97a38c; font-size: 25px; line-height: 1; font-weight: 400; }
.ag-cart-page .product-remove a.remove:hover { color: #7c5044; background: #f7f0e9; border-color: #eaddd1; }
.ag-cart-page .product-remove a.remove svg { width: 17px; height: 17px; }

/* Quantity changes remain WooCommerce inputs, with comfortable incremental controls. */
.ag-cart-page .quantity { display: inline-flex; width: auto; margin: 0; }
.ag-cart-page .ag-cart-quantity-stepper { display: inline-flex; align-items: center; width: 104px; min-height: 44px; border: 1px solid #dce4d3; border-radius: 8px; background: #fff; overflow: hidden; }
.ag-cart-page .ag-cart-quantity-stepper button { display: grid; place-items: center; width: 31px; height: 42px; padding: 0; border: 0; background: transparent; color: #78906a; font-size: 19px; line-height: 1; }
.ag-cart-page .ag-cart-quantity-stepper button:hover { color: #436c39; background: #f0f5e8; }
.ag-cart-page .ag-cart-quantity-stepper button svg { width: 14px; height: 14px; }
.ag-cart-page .quantity input.input-text.qty { width: 40px; height: 42px; min-width: 0; padding: 5px 0; border: 0; border-radius: 0; background: transparent; color: #4e6843; font-size: 15px; font-weight: 650; text-align: center; appearance: textfield; }
.ag-cart-page .quantity input.qty::-webkit-inner-spin-button,
.ag-cart-page .quantity input.qty::-webkit-outer-spin-button { appearance: none; margin: 0; }
.ag-cart-page .woocommerce-cart-form .actions { padding: 22px 0; border-bottom: 0; }
.ag-cart-page .ag-cart-action-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.ag-cart-page .ag-cart-coupon { min-width: 0; max-width: 100%; }
.ag-cart-page .ag-cart-coupon summary { display: flex; align-items: center; gap: 8px; min-height: 44px; color: #70865f; font-size: 14px; line-height: 1.6; font-weight: 600; cursor: pointer; list-style: none; }
.ag-cart-page .ag-cart-coupon summary::-webkit-details-marker { display: none; }
.ag-cart-page .ag-cart-coupon summary::after { content: ''; width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid #829575; border-bottom: 1.5px solid #829575; transform: rotate(45deg); transition: transform .18s; }
.ag-cart-page .ag-cart-coupon[open] summary::after { transform: rotate(225deg); }
.ag-cart-page .coupon { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%; margin-top: 8px; }
.ag-cart-page .coupon label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ag-cart-page .coupon .coupon-error-notice { flex: 0 0 100%; margin: 4px 0; color: #8a5142; font-size: 14px; line-height: 1.7; }
.ag-cart-page .coupon input.has-error { border-color: #be8877; }
.ag-cart-page .coupon .input-text { width: 170px; min-width: 0; min-height: 44px; padding: 10px 12px; border-color: #dce4d2; border-radius: 8px; font-size: 16px; }
.ag-cart-page .coupon .button,
.ag-cart-page button[name="update_cart"] { min-height: 44px; padding: 10px 16px; border: 1px solid #d5e0cb; border-radius: 8px; background: #edf3e5; color: #5e7b4e; font-size: 13px; line-height: 1.6; }
.ag-cart-page .coupon .button:hover,
.ag-cart-page button[name="update_cart"]:hover { background: #e5eedb; color: #355d2e; }
.ag-cart-page button[name="update_cart"] { float: none; margin: 0; }
.ag-cart-page button[name="update_cart"]:disabled { opacity: .55; }
.ag-cart-page .ag-cart-update-status { display: block; flex: 0 0 100%; min-height: 20px; color: #718466; font-size: 12px; }
.ag-cart-page .ag-cart-return-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; color: #67835a; font-size: 14px; font-weight: 600; }
.ag-cart-page .ag-cart-return-link svg { width: 17px; height: 17px; }
.ag-cart-page .ag-cart-return-link:hover { color: #3d6435; text-decoration: underline; text-underline-offset: 4px; }
.ag-cart-page .ag-cart-assurance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.ag-cart-page .ag-cart-assurance > * { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 17px 14px; border: 1px solid #e5eadd; border-radius: 11px; background: #f7f9f2; }
.ag-cart-page .ag-cart-assurance svg { width: 21px; height: 21px; margin-top: 3px; color: #7b9667; }
.ag-cart-page .ag-cart-assurance strong { display: block; color: #5e754d; font-size: 13px; line-height: 1.6; font-weight: 650; }
.ag-cart-page .ag-cart-assurance small { display: block; margin-top: 3px; color: #748466; font-size: 13px; line-height: 1.65; }

/* The order summary keeps the selected free delivery service easy to review. */
.ag-cart-page .cart_totals { position: static; float: none; width: auto; max-width: none; margin: 0; padding: 27px; border: 1px solid #e0e7d7; border-radius: 16px; background: #f3f6ee; }
.ag-cart-page .cart_totals > h2 { margin: 0 0 23px; color: #465f38; font-size: 22px; line-height: 1.4; letter-spacing: -.4px; font-weight: 650; }
.ag-cart-page .cart_totals table.shop_table { width: 100%; margin: 0; border: 0; border-collapse: collapse; background: transparent; }
.ag-cart-page .cart_totals .shop_table th,
.ag-cart-page .cart_totals .shop_table td { padding: 13px 0; border-bottom: 1px solid #dfe7d5; background: transparent; color: #657c56; font-size: 14px; line-height: 1.7; }
.ag-cart-page .cart_totals .shop_table th { width: 112px; font-weight: 500; text-align: left; }
.ag-cart-page .cart_totals .shop_table td { text-align: right; }
.ag-cart-page .cart_totals .cart-subtotal td { color: #4d6940; font-weight: 650; }
.ag-cart-page .cart_totals .order-total th { padding-top: 21px; border-bottom: 0; color: #465f39; font-size: 16px; font-weight: 650; }
.ag-cart-page .cart_totals .order-total td { padding-top: 21px; border-bottom: 0; color: #3d5b2f; font-size: 23px; font-weight: 750; line-height: 1.4; }
.ag-cart-page .cart_totals .order-total small { display: block; margin-top: 4px; color: #88977b; font-size: 11px; line-height: 1.7; font-weight: 400; }
.ag-cart-page .cart_totals .woocommerce-Price-amount { display: inline-block; white-space: nowrap; }
.ag-cart-page .cart_totals .woocommerce-Price-currencySymbol { font-size: .8em; }
.ag-cart-page .cart_totals .shipping th { vertical-align: top; }
.ag-cart-page .cart_totals .shipping td { text-align: left; }
.ag-cart-page .cart_totals .ag-shipping-heading { margin-bottom: 11px; color: #637c53; font-size: 14px; }
.ag-cart-page .cart_totals .ag-shipping-heading small { color: #627f4f; font-size: 14px; }
.ag-cart-page .ag-cart-shipping-choice { max-width: 100%; margin: 0; }
.ag-cart-page .ag-cart-shipping-choice summary { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 44px; padding: 9px 10px; border: 1px solid #d6e0cb; border-radius: 8px; background: #fff; color: #607b50; font-size: 13px; line-height: 1.6; font-weight: 600; list-style: none; cursor: pointer; }
.ag-cart-page .ag-cart-shipping-choice summary::-webkit-details-marker { display: none; }
.ag-cart-page .ag-cart-shipping-choice summary::after { content: ''; flex-shrink: 0; width: 7px; height: 7px; margin-right: 3px; border-right: 1.5px solid #809570; border-bottom: 1.5px solid #809570; transform: rotate(45deg); }
.ag-cart-page .ag-cart-shipping-choice[open] summary::after { transform: rotate(225deg); }
.ag-cart-page ul.woocommerce-shipping-methods,
.ag-cart-page .ag-shipping-options { margin: 9px 0 0; padding: 0; list-style: none; }
.ag-cart-page ul.woocommerce-shipping-methods li,
.ag-cart-page .ag-shipping-options li { display: flex; align-items: flex-start; gap: 7px; margin: 8px 0; padding: 3px 0; font-size: 13px; line-height: 1.7; }
.ag-cart-page ul.woocommerce-shipping-methods li label,
.ag-cart-page .ag-shipping-options li label { min-width: 0; color: #6d855b; font-size: 13px; line-height: 1.7; font-weight: 500; }
.ag-cart-page .cart_totals .ag-shipping-options ul.woocommerce-shipping-methods li { padding: 9px 10px; border-color: #dfe8d5; border-radius: 8px; background: #fbfcf8; }
.ag-cart-page .cart_totals .ag-shipping-options ul.woocommerce-shipping-methods li:has(input:checked) { border-color: #a0bb8b; background: #edf5e5; }
.ag-cart-page ul.woocommerce-shipping-methods li input,
.ag-cart-page .ag-shipping-options li input { width: 15px; height: 15px; flex-shrink: 0; margin: 4px 0 0; accent-color: #64824e; }
.ag-cart-page .cart_totals .woocommerce-shipping-destination { margin: 10px 0 0; color: #738566; font-size: 13px; line-height: 1.65; }
.ag-cart-page .cart_totals .shipping-calculator-button { display: inline-block; margin-top: 8px; color: #6e8a5b; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.ag-cart-page .cart_totals .shipping-calculator-form { margin-top: 16px; }
.ag-cart-page .cart_totals .shipping-calculator-form p { margin-bottom: 10px; }
.ag-cart-page .cart_totals .shipping-calculator-form input,
.ag-cart-page .cart_totals .shipping-calculator-form select { width: 100%; max-width: 100%; min-height: 44px; border: 1px solid #d7e1cc; border-radius: 8px; padding: 9px; font-size: 16px; }
.ag-cart-page .wc-proceed-to-checkout { padding: 0; }
.ag-cart-page .checkout-button.button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 58px; margin: 23px 0 0; padding: 15px 16px; border-radius: 10px; background: #2b5a42; color: #fff; font-size: 16px; line-height: 1.6; font-weight: 700; text-align: center; }
.ag-cart-page .checkout-button.button:hover { background: #204a35; }
.ag-cart-page .checkout-button svg { width: 20px; height: 20px; }
.ag-cart-page .ag-cart-payment-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 14px 0 0; color: #718363; font-size: 13px; text-align: center; }
.ag-cart-page .ag-cart-payment-note svg { width: 16px; height: 16px; }
.ag-cart-page .woocommerce-message,
.ag-cart-page .woocommerce-info,
.ag-cart-page .woocommerce-error { margin: 0 0 22px; padding: 16px 19px; border: 1px solid #dbe7d1; border-radius: 11px; background: #f0f6e9; color: #617b50; font-size: 14px; line-height: 1.75; }
.ag-cart-page .woocommerce-error { border-color: #e9dacc; background: #faf3ed; color: #87644c; }
.ag-cart-page .woocommerce-message a:not(.button),
.ag-cart-page .woocommerce-info a:not(.button),
.ag-cart-page .woocommerce-error a:not(.button) { color: #4c7440; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ag-cart-page .woocommerce-message .button { float: none; margin: 0 0 0 12px; padding: 7px 12px; font-size: 12px; background: #648657; }
.ag-cart-page .cross-sells { float: none; width: 100%; margin-top: 48px; }
.ag-cart-page .cross-sells > h2 { margin: 0 0 25px; color: #405f32; font-size: 27px; letter-spacing: -.5px; }
.ag-cart-page .cross-sells .ag-card { display: block; }

/* A useful empty bag rather than a bare system message. */
.ag-cart-page .ag-cart-empty { max-width: 720px; margin: 20px auto 46px; padding: 50px 28px; border: 1px solid #e4e9dd; border-radius: 18px; background: #f7f9f2; text-align: center; }
.ag-cart-page .ag-cart-empty-icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 23px; border-radius: 50%; background: #eaf1e0; color: #7d9a68; }
.ag-cart-page .ag-cart-empty-icon svg { width: 35px; height: 35px; }
.ag-cart-page .ag-cart-empty h2 { margin: 0 0 14px; color: #4a653b; font-size: 29px; letter-spacing: -.6px; }
.ag-cart-page .ag-cart-empty p { max-width: 430px; margin: 0 auto 24px; color: #839278; font-size: 16px; line-height: 1.8; }
.ag-cart-page .ag-cart-empty .button { min-height: 52px; padding: 13px 23px; border-radius: 9px; background: #315f42; font-size: 15px; }
.ag-cart-page .ag-cart-empty-suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.ag-cart-page .ag-cart-empty-suggestions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 15px; border: 1px solid #d9e3ce; border-radius: 24px; background: #fff; color: #6b8757; font-size: 13px; }
.ag-cart-page .ag-cart-empty-suggestions a:hover { border-color: #9ab484; background: #f0f6e7; }

/* Confirmation uses a native modal dialog, so the page beneath it stays inert. */
html.ag-added-open { overflow: hidden; }
.ag-cart-feedback { display: none !important; }
.summary form.cart a.added_to_cart.wc-forward,
.ag-card a.added_to_cart.wc-forward { display: none !important; }
.ag-cart-coupon summary svg { width: 18px; height: 18px; flex-shrink: 0; }
.ag-added-actions svg { width: 20px; height: 20px; flex-shrink: 0; }
.ag-added-dialog {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(480px, 92vw);
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 18px 0 0 18px;
    background: #fff;
    color: #4b6041;
    box-shadow: -16px 0 60px #1e352322;
    overflow: hidden;
}
.ag-added-dialog[open] { display: flex; flex-direction: column; animation: ag-added-slide .24s ease-out both; }
.ag-added-dialog::backdrop { background: #1c302c60; backdrop-filter: blur(3px); }
.ag-added-header { display: flex; align-items: center; gap: 13px; padding: 26px 24px; border-bottom: 1px solid #e5eadd; background: #f7f9f2; }
.ag-added-header > svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: #e6f0db; color: #729559; }
.ag-added-title { flex: 1; min-width: 0; }
.ag-added-title h2 { margin: 0 0 4px; color: #486337; font-size: 21px; line-height: 1.4; letter-spacing: -.4px; font-weight: 650; }
.ag-added-title small { display: block; color: #748568; font-size: 13px; line-height: 1.6; }
.ag-added-header [data-added-close] { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #dfe7d6; border-radius: 50%; background: #fff; color: #819371; }
.ag-added-header [data-added-close]:hover { background: #edf4e4; color: #4d7040; }
.ag-added-header [data-added-close] svg { width: 18px; height: 18px; }
.ag-added-content { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 24px max(28px, env(safe-area-inset-bottom)); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cedfc0 transparent; }
.ag-added-product { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 17px; align-items: start; }
.ag-added-product > img { display: block; width: 106px; height: 106px; border: 1px solid #e8eddf; border-radius: 12px; background: #f4f6ef; object-fit: contain; }
.ag-added-product-info { min-width: 0; }
.ag-added-product-info > small { display: block; margin: 0 0 5px; color: #7a8870; font-size: 13px; line-height: 1.5; }
.ag-added-product-info h3 { margin: 0 0 9px; color: #4c683c; font-size: 16px; line-height: 1.6; font-weight: 650; overflow-wrap: anywhere; }
.ag-added-attributes { margin: 0; color: #728662; font-size: 13px; line-height: 1.75; }
.ag-added-attributes dl { margin: 0; }
.ag-added-attributes dt { float: left; clear: left; margin: 0 5px 0 0; color: #8c9980; font-weight: 500; }
.ag-added-attributes dd { margin: 0; color: #7c906b; overflow-wrap: anywhere; }
.ag-added-attributes p { margin: 0; }
.ag-added-line { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-top: 21px; padding: 17px 0; border-top: 1px solid #e8eddf; border-bottom: 1px solid #e8eddf; color: #748865; font-size: 14px; line-height: 1.7; }
.ag-added-line strong,
.ag-added-line .woocommerce-Price-amount { color: #60824a; font-size: 16px; font-weight: 700; }
.ag-added-line .woocommerce-Price-amount { display: inline-block; white-space: nowrap; }
.ag-added-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; padding: 19px 18px; border: 1px solid #dfe8d6; border-radius: 11px; background: #f3f7ec; color: #7e936d; font-size: 14px; }
.ag-added-summary strong { color: #608346; font-size: 21px; font-weight: 750; }
.ag-added-summary small { color: #7b906c; font-size: 13px; }
.ag-added-summary .woocommerce-Price-amount { display: inline-block; white-space: nowrap; }
.ag-added-delivery { display: flex; align-items: center; gap: 10px; margin: 18px 0 24px; color: #7f9a68; font-size: 13px; line-height: 1.7; }
.ag-added-delivery > svg { width: 22px; height: 22px; color: #8fa877; }
.ag-added-actions { display: flex; flex-direction: column; gap: 11px; }
.ag-added-actions a,
.ag-added-actions [data-added-continue] { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 13px 18px; border: 1px solid #d6e3c9; border-radius: 10px; background: #fff; color: #6c8b55; font-size: 15px; line-height: 1.65; font-weight: 650; text-align: center; }
.ag-added-actions .ag-added-checkout { border-color: #3c6847; background: #3c6847; color: #fff; }
.ag-added-actions .ag-added-checkout:hover { border-color: #2b5539; background: #2b5539; }
.ag-added-actions .ag-added-cart { background: #f1f6e9; }
.ag-added-actions .ag-added-cart:hover { border-color: #a6bf90; background: #eaf3de; }
.ag-added-actions [data-added-continue] { min-height: 44px; margin-top: 0; border-color: transparent; color: #718a5e; font-size: 14px; }
.ag-added-actions [data-added-continue]:hover { color: #5c804a; text-decoration: underline; text-underline-offset: 4px; }
.ag-added-actions svg { width: 20px; height: 20px; }
.ag-product-page .single_add_to_cart_button.is-loading,
.ag-purchase-bar [data-purchase-action].is-loading,
.ag-cart-page button.is-loading { position: relative; cursor: wait; opacity: .75; }
.ag-product-page .single_add_to_cart_button.is-loading::after,
.ag-purchase-bar [data-purchase-action].is-loading::after,
.ag-cart-page button.is-loading::after { content: ''; display: inline-block; width: 17px; height: 17px; flex-shrink: 0; margin-left: 3px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ag-cart-spin .7s linear infinite; }
.ag-card .ajax_add_to_cart.is-loading { position: relative; cursor: wait; }
.ag-card .ajax_add_to_cart.is-loading svg { visibility: hidden; }
.ag-card .ajax_add_to_cart.is-loading::after { content: ''; position: absolute; width: 17px; height: 17px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ag-cart-spin .7s linear infinite; }
.ag-add-error { margin: 16px 0 0; padding: 13px 16px; border: 1px solid #e4d7c9; border-radius: 9px; background: #faf4ed; color: #967555; font-size: 14px; line-height: 1.7; }
.ag-add-error[hidden] { display: none !important; }
.ag-add-error a { color: #886843; text-decoration: underline; text-underline-offset: 3px; }
@keyframes ag-added-slide { from { opacity: .6; transform: translateX(32px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ag-cart-spin { to { transform: rotate(360deg); } }

@media (min-width: 781px) and (max-width: 1100px) {
    .ag-cart-page .ag-cart-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .ag-cart-page .ag-cart-layout > .cart-collaterals { position: static; }
    .ag-cart-page .cart_totals { position: static; max-width: 560px; margin-left: auto; }
    .ag-cart-page .ag-cart-heading h1 { font-size: 37px; }
    .ag-cart-page .ag-cart-heading { padding: 30px 0; }
    .ag-cart-page .ag-cart-steps { gap: 12px; }
}

@media (max-width: 780px) {
    .ag-cart-page { padding-bottom: 46px; }
    .ag-cart-page .ag-cart-heading { display: block; padding: 25px 0 23px; }
    .ag-cart-page .ag-cart-heading h1 { font-size: 34px; margin-bottom: 9px; letter-spacing: -.8px; }
    .ag-cart-page .ag-cart-heading p { font-size: 15px; }
    .ag-cart-page .ag-cart-steps { margin: 20px 0 0; gap: 11px; font-size: 11px; }
    .ag-cart-page .ag-cart-steps > * { gap: 5px; }
    .ag-cart-page .ag-cart-steps > * + *::before { width: 10px; margin-right: 3px; }
    .ag-cart-page .ag-cart-steps b { width: 21px; height: 21px; font-size: 10px; }
    .ag-cart-page .ag-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ag-cart-page .ag-cart-layout > .cart-collaterals { position: static; }
    .ag-cart-page .woocommerce-cart-form table.shop_table,
    .ag-cart-page .woocommerce-cart-form .shop_table tbody { display: block; width: 100%; }
    .ag-cart-page .woocommerce-cart-form .shop_table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .ag-cart-page .woocommerce-cart-form .cart_item { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px 14px; margin-bottom: 12px; padding: 18px 15px 13px; border: 1px solid #e1e8d9; border-radius: 13px; background: #fff; }
    .ag-cart-page .woocommerce-cart-form .cart_item td { display: block; width: auto; min-width: 0; padding: 0; border: 0; font-size: 14px; background: transparent; }
    .ag-cart-page .woocommerce-cart-form .cart_item td:first-child,
    .ag-cart-page .woocommerce-cart-form .cart_item td:last-child { padding: 0; }
    .ag-cart-page .woocommerce-cart-form .cart_item td::before { float: none; }
    .ag-cart-page .woocommerce-cart-form .cart_item .product-thumbnail { display: block; grid-column: 1; grid-row: 1 / 4; width: 88px; margin-top: 3px; }
    .ag-cart-page .woocommerce-cart-form .product-thumbnail a,
    .ag-cart-page .woocommerce-cart-form .product-thumbnail img { width: 88px; height: 88px; }
    .ag-cart-page .woocommerce-cart-form .product-thumbnail a { border-radius: 10px; }
    .ag-cart-page .woocommerce-cart-form .cart_item .product-name { grid-column: 2; grid-row: 1; padding-right: 33px; }
    .ag-cart-page .woocommerce-cart-form .product-name > a:not(.ag-cart-brand) { font-size: 14px; line-height: 1.65; }
    .ag-cart-page .ag-cart-brand { font-size: 13px; margin-bottom: 3px; }
    .ag-cart-page .ag-cart-item-meta,
    .ag-cart-page .ag-cart-item-details,
    .ag-cart-page .product-name dl.variation { font-size: 12px; margin: 6px 0; }
    .ag-cart-page .ag-cart-stock { font-size: 13px; }
    .ag-cart-page .woocommerce-cart-form .cart_item .product-price { grid-column: 2; grid-row: 2; font-size: 13px; color: #8f9c83; }
    .ag-cart-page .woocommerce-cart-form .cart_item .product-price::before { content: 'Egységár: '; color: #a0ad93; font-weight: 400; }
    .ag-cart-page .woocommerce-cart-form .cart_item .product-quantity { grid-column: 2; grid-row: 3; }
    .ag-cart-page .woocommerce-cart-form .cart_item .product-subtotal { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; grid-row: 4; gap: 12px; margin-top: 6px; padding-top: 11px; border-top: 1px solid #e8eddf; text-align: right; color: #6c8b53; font-size: 16px; }
    .ag-cart-page .woocommerce-cart-form .cart_item .product-subtotal::before { content: 'Összesen'; color: #9aa98b; font-size: 12px; font-weight: 500; }
    .ag-cart-page .woocommerce-cart-form .cart_item .product-remove { position: absolute; top: 5px; right: 3px; width: 44px; height: 44px; }
    .ag-cart-page .product-remove a.remove { width: 44px; height: 44px; font-size: 23px; }
    .ag-cart-page .woocommerce-cart-form .shop_table tbody > tr:not(.cart_item) { display: block; }
    .ag-cart-page .woocommerce-cart-form .shop_table .actions { display: block; width: 100%; padding: 11px 0 6px; }
    .ag-cart-page .ag-cart-action-row { gap: 10px; align-items: center; }
    .ag-cart-page .ag-cart-coupon summary { font-size: 13px; }
    .ag-cart-page .coupon { margin: 7px 0 6px; gap: 7px; }
    .ag-cart-page .coupon .input-text { width: 155px; min-width: 0; font-size: 16px; }
    .ag-cart-page .coupon .button { flex: 0 0 auto; padding-inline: 12px; font-size: 12px; }
    .ag-cart-page button[name="update_cart"] { width: auto; padding-inline: 13px; font-size: 12px; }
    .ag-cart-page .ag-cart-return-link { margin-top: 5px; font-size: 13px; }
    .ag-cart-page .ag-cart-assurance { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 20px; }
    .ag-cart-page .ag-cart-assurance > * { align-items: center; gap: 12px; padding: 13px 15px; }
    .ag-cart-page .ag-cart-assurance strong { font-size: 13px; }
    .ag-cart-page .ag-cart-assurance small { margin-top: 1px; font-size: 13px; }
    .ag-cart-page .cart_totals { position: static; margin: 0; padding: 22px 19px; border-radius: 13px; }
    .ag-cart-page .cart_totals > h2 { margin-bottom: 15px; font-size: 21px; }
    .ag-cart-page .cart_totals .shop_table th,
    .ag-cart-page .cart_totals .shop_table td { font-size: 14px; padding: 12px 0; }
    .ag-cart-page .cart_totals .shop_table th { width: 100px; }
    .ag-cart-page .cart_totals .order-total th { font-size: 15px; padding-top: 19px; }
    .ag-cart-page .cart_totals .order-total td { font-size: 22px; padding-top: 19px; }
    .ag-cart-page .checkout-button.button { min-height: 56px; margin-top: 19px; font-size: 16px; }
    .ag-cart-page .cart_totals .ag-cart-shipping-choice summary,
    .ag-cart-page .cart_totals .ag-shipping-options li label,
    .ag-cart-page .cart_totals ul.woocommerce-shipping-methods li label { font-size: 13px; }
    .ag-cart-page .woocommerce-message,
    .ag-cart-page .woocommerce-info,
    .ag-cart-page .woocommerce-error { padding: 13px 15px; margin-bottom: 17px; font-size: 13px; }
    .ag-cart-page .woocommerce-message .button { margin-left: 7px; font-size: 11px; }
    .ag-cart-page .cross-sells { margin-top: 35px; }
    .ag-cart-page .cross-sells > h2 { font-size: 24px; margin-bottom: 21px; }
    .ag-cart-page .ag-cart-empty { margin: 8px auto 30px; padding: 37px 20px; border-radius: 14px; }
    .ag-cart-page .ag-cart-empty-icon { width: 73px; height: 73px; margin-bottom: 21px; }
    .ag-cart-page .ag-cart-empty-icon svg { width: 31px; height: 31px; }
    .ag-cart-page .ag-cart-empty h2 { font-size: 26px; }
    .ag-cart-page .ag-cart-empty p { font-size: 15px; }
    .ag-cart-page .ag-cart-empty-suggestions { gap: 7px; }
    .ag-cart-page .ag-cart-empty-suggestions a { padding-inline: 13px; font-size: 12px; }
    .ag-added-dialog { width: min(440px, 94vw); border-radius: 14px 0 0 14px; }
    .ag-added-header { gap: 10px; padding: 21px 17px; }
    .ag-added-title h2 { font-size: 19px; }
    .ag-added-title small { font-size: 13px; }
    .ag-added-header > svg { width: 28px; height: 28px; }
    .ag-added-content { padding: 23px 17px max(25px, env(safe-area-inset-bottom)); }
    .ag-added-product { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
    .ag-added-product > img { width: 88px; height: 88px; border-radius: 10px; }
    .ag-added-product-info h3 { font-size: 15px; }
    .ag-added-product-info > small,
    .ag-added-attributes { font-size: 13px; }
    .ag-added-line { font-size: 13px; }
    .ag-added-summary { gap: 7px 10px; padding: 16px 14px; font-size: 13px; }
    .ag-added-summary strong { font-size: 20px; }
    .ag-added-delivery { font-size: 13px; }
    .ag-added-actions a { min-height: 52px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .ag-added-dialog[open],
    .ag-product-page .single_add_to_cart_button.is-loading::after,
    .ag-purchase-bar [data-purchase-action].is-loading::after,
    .ag-cart-page button.is-loading::after,
    .ag-card .ajax_add_to_cart.is-loading::after { animation: none; }
    .ag-cart-page .ag-cart-coupon summary::after { transition: none; }
}
