/**
 * Distraction-free shell shared by empty and populated cart states.
 */

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php #wpadminbar {
    display: none;
}

html:has(body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php) {
    margin-top: 0 !important;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-header {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dce9ee;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-brand {
    display: block;
    width: min(210px, 58vw);
    padding: 5px;
    border-radius: 16px;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-brand:focus-visible {
    outline: 3px solid rgba(8, 173, 213, 0.28);
    outline-offset: 4px;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-brand img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 74px;
    object-fit: contain;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php > .container {
    flex: 1 0 auto;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-footer {
    display: flex;
    width: 100%;
    min-height: 78px;
    align-items: center;
    justify-content: center;
    margin: auto 0 0;
    padding: 20px;
    color: #acc4ce;
    background: #062431;
    border-top: 1px solid rgba(61, 203, 230, 0.18);
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    font-family: IRANSansWeb, IRANSans, Tahoma, sans-serif;
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-footer strong {
    color: #66dcef;
    font-weight: 900;
}

/* WooCommerce feedback notices after add, remove, restore and validation. */
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper {
    display: grid;
    width: 100%;
    gap: 10px;
    margin: 0;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-sr-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper:empty {
    display: none;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-message,
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-info,
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-error {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 66px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    padding: 14px 66px 14px 18px !important;
    color: #173f4e !important;
    font-family: IRANSansWeb, IRANSans, Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.9;
    text-align: right;
    background: linear-gradient(135deg, #edf9f5, #f8fcfb) !important;
    border: 1px solid #bfe6d8 !important;
    border-radius: 17px;
    box-shadow: 0 12px 28px rgba(8, 45, 62, 0.05);
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-info {
    background: linear-gradient(135deg, #eef9fc, #f8fcfd) !important;
    border-color: #c6e7ef !important;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-error {
    color: #713c3c !important;
    background: linear-gradient(135deg, #fff3f3, #fffafa) !important;
    border-color: #f0cccc !important;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-message::before,
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-info::before,
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-error::before {
    position: absolute;
    inset: 50% 18px auto auto;
    display: grid;
    width: 34px;
    height: 34px;
    content: "\2713";
    place-items: center;
    color: #087b61;
    font-family: Tahoma, sans-serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    background: #d9f3e9;
    border: 1px solid #b2dfd0;
    border-radius: 11px;
    transform: translateY(-50%);
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-info::before {
    content: "i";
    color: #087e9d;
    background: #dff4f8;
    border-color: #bbe4ed;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-error::before {
    content: "!";
    color: #b53e3e;
    background: #ffe5e5;
    border-color: #efc2c2;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-message::after,
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-info::after,
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-error::after {
    display: none !important;
    content: none !important;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-message a,
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-info a,
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-error a {
    color: #087e9d;
    font-weight: 900;
    text-decoration: none;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-message a.restore-item {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    color: #087b61;
    background: #fff;
    border: 1px solid #b9dfd2;
    border-radius: 10px;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-message a.button.wc-forward {
    display: inline-flex;
    min-width: 120px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0 0 !important;
    padding: 9px 16px;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900;
    background: linear-gradient(135deg, #08add5, #087e9d) !important;
    border: 0;
    border-radius: 11px;
    box-shadow: 0 9px 20px rgba(8, 126, 157, 0.18);
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-message a:focus-visible,
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-info a:focus-visible,
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-error a:focus-visible {
    outline: 3px solid rgba(8, 173, 213, 0.22);
    outline-offset: 3px;
}

/* Coupon toggle: remove Woo's absolute icon so it cannot overlap RTL copy. */
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .woocommerce-form-coupon-toggle .woocommerce-info {
    position: relative;
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 14px 18px !important;
    color: #264c5b !important;
    background: linear-gradient(135deg, #eaf8fb, #f6fcfd) !important;
    border: 1px solid #c9e7ee !important;
    border-radius: 16px;
    box-shadow: none;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .woocommerce-form-coupon-toggle .woocommerce-info::before,
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .woocommerce-form-coupon-toggle .woocommerce-info::after {
    display: none !important;
    content: none !important;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .woocommerce-form-coupon-toggle .woocommerce-info a {
    color: #087f9f;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: rgba(8, 127, 159, 0.3);
    text-underline-offset: 4px;
}

/* Expanded coupon form. Woo controls open/close; this stylesheet owns presentation only. */
body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon {
    width: 100%;
    margin: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #d4e5eb;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(8, 45, 62, 0.06);
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon > p:first-child:not(.form-row) {
    margin: 0 0 13px;
    color: #617985;
    font-size: 12px;
    line-height: 1.9;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon .form-row {
    float: right !important;
    width: calc(100% - 174px) !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon .form-row-last {
    float: left !important;
    width: 162px !important;
    margin-right: 12px !important;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon input.input-text {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 15px;
    color: #082d3e;
    font-family: IRANSansWeb, IRANSans, Tahoma, sans-serif;
    font-size: 14px;
    background: #f8fbfc;
    border: 1px solid #cfe1e7;
    border-radius: 13px;
    box-shadow: none;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon input.input-text:focus {
    background: #fff;
    border-color: #08add5;
    outline: 3px solid rgba(8, 173, 213, 0.12);
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon button.button {
    width: 100%;
    min-height: 52px;
    margin: 0 !important;
    padding: 11px 16px;
    color: #fff;
    font-family: IRANSansWeb, IRANSans, Tahoma, sans-serif;
    font-size: 13px !important;
    font-weight: 900;
    background: linear-gradient(135deg, #08add5, #087e9d) !important;
    border: 0;
    border-radius: 13px;
    box-shadow: 0 10px 22px rgba(8, 126, 157, 0.2);
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon button.button:focus-visible {
    outline: 3px solid rgba(8, 173, 213, 0.25);
    outline-offset: 3px;
}

body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon .clear {
    clear: both;
}

@media (max-width: 600px) {
    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-header {
        min-height: 90px;
        padding: 12px 16px;
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-brand {
        width: min(180px, 62vw);
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-brand img {
        max-height: 62px;
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-footer {
        min-height: 84px;
        padding: 18px 14px;
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-footer p {
        max-width: 290px;
        flex-wrap: wrap;
        gap: 4px 7px;
        font-size: 11px;
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .woocommerce-form-coupon-toggle .woocommerce-info {
        min-height: 60px;
        padding: 13px 14px !important;
        font-size: 11px;
        line-height: 1.9;
        text-align: center;
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper {
        gap: 8px;
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-message,
    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-info,
    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-error {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 54px 15px 14px !important;
        font-size: 11px;
        line-height: 2;
        border-radius: 15px;
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-message::before,
    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-info::before,
    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-error::before {
        inset: 14px 13px auto auto;
        width: 30px;
        height: 30px;
        font-size: 15px;
        transform: none;
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-message a.restore-item,
    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .cart-p .woocommerce-notices-wrapper > .woocommerce-message a.button.wc-forward {
        width: 100%;
        min-height: 42px;
        margin: 4px 0 0 !important;
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon {
        padding: 14px;
        border-radius: 16px;
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon .form-row,
    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon .form-row-last {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon .form-row-last {
        margin-top: 9px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php .poweren-cart-shell-brand,
    body.poweren-cart-focus-shell.page-template-Woo-Cart-Template-php form.checkout_coupon.woocommerce-form-coupon button.button {
        transition: none;
    }
}
