/*
 Theme Name:   GP Digital Pro
 Theme URI:    https://wpsanjeet.com
 Description:  GeneratePress child theme for a mobile-responsive digital product store.
 Author:       WPSanjeet
 Author URI:   https://wpsanjeet.com
 Template:     generatepress
 Version:      1.1.0
*/

/* Existing theme styles */
.main-navigation {
    box-shadow: rgba(0, 0, 0, 0.16) 0 1px 4px;
}
#wp-block-search__input-1 {
    border-radius: 120px;
    border: 0;
}
.wp-block-search__inside-wrapper {
    border-radius: 120px;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
}

/* WooCommerce shop */
.woocommerce .woocommerce-breadcrumb {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    padding: 10px 20px;
    font-size: 15px;
}
#wc-column-container .product {
    padding: 15px 10px;
    border-radius: 4px;
    box-shadow: rgba(0,0,0,.05) 0 6px 24px, rgba(0,0,0,.08) 0 0 0 1px;
}
.woocommerce ul.products li.product .button {
    transition: .5s;
    background-size: 200% auto;
    box-shadow: rgba(0,0,0,.1) 0 4px 12px;
    border-radius: 4px;
    margin: 5px;
    width: 95%;
    font-size: 14px;
}
.woocommerce ul.products li.product a img {
    border-radius: 4px;
}
@supports (display: grid) {
    .woocommerce ul.products li.product {
        padding: 10px;
        box-shadow: rgba(0,0,0,.05) 0 6px 24px, rgba(0,0,0,.08) 0 0 0 1px;
    }
}

/* WooCommerce product page */
.woocommerce div.product form.cart .button {
    transition: .5s;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    width: 100%;
}
.woocommerce .related ul.products li.product,
.woocommerce .up-sells ul.products li.product {
    padding: 15px;
    box-shadow: rgba(0,0,0,.05) 0 6px 24px, rgba(0,0,0,.08) 0 0 0 1px;
}
.live-preview-button {
    display: block;
    text-align: center;
    background-color: #000 !important;
    color: #fff;
}

/* General WooCommerce payment button */
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    float: none;
    width: 100%;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    font-weight: 700;
    font-size: 18px !important;
}
.woocommerce-checkout #payment ul.payment_methods li img {
    width: 120px;
}

/* Social sharing */
.wpjankari-social-wrapper {
    margin: 20px 5px;
    font-size: 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
}
.wpjankari-social-sharing {
    padding: 8px;
    margin: 4px;
    border-radius: 3px;
    flex: 1;
    transition: background-color .3s, transform .3s, color .3s;
}
.wpjankari-social-sharing:hover {
    transform: translateY(-3px);
    border: none;
    box-shadow: rgba(0,0,0,.1) 0 20px 25px -5px, rgba(0,0,0,.04) 0 10px 10px -5px;
}
.wpjankari-social-sharing svg {
    position: relative;
    top: .15em;
    display: inline-block;
}
.wpjankari-social-facebook { fill: #fff; background-color: rgba(59,89,152,1); }
.wpjankari-social-twitter { fill: #fff; background-color: #000; }
.wpjankari-social-whatsapp { fill: #fff; background-color: rgba(37,211,102,1); }
.wpjankari-social-telegram { fill: #fff; background-color: rgb(2,126,189); }
.wpjankari-social-more { fill: #fff; background-color: #000; }

/* Sticky footer menu */
@media only screen and (min-width: 960px) {
    .sticky-footer-menu { display: none !important; }
}
.sticky-footer-menu {
    position: fixed !important;
    height: 60px;
    width: 100%;
    bottom: 0;
    box-shadow: rgba(0,0,0,.35) 0 5px 15px;
}

/* =====================================================
   CHECKOUT DESIGN - used with GeneratePress Elements
   ===================================================== */

.woocommerce-checkout .site-content {
    background: #fff;
    padding: 35px 24px 55px;
}
.woocommerce-checkout .content-area {
    width: 100%;
    max-width: 100%;
}
.woocommerce-checkout .site-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.woocommerce-checkout .inside-article {
    padding: 0;
    background: transparent;
}

/* Checkout header Hook Element */
.checkout-header-inner {
    width: 100%;
    max-width: 1200px;
    min-height: 68px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}
.checkout-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}
.checkout-brand img {
    display: block;
    width: 150px;
    max-width: 100%;
    height: auto;
}
.checkout-security {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #087b5c;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Headings */
.woocommerce-checkout h1,
.woocommerce-checkout h2,
.woocommerce-checkout h3 {
    color: #202020;
    font-weight: 700;
}
.woocommerce-checkout h1 {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 24px;
}
.woocommerce-checkout h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 16px;
}

/* Coupon notice */
.woocommerce-checkout .woocommerce-info {
    background: #effaf6;
    color: #176b51;
    border: 0;
    border-left: 4px solid #00b889;
    border-radius: 5px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
}
.woocommerce-checkout .woocommerce-info a {
    color: #087b5c;
    font-weight: 700;
    text-decoration: underline;
}
.woocommerce-checkout .woocommerce-info a:hover {
    color: #005c43;
}

/* Billing fields: labels intentionally remain visible */
.woocommerce-checkout .form-row {
    margin-bottom: 15px;
}
.woocommerce-checkout .form-row label {
    display: block;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}
.woocommerce-checkout .form-row label .required {
    color: #d63031;
}
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: #252525;
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.woocommerce-checkout textarea {
    min-height: 90px;
    resize: vertical;
}
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #00b889;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,184,137,.10);
}

/* Desktop two-column checkout */
@media (min-width: 769px) {
    .woocommerce-checkout form.checkout {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        column-gap: 36px;
        align-items: start;
    }
    .woocommerce-checkout #customer_details {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 100%;
        min-width: 0;
        float: none;
        margin: 0;
    }
    .woocommerce-checkout #order_review_heading {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        margin: 0 0 14px;
    }
    .woocommerce-checkout #order_review {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        float: none;
        clear: none;
        box-sizing: border-box;
    }
}

/* Order summary */
.woocommerce-checkout #order_review {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.025);
    box-sizing: border-box;
}
.woocommerce-checkout #order_review table {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    margin-bottom: 14px;
    table-layout: auto;
}
.woocommerce-checkout #order_review table th,
.woocommerce-checkout #order_review table td {
    padding: 12px 9px;
    font-size: 13px;
    line-height: 1.6;
    border-color: #eee;
    vertical-align: middle;
}
.woocommerce-checkout #order_review table th {
    background: #f7f8f8;
    color: #222;
    font-weight: 700;
}
.woocommerce-checkout #order_review table td {
    color: #333;
}
.woocommerce-checkout #order_review table th:last-child,
.woocommerce-checkout #order_review table td:last-child {
    white-space: nowrap;
    word-break: normal;
}
.woocommerce-checkout #order_review table .product-name {
    overflow-wrap: anywhere;
}
.woocommerce-checkout #order_review table .order-total th,
.woocommerce-checkout #order_review table .order-total td {
    color: #111;
    font-size: 15px;
    font-weight: 700;
}

/* Payment area: do not alter gateway functionality */
.woocommerce-checkout #payment {
    background: #f7f8f8;
    border: 0;
    border-radius: 7px;
    padding: 14px;
}
.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid #e7e7e7;
    padding: 0 0 14px;
}
.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 0;
}
.woocommerce-checkout #payment .payment_box {
    background: #fff;
    border-radius: 5px;
    color: #333;
    font-size: 13px;
    line-height: 1.6;
}
.woocommerce-checkout #payment .payment_box::before {
    border-bottom-color: #fff;
}

/* Place order button */
.woocommerce-checkout #place_order {
    display: block;
    float: none;
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
    margin-top: 12px;
    background: #00b889;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
}
.woocommerce-checkout #place_order:hover {
    background: #009d75;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,184,137,.18);
}
.woocommerce-checkout #place_order:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* Checkout notices */
.woocommerce-checkout .woocommerce-error {
    background: #fff3f3;
    border-top-color: #d63031;
    color: #9f2222;
    border-radius: 5px;
    font-size: 13px;
}
.woocommerce-checkout .woocommerce-NoticeGroup {
    margin-bottom: 20px;
}

/* Custom footer Hook Element */
.checkout-footer-inner {
    width: 100%;
    box-sizing: border-box;
    background: #252525;
    color: #fff;
    text-align: center;
    padding: 28px 20px;
    font-size: 13px;
}
.checkout-footer-brand {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}
.checkout-footer-inner p {
    color: #eee;
    line-height: 1.7;
}
.checkout-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 24px;
    margin-top: 18px;
}
.checkout-footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}
.checkout-footer-links a:hover {
    color: #00b889;
}

/* Tablet */
@media (max-width: 900px) {
    .woocommerce-checkout .site-content {
        padding: 28px 20px 45px;
    }
    .woocommerce-checkout h1 {
        font-size: 27px;
    }
}

/* Mobile: stack billing, order and payment */
@media (max-width: 768px) {
    .woocommerce-checkout form.checkout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100%;
        min-width: 0;
        float: none;
        clear: both;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}

/* Small mobile */
@media (max-width: 600px) {
    .checkout-header-inner {
        min-height: 58px;
        padding: 10px 14px;
        gap: 10px;
    }
    .checkout-brand img {
        width: 125px;
    }
    .checkout-security {
        font-size: 11px;
    }
    .woocommerce-checkout .site-content {
        padding: 22px 14px 35px;
    }
    .woocommerce-checkout h1 {
        font-size: 25px;
        margin-bottom: 20px;
    }
    .woocommerce-checkout h3 {
        font-size: 19px;
    }
    .woocommerce-checkout .form-row {
        margin-bottom: 13px;
    }
    .woocommerce-checkout input.input-text,
    .woocommerce-checkout select,
    .woocommerce-checkout textarea {
        min-height: 46px;
        font-size: 16px;
    }
    .woocommerce-checkout #order_review {
        padding: 9px;
    }
    .woocommerce-checkout #order_review table th,
    .woocommerce-checkout #order_review table td {
        padding: 10px 7px;
        font-size: 12px;
    }
    .woocommerce-checkout #payment {
        padding: 11px;
    }
    .woocommerce-checkout #place_order {
        min-height: 54px;
        font-size: 16px;
    }
    .checkout-footer-inner {
        padding: 24px 15px;
    }
    .checkout-footer-links {
        gap: 12px 16px;
    }
}

/* Very small mobile screens */
@media (max-width: 360px) {
    .checkout-brand img {
        width: 108px;
    }
    .checkout-security {
        font-size: 10px;
    }
    .checkout-header-inner {
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* WooCommerce product gallery navigation arrows */
.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery .flex-direction-nav {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-product-gallery .flex-direction-nav a {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%);
    z-index: 20 !important;
    width: 38px !important;
    height: 38px !important;
    line-height: 36px !important;
    text-align: center !important;
    background: #ffffff !important;
    color: #245c4d !important;
    border-radius: 50% !important;
    opacity: 0.95 !important;
    font-size: 0 !important;
    text-decoration: none !important;
    text-indent: 0 !important;
    text-shadow: none !important;
}

.woocommerce-product-gallery .flex-direction-nav .flex-prev {
    left: 10px !important;
}

.woocommerce-product-gallery .flex-direction-nav .flex-next {
    right: 10px !important;
}

.woocommerce-product-gallery .flex-direction-nav a:before {
    font-family: Arial, sans-serif !important;
    font-size: 29px !important;
    font-weight: 600 !important;
    line-height: 36px !important;
    color: #245c4d !important;
    text-shadow: none !important;
}

.woocommerce-product-gallery .flex-direction-nav a.flex-prev:before {
    content: "‹" !important;
}

.woocommerce-product-gallery .flex-direction-nav a.flex-next:before {
    content: "›" !important;
}

/* Keep order-summary amounts on one line without squeezing the table */
.woocommerce-checkout #order_review table {
    width: 100%;
    table-layout: fixed;
}

.woocommerce-checkout #order_review table th:first-child,
.woocommerce-checkout #order_review table td:first-child {
    width: 70%;
}

.woocommerce-checkout #order_review table th:last-child,
.woocommerce-checkout #order_review table td:last-child {
    width: 30%;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.woocommerce-checkout #order_review table td {
    overflow-wrap: normal;
    word-break: normal;
}

.woocommerce-checkout #order_review table .product-name {
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .woocommerce-checkout #order_review table th:first-child,
    .woocommerce-checkout #order_review table td:first-child {
        width: 65%;
    }

    .woocommerce-checkout #order_review table th:last-child,
    .woocommerce-checkout #order_review table td:last-child {
        width: 35%;
    }
}
