/* Elementor Widget Styles - Frontend */

/* Order Bump Widget */
.fbp-order-bump {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px dashed var(--fbp-warning, #f59e0b);
    border-radius: var(--fbp-radius-lg, 12px);
    padding: 24px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}

.fbp-order-bump::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fbp-warning, #f59e0b);
}

.fbp-order-bump-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.fbp-order-bump-checkbox {
    flex-shrink: 0;
    margin-top: 2px;
}

.fbp-order-bump-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--fbp-warning, #f59e0b);
    cursor: pointer;
}

.fbp-order-bump-content {
    flex: 1;
}

.fbp-order-bump-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--fbp-warning, #f59e0b);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.fbp-order-bump-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--fbp-gray-900, #111827);
}

.fbp-order-bump-description {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--fbp-gray-600, #4b5563);
    line-height: 1.5;
}

.fbp-order-bump-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fbp-order-bump-original-price {
    font-size: 14px;
    color: var(--fbp-gray-400, #9ca3af);
    text-decoration: line-through;
}

.fbp-order-bump-sale-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--fbp-success, #10b981);
}

.fbp-order-bump-discount {
    padding: 2px 8px;
    background: var(--fbp-success, #10b981);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.fbp-order-bump-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--fbp-radius, 8px);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--fbp-shadow, 0 1px 3px 0 rgba(0, 0, 0, 0.1));
}

.fbp-order-bump-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Upsell Product Widget */
.fbp-upsell-product {
    text-align: center;
    padding: 40px 20px;
}

.fbp-upsell-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--fbp-primary, #3b82f6) 0%, #6366f1 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    margin-bottom: 24px;
}

.fbp-upsell-image {
    max-width: 400px;
    margin: 0 auto 32px;
    border-radius: var(--fbp-radius-lg, 12px);
    overflow: hidden;
    box-shadow: var(--fbp-shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
}

.fbp-upsell-image img {
    width: 100%;
    height: auto;
    display: block;
}

.fbp-upsell-title {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 700;
    color: var(--fbp-gray-900, #111827);
    line-height: 1.2;
}

.fbp-upsell-description {
    max-width: 600px;
    margin: 0 auto 24px;
    font-size: 16px;
    color: var(--fbp-gray-600, #4b5563);
    line-height: 1.6;
}

.fbp-upsell-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.fbp-upsell-original-price {
    font-size: 24px;
    color: var(--fbp-gray-400, #9ca3af);
    text-decoration: line-through;
}

.fbp-upsell-sale-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--fbp-success, #10b981);
}

.fbp-upsell-discount-badge {
    padding: 6px 14px;
    background: #fef2f2;
    color: var(--fbp-danger, #ef4444);
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
}

.fbp-upsell-features {
    max-width: 500px;
    margin: 0 auto 32px;
    text-align: left;
}

.fbp-upsell-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--fbp-gray-100, #f3f4f6);
}

.fbp-upsell-feature:last-child {
    border-bottom: none;
}

.fbp-upsell-feature svg {
    flex-shrink: 0;
    color: var(--fbp-success, #10b981);
}

.fbp-upsell-feature span {
    font-size: 15px;
    color: var(--fbp-gray-700, #374151);
}

/* Upsell Button Widget */
.fbp-upsell-button-wrapper {
    text-align: center;
}

.fbp-upsell-accept-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--fbp-success, #10b981) 0%, #059669 100%);
    border: none;
    border-radius: var(--fbp-radius, 8px);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    text-decoration: none;
}

.fbp-upsell-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #fff;
}

.fbp-upsell-accept-btn:active {
    transform: translateY(0);
}

.fbp-upsell-accept-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.fbp-upsell-accept-btn .fbp-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fbp-spin 0.8s linear infinite;
}

@keyframes fbp-spin {
    to {
        transform: rotate(360deg);
    }
}

.fbp-upsell-guarantee {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fbp-gray-500, #6b7280);
}

.fbp-upsell-guarantee svg {
    color: var(--fbp-success, #10b981);
}

/* Upsell Reject Widget */
.fbp-upsell-reject-wrapper {
    text-align: center;
    margin-top: 24px;
}

.fbp-upsell-reject-link {
    display: inline-block;
    font-size: 14px;
    color: var(--fbp-gray-400, #9ca3af);
    text-decoration: none;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.fbp-upsell-reject-link:hover {
    color: var(--fbp-gray-600, #4b5563);
}

/* Thank You Widget */
.fbp-thank-you {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.fbp-thank-you-header {
    text-align: center;
    margin-bottom: 40px;
}

.fbp-thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--fbp-success, #10b981) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: fbp-scale-in 0.5s ease;
}

@keyframes fbp-scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fbp-thank-you-icon svg {
    width: 40px;
    height: 40px;
}

.fbp-thank-you-title {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
    color: var(--fbp-gray-900, #111827);
}

.fbp-thank-you-subtitle {
    margin: 0;
    font-size: 16px;
    color: var(--fbp-gray-500, #6b7280);
}

.fbp-order-confirmation {
    background: var(--fbp-gray-50, #f9fafb);
    border-radius: var(--fbp-radius-lg, 12px);
    padding: 32px;
    margin-bottom: 32px;
}

.fbp-order-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--fbp-gray-200, #e5e7eb);
}

.fbp-order-number-label {
    font-size: 14px;
    color: var(--fbp-gray-500, #6b7280);
}

.fbp-order-number-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--fbp-gray-900, #111827);
}

.fbp-order-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.fbp-order-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fbp-order-detail-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fbp-gray-400, #9ca3af);
}

.fbp-order-detail-value {
    font-size: 15px;
    color: var(--fbp-gray-700, #374151);
}

.fbp-order-items-summary {
    margin-bottom: 32px;
}

.fbp-order-items-summary h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--fbp-gray-900, #111827);
}

.fbp-order-summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--fbp-gray-200, #e5e7eb);
    border-radius: var(--fbp-radius, 8px);
    margin-bottom: 12px;
}

.fbp-order-summary-item:last-child {
    margin-bottom: 0;
}

.fbp-order-summary-image {
    width: 60px;
    height: 60px;
    border-radius: var(--fbp-radius, 8px);
    overflow: hidden;
    flex-shrink: 0;
}

.fbp-order-summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fbp-order-summary-details {
    flex: 1;
}

.fbp-order-summary-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--fbp-gray-900, #111827);
    margin-bottom: 4px;
}

.fbp-order-summary-meta {
    font-size: 13px;
    color: var(--fbp-gray-500, #6b7280);
}

.fbp-order-summary-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--fbp-gray-900, #111827);
}

.fbp-thank-you-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.fbp-thank-you-actions .fbp-button {
    min-width: 160px;
}

.fbp-thank-you-actions .fbp-button-secondary {
    background: #fff;
    color: var(--fbp-gray-700, #374151);
    border: 1px solid var(--fbp-gray-300, #d1d5db);
}

.fbp-thank-you-actions .fbp-button-secondary:hover {
    background: var(--fbp-gray-50, #f9fafb);
    color: var(--fbp-gray-900, #111827);
}

/* Responsive */
@media (max-width: 600px) {
    .fbp-order-bump-header {
        flex-direction: column;
    }

    .fbp-order-bump-image {
        width: 100%;
        height: 150px;
        order: -1;
    }

    .fbp-upsell-title {
        font-size: 24px;
    }

    .fbp-upsell-sale-price {
        font-size: 36px;
    }

    .fbp-upsell-accept-btn {
        width: 100%;
        padding: 18px 32px;
    }

    .fbp-order-details-grid {
        grid-template-columns: 1fr;
    }

    .fbp-thank-you-actions {
        flex-direction: column;
    }

    .fbp-thank-you-actions .fbp-button {
        width: 100%;
    }
}
