:root {
    --primary-color: #3498db;
    --accent-color: #e53e3e;
    --background-light: #f9fafb;
    --border-color: #e2e8f0;
    --text-color: #4a5568;
    --highlight-color: #fefcbf;
    --highlight-text: #e90ea0;
}

.wgs-gift-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.wgs-gift-box.wgs-animate {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wgs-gift-box h3 {
    color: var(--text-color);
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    background: var(--background-light);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.wgs-current-gift {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--background-light);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.wgs-current-gift img {
    width: 150px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wgs-gift-message {
    text-align: right;
    line-height: 1.6;
    width: 100%;
}

.wgs-gift-message p {
    margin: 0;
    color: var(--text-color);
    font-size: 15px;
}

.wgs-potential-gift {
    background: #fdf5ff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #f8d7fe;
    text-align: center;
}

.wgs-potential-gift p {
    color: #c025cd;
    font-size: 15px;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.wgs-potential-gift span {
    background: var(--highlight-color);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--highlight-text);
    font-weight: bold;
}

.wgs-next-gift {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.wgs-next-gift-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.wgs-next-gift p {
    color: var(--accent-color);
    font-size: 15px;
    margin: 0;
    font-weight: 600;
}

.wgs-next-gift span {
    background: var(--highlight-color);
    padding: 5px 5px;
    border-radius: 6px;
    color: var(--highlight-text);
    font-weight: bold;
}

/* ردیف هدیه در جدول محصولات صفحه تسویه‌حساب کلاسیک (checkout) */
.wgs-checkout-gift-row .wgs-checkout-gift-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: 10px;
    vertical-align: middle;
}

.wgs-checkout-gift-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    border-radius: 6px;
    background: var(--background-light);
    font-size: 18px;
    vertical-align: middle;
}

/* ردیف هدیه در خلاصه سفارش چک‌اوت بلاکی (Checkout block) */
.wgs-block-order-summary-gift {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wgs-block-gift-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.wgs-block-gift-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: var(--background-light);
    font-size: 18px;
    flex-shrink: 0;
}

.wgs-block-gift-name {
    flex: 1;
    color: var(--text-color);
}

.wgs-block-gift-total {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .wgs-current-gift {
        flex-direction: column;
    }
    .wgs-current-gift img {
        width: 100px;
    }
    .wgs-gift-message {
        text-align: center;
    }
    .wgs-gift-box h3 {
        font-size: 18px;
    }
    .wgs-next-gift {
        flex-direction: column;
        text-align: center;
    }
}


/* باکس هدیه قبل از جدول اقلام سفارش */
.wgs-order-gift-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 0 0 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.wgs-order-gift-box__inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.wgs-order-gift-box__media img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.wgs-order-gift-box__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #7c3aed;
    background: #f5f3ff;
    border: 1px solid #ede9fe;
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 6px;
}
.wgs-order-gift-box__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}
.wgs-order-gift-box__note {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}
