/*
Theme Name: Olive Theme
Description: Custom WooCommerce Theme for Antigravity
Author: Antigravity
Version: 1.0.0
Text Domain: olive-theme
*/

.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }

@media screen and (min-width: 991.98px) {
	.hide-desktop{
		display:none;
	}
}

@media screen and (max-width: 991px) {
	.my-account-icon{
		display:none !important;
	}
	.header__icons {
		display: flex;
		gap: 10px;
		align-items: center;
	}
}
@media screen and (max-width: 400px) {
	a.header__logo {
		max-width: 140px;
	}
}

/* ===========================
   WooCommerce Thank You Page
   =========================== */

.woocommerce-order {
    max-width: 900px;
    margin: 50px auto;
    padding: 0px;
    background: #fff;

}

/* Success Message */
.woocommerce-notice--success {
    background: #ecfdf3;
    color: #166534;
    border-left: 5px solid #22c55e;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

/* Order Overview */
.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 35px 0;
}

.woocommerce-order-overview li {
    background: #f8fafc;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.woocommerce-order-overview strong {
    display: block;
    margin-top: 8px;
    font-size: 17px;
    color: #111827;
}

/* Section Titles */
.woocommerce-order-details__title,
.woocommerce-column__title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #111827;
}

/* Table */
.woocommerce-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 40px;
}

.woocommerce-table th,
.woocommerce-table td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-table thead {
    background: #f9fafb;
}

.woocommerce-table th {
    font-weight: 600;
    color: #111827;
}

.woocommerce-table tfoot th,
.woocommerce-table tfoot td {
    font-weight: 600;
}

.woocommerce-table a {
    color: #2563eb;
    text-decoration: none;
}

.woocommerce-table a:hover {
    text-decoration: underline;
}

/* Addresses */
.woocommerce-columns--addresses {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.woocommerce-column {
    flex: 1;
    min-width: 280px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.woocommerce-column address {
    font-style: normal;
    line-height: 1.8;
}

/* Email */
.woocommerce-customer-details--email {
    margin-top: 15px;
    color: #2563eb;
}

/* Price */
.woocommerce-Price-amount {
    font-weight: 700;
    color: #111827;
}

/* Responsive */
@media (max-width:768px) {
    .woocommerce-order {
        padding: 20px;
        margin: 20px;
    }

    .woocommerce-order-overview {
        grid-template-columns: 1fr;
    }

    .woocommerce-columns--addresses {
        flex-direction: column;
    }
}

/* =========================================
   WooCommerce Razorpay Payment Page Only
   ========================================= */

.woocommerce .order_details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    list-style: none;
    margin: 30px 0;
    padding: 0;
}

.woocommerce .order_details li {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.woocommerce .order_details strong {
    display: block;
    margin-top: 8px;
    font-size: 17px;
    color: #111827;
}

.woocommerce p {
    font-size: 16px;
    color: #374151;
}

/* Processing message */
#msg-razorpay-success {
    border-radius: 10px !important;
    border-top: 4px solid #2563eb !important;
    background: #eff6ff !important;
    color: #1e40af !important;
    margin: 20px 0;
}

/* Button container */
.woocommerce p:has(#btn-razorpay) {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Pay Now Button */
#btn-razorpay {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

#btn-razorpay:hover {
    background: #15803d;
    transform: translateY(-2px);
}

/* Cancel Button */
#btn-razorpay-cancel {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

#btn-razorpay-cancel:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.clear {
    clear: both;
}

/* Mobile */
@media (max-width:768px) {

    .woocommerce .order_details {
        grid-template-columns: 1fr;
    }

    .woocommerce p:has(#btn-razorpay) {
        flex-direction: column;
    }

    #btn-razorpay,
    #btn-razorpay-cancel {
        width: 100%;
    }
}