.wd-gwp-box {
    margin: 14px 0 10px;
    padding: 12px 14px;
    border-radius: 0;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
    border: 1px dashed #0046FF;
    width: 40%;
    position: relative;
    transition: all 0.3s ease;
}
@media (max-width: 1024px){
  .wd-gwp-box{ width: 100%; }
}

.wd-gwp-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #Eef2ff;
    color: #0046FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}

.wd-gwp-toggle:hover {
    background: #dbe4ff;
}

.wd-gwp-icon {
    border-radius: 12px;
    /* background: rgba(0, 0, 0, .04); - Removing background to match design if needed, or keeping it */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #0046FF;
}

.wd-gwp-content-wrapper {
    flex: 1;
}

.wd-gwp-title {
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
    color: #0046FF;
}

.wd-gwp-sub {
    font-size: 16px;
    margin-top: 2px;
    color: var(--e-global-color-primary);
    font-weight: 700;
}

/* Cart Item Highlighting */
tr.wd-gwp-cart-item td,
.wd-gwp-cart-item {
    opacity: .92;
}

.wd-gwp-qty {
    display: inline-block;
    min-width: 26px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .04);
    font-weight: 700;
}

/* Drawer Styles */
.wd-gwp-drawer {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2147483647;
    /* Max Z-Index to ensure it's on top of everything */
}

.wd-gwp-drawer.open {
    display: block;
}

.wd-gwp-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darker, standard overlay */
    /* backdrop-filter: blur(2px);  Removed as requested */
    opacity: 0;
    transition: opacity 0.3s;
}

.wd-gwp-drawer.open .wd-gwp-drawer-overlay {
    opacity: 1;
}

/* Popup/Modal Content Style */
.wd-gwp-drawer-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: auto !important;
    /* Override bottom positioning */
    right: auto !important;
    margin: 0 !important;

    width: 600px;
    max-width: 90vw;
    height: auto;
    max-height: 85vh;

    background: #fff;
    border-radius: 12px;
    /* All corners rounded for popup */
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

    overflow-y: auto;
    direction: rtl;
    box-sizing: border-box;

    /* Animation: Scale/Fade In */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translate(-50%, -45%) scale(0.95) !important;
    /* Start slightly offset */
}

.wd-gwp-drawer.open .wd-gwp-drawer-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1) !important;
    /* End centered */
}

/* Close Button Adjustment */
.wd-gwp-drawer-close {
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .wd-gwp-drawer-content {
        width: 95% !important;
        max-height: 80vh;
        border-radius: 12px;
        padding: 20px;
    }
}

/* Single Product in Drawer Styles - New Layout */
.wd-gwp-single-product-wrapper.mode-header-body {
    display: block;
    /* Stack vertically */
}

/* Header: Image + Info */
.wd-gwp-product-header {
    display: flex;
    align-items: center;
    /* Align top */
    gap: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.wd-gwp-header-image {
    width: 120px;
    /* Small fixed width */
    flex-shrink: 0;
}

.wd-gwp-header-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.wd-gwp-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wd-gwp-header-info .wd-gwp-popup-title {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
    color: #000;
}

.wd-gwp-header-info .price {
    font-size: 20px;
    font-weight: 700;
    color: #0046FF;
    margin: 0;
}

/* Body: Descriptions */
.wd-gwp-product-body .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 20px;
    color: #000;
    margin-bottom: 20px;
}

.wd-gwp-product-body .woocommerce-product-details__long-description {
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.wd-gwp-product-body .woocommerce-product-details__long-description h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #222;
}