

/* PRESI CLASSIC CART CHECKOUT START */

/*
 * Consistent horizontal spacing for the server-rendered WooCommerce
 * Cart and Checkout pages.
 */
body.woocommerce-cart .inside-article,
body.woocommerce-checkout .inside-article {
    padding-right: 24px;
    padding-left: 24px;
}

@media (max-width: 768px) {
    body.woocommerce-cart .inside-article,
    body.woocommerce-checkout .inside-article {
        padding-right: 16px;
        padding-left: 16px;
    }
}

/* PRESI CLASSIC CART CHECKOUT END */


/* PRESI CLASSIC CART TRASH ICON START */

/*
 * Replace WooCommerce's visual × with a lightweight inline SVG trash
 * icon. The original accessible link, nonce and aria-label remain intact.
 */
body.woocommerce-cart
.woocommerce-cart-form
.product-remove a.remove {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 2px;
    box-shadow: none;
}

body.woocommerce-cart
.woocommerce-cart-form
.product-remove a.remove::before {
    width: 18px;
    height: 18px;
    content: "";
    background-color: #111;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l1 2h4v2H4V5h4l1-2Zm-3 6h12l-1 12H7L6 9Zm3 2v8h2v-8H9Zm4 0v8h2v-8h-2Z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l1 2h4v2H4V5h4l1-2Zm-3 6h12l-1 12H7L6 9Zm3 2v8h2v-8H9Zm4 0v8h2v-8h-2Z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

body.woocommerce-cart
.woocommerce-cart-form
.product-remove a.remove:hover,
body.woocommerce-cart
.woocommerce-cart-form
.product-remove a.remove:focus-visible {
    background-color: #f1f1f1;
}

body.woocommerce-cart
.woocommerce-cart-form
.product-remove a.remove:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* PRESI CLASSIC CART TRASH ICON END */


/* PRESI CANONICAL CART TOTALS START */

/*
 * Center only the Cart Totals section.
 * The products table and cart actions retain their native layout.
 */
body.woocommerce-cart
.cart-collaterals {
    clear: both;
    width: 100%;
}

body.woocommerce-cart
.cart-collaterals .cart_totals {
    float: none;
    width: min(100%, 660px);
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

body.woocommerce-cart
.cart-collaterals .cart_totals h2 {
    text-align: center;
}

body.woocommerce-cart
.cart-collaterals
.cart_totals table {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

body.woocommerce-cart
.cart-collaterals
.cart_totals table th,
body.woocommerce-cart
.cart-collaterals
.cart_totals table td {
    text-align: center;
    vertical-align: middle;
}

body.woocommerce-cart
.cart-collaterals
.wc-proceed-to-checkout {
    text-align: center;
}

@media (max-width: 768px) {
    body.woocommerce-cart
    .cart-collaterals .cart_totals {
        width: 100%;
    }
}

/* PRESI CANONICAL CART TOTALS END */


/* PRESI MOBILE CART PRODUCT START */

/* Slightly larger product thumbnail on desktop. */
@media (min-width: 769px) {
    body.woocommerce-cart
    .woocommerce-cart-form
    table.cart .product-thumbnail {
        width: 110px;
        text-align: center;
    }

    body.woocommerce-cart
    .woocommerce-cart-form
    table.cart .product-thumbnail img {
        display: block;
        width: 82px;
        max-width: 82px;
        height: auto;
        margin: 0 auto;
        border-radius: 2px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    /* Hide the remove/trash column only on mobile. */
    body.woocommerce-cart
    .woocommerce-cart-form
    table.cart .product-remove {
        display: none !important;
    }

    /*
     * Place the thumbnail on its own row immediately before the
     * product title.
     */
    body.woocommerce-cart
    .woocommerce-cart-form
    table.cart .product-thumbnail {
        display: block !important;
        width: 100% !important;
        padding: 10px 0 4px;
        text-align: center !important;
    }

    body.woocommerce-cart
    .woocommerce-cart-form
    table.cart .product-thumbnail::before {
        display: none !important;
        content: none;
    }

    body.woocommerce-cart
    .woocommerce-cart-form
    table.cart .product-thumbnail a {
        display: inline-block;
        width: auto;
        margin: 0 auto;
    }

    body.woocommerce-cart
    .woocommerce-cart-form
    table.cart .product-thumbnail img {
        display: block;
        width: 68px !important;
        max-width: 68px !important;
        height: auto;
        margin: 0 auto;
        border-radius: 2px;
        object-fit: cover;
    }

    /*
     * Product title directly below the thumbnail.
     * Remove WooCommerce's redundant “Προϊόν” responsive label.
     */
    body.woocommerce-cart
    .woocommerce-cart-form
    table.cart .product-name {
        display: block !important;
        width: 100% !important;
        padding-top: 4px;
        text-align: center !important;
    }

    body.woocommerce-cart
    .woocommerce-cart-form
    table.cart .product-name::before {
        display: none !important;
        content: none;
    }

    body.woocommerce-cart
    .woocommerce-cart-form
    table.cart .product-name a {
        display: inline-block;
        margin: 0 auto;
    }
}

/* PRESI MOBILE CART PRODUCT END */

/* PRESI CART CHECKOUT ICON START */

/*
 * Lightweight trust-shield icon for the checkout CTA.
 * Inline CSS mask: no image file and no external request.
 */
body.woocommerce-cart
.wc-proceed-to-checkout
.checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

body.woocommerce-cart
.wc-proceed-to-checkout
.checkout-button::before {
    display: inline-block;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    content: "";
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 5 6v5c0 4.7 2.9 8.1 7 10 4.1-1.9 7-5.3 7-10V6l-7-3Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m9 12 2 2 4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 5 6v5c0 4.7 2.9 8.1 7 10 4.1-1.9 7-5.3 7-10V6l-7-3Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m9 12 2 2 4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

/* PRESI CART CHECKOUT ICON END */

/* PRESI CART SHIPPING DESTINATION START */

/*
 * Hide only the visual “Shipping to…” destination message.
 * Shipping calculations and selected shipping methods remain intact.
 */
body.woocommerce-cart
.woocommerce-shipping-destination {
    display: none;
}

/* PRESI CART SHIPPING DESTINATION END */

/* PRESI CHECKOUT ORDER UX CSS START */

/* Product thumbnail inside the classic checkout order summary. */
body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.product-name
.presi-checkout-product-thumbnail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    margin-right: 10px;
    vertical-align: middle;
}

body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.presi-checkout-product-image {
    display: block;
    width: 58px;
    max-width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 2px;
    object-fit: cover;
}

body.woocommerce-checkout
.woocommerce-checkout-review-order-table
.presi-checkout-product-title {
    display: inline;
    vertical-align: middle;
}

/*
 * Trust shield for the final order CTA.
 * Inline mask creates no separate image request.
 */
body.woocommerce-checkout
#place_order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

body.woocommerce-checkout
#place_order::before {
    display: inline-block;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    content: "";
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 5 6v5c0 4.7 2.9 8.1 7 10 4.1-1.9 7-5.3 7-10V6l-7-3Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m9 12 2 2 4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 5 6v5c0 4.7 2.9 8.1 7 10 4.1-1.9 7-5.3 7-10V6l-7-3Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m9 12 2 2 4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

@media (max-width: 768px) {
    body.woocommerce-checkout
    .woocommerce-checkout-review-order-table
    .product-name
    .presi-checkout-product-thumbnail {
        width: 50px;
        margin-right: 8px;
    }

    body.woocommerce-checkout
    .woocommerce-checkout-review-order-table
    .presi-checkout-product-image {
        width: 50px;
        max-width: 50px;
        height: 50px;
    }
}

/* PRESI CHECKOUT ORDER UX CSS END */

/* PRESI CUSTOM THANKYOU CSS START */

body.woocommerce-order-received
.presi-thankyou-page {
    width: 100%;
    max-width: 700px;
    margin: 20px auto 40px;
    padding: 34px 24px;
    box-sizing: border-box;
    color: #000;
    text-align: center;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
    box-shadow: 0 5px 18px rgb(0 0 0 / 7%);
}

.presi-thankyou-page__icon {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 15px;
    background-color: #000;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgb(0 0 0 / 14%);
}

.presi-thankyou-page__icon::before {
    display: block;
    width: 100%;
    height: 100%;
    content: "";
    background-color: #fff;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 58%;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 58%;
}

.presi-thankyou-page__title {
    margin: 0 0 13px;
    color: #000;
    font-size: clamp(23px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.25;
}

.presi-thankyou-page__message {
    max-width: 580px;
    margin: 0 auto 9px;
    color: #000;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.presi-thankyou-page__message:last-child {
    margin-bottom: 0;
    font-weight: 600;
}

@media (max-width: 768px) {
    body.woocommerce-order-received
    .presi-thankyou-page {
        margin-top: 10px;
        margin-bottom: 28px;
        padding: 27px 16px;
    }

    .presi-thankyou-page__icon {
        width: 50px;
        height: 50px;
        margin-bottom: 13px;
    }

    .presi-thankyou-page__title {
        font-size: 22px;
    }

    .presi-thankyou-page__message {
        font-size: 14px;
    }
}

/* PRESI CUSTOM THANKYOU CSS END */
