/* Delivery Page Premium Styling */
.fagds-delivery-container { max-width: 1200px; margin: 40px auto; font-family: "Inter", "Roboto", sans-serif; color: #333333; background: #ffffff; border-radius: 16px; padding: 40px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05); position: relative; overflow: hidden; border: 1px solid #f0f0f0; }

/* Background ambient glow */
.fagds-delivery-container::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(64, 112, 244, 0.05) 0%, transparent 50%); pointer-events: none; z-index: 0; }

.fagds-delivery-header,
.fagds-delivery-content,
.fagds-delivery-actions {
    position: relative;
    z-index: 1;
}

.fagds-delivery-header { text-align: center; margin-bottom: 40px; border-bottom: 1px solid #eeeeee; padding-bottom: 30px; }

.fagds-delivery-header h1 { font-size: 2.2rem; font-weight: 800; color: #111111; margin-bottom: 15px; }

.fagds-delivery-header p { font-size: 1.1rem; color: #666666; }

.section-title { font-size: 1.5rem; color: #111111; margin-bottom: 25px; font-weight: 700; }

/* Grid for Licenses */
.fagds-licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.fagds-license-card { background: #fafafa; border: 1px solid #eaeaea; border-radius: 12px; padding: 25px; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease; display: flex; flex-direction: column; }

.fagds-license-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08); border-color: #cbd5e1; }

.fagds-card-header h3 { margin: 0 0 15px 0; font-size: 1.3rem; font-weight: 700; color: #111111; border-bottom: 1px solid #eeeeee; padding-bottom: 12px; }

.fagds-card-body {
    flex-grow: 1;
}

.fagds-license-text { font-size: 1rem; line-height: 1.7; color: #334155; margin-bottom: 20px; padding: 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; word-break: break-word; font-family: "Inter", sans-serif; }

.fagds-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.fagds-copy-btn {
    background: #4070f4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.fagds-copy-btn:hover {
    background: #2a52be;
}

.fagds-copy-btn.copied {
    background: #10b981; /* Green success */
}

.fagds-expiry {
    font-size: 0.85rem;
    color: #9ca3af;
}

.fagds-expiry span {
    color: #f59e0b;
    font-weight: 600;
}

/* Order Summary */
.fagds-order-summary { background: #f8f9fa; border-radius: 12px; padding: 30px; border: 1px solid #eeeeee; }

.fagds-order-summary h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.fagds-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.fagds-summary-table th, .fagds-summary-table td { color: #111111; }

.fagds-summary-table th { font-weight: 600; color: #4b5563; }

.fagds-summary-table td { color: #111111; }

.fagds-summary-table tfoot th, .fagds-summary-table tfoot td { font-size: 1.1rem; border-top: 2px solid #dddddd; border-bottom: none; }

/* Actions */
.fagds-delivery-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.fagds-btn-primary,
.fagds-btn-secondary {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.fagds-btn-primary { 
    background: #111111; 
    color: white; 
    border: 1px solid #111111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.fagds-btn-primary:hover { 
    background: #333333;
    border-color: #333333;
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.15); 
    color: white; 
}

.fagds-btn-secondary { 
    background: #ffffff; 
    color: #444444; 
    border: 1px solid #e2e8f0; 
}

.fagds-btn-secondary:hover { 
    background: #f8fafc; 
    color: #111111; 
    border-color: #cbd5e1; 
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .fagds-delivery-container { max-width: 100%; padding: 25px 15px; margin: 15px 10px; border-radius: 12px; }
    
    .fagds-licenses-grid {
        grid-template-columns: 1fr;
    }
    
    .fagds-delivery-actions {
        flex-direction: column;
    }
    
    .fagds-btn-primary,
    .fagds-btn-secondary { background: #ffffff; color: #444444; border: 1px solid #cccccc; }
}


/* --- Floating Cart Styles --- */
.fagds-floating-cart-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #000000;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(64, 112, 244, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.fagds-floating-cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(64, 112, 244, 0.6);
}

.fagds-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #0d0f12;
}

/* Drawer Overlay */
.fagds-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fagds-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Drawer Panel */
.fagds-floating-cart-drawer { position: fixed; top: 0; right: -480px; width: 100%; max-width: 480px; height: 100vh; background: #f5f5f0; z-index: 1000000; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); border-left: 1px solid rgba(0, 0, 0, 0.05); }

.fagds-floating-cart-drawer.open {
    right: 0;
}

.fagds-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }

.fagds-drawer-header h3 { margin: 0; color: #222222; font-size: 1.4rem; font-weight: 700; }

.fagds-drawer-close { background: transparent; border: none; color: #888888; cursor: pointer; padding: 5px; transition: color 0.2s ease; }

.fagds-drawer-close:hover { color: #ff4444; }

/* Drawer Content (Items) */
.fagds-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

.fagds-empty-cart { text-align: center; margin-top: 50px; color: #666666; }

.fagds-empty-cart p {
    margin-bottom: 20px;
}

.fagds-cart-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    padding: 20px 0; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

.fagds-cart-item.fagds-updating {
    opacity: 0.6;
    filter: blur(0.5px);
    transform: scale(0.97);
}

.fagds-cart-item.fagds-removing {
    opacity: 0;
    transform: translateX(30px);
}

@keyframes fagds-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.fagds-pulse-anim {
    animation: fagds-pulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fagds-item-details h4 a { color: #222222; text-decoration: none; transition: color 0.2s ease; }

.fagds-item-details h4 a:hover {
    color: #4070f4;
}

.fagds-item-price { color: #666666; font-size: 0.95rem; }

.fagds-remove-item {
    color: #ef4444;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.fagds-remove-item:hover {
    transform: scale(1.2);
}

/* Drawer Footer */
.fagds-drawer-footer { padding: 20px 25px; border-top: 1px solid rgba(0, 0, 0, 0.05); background: #f8f9fa; }

.fagds-cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed rgba(0,0,0,0.1); }

.fagds-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fagds-drawer-actions .fagds-btn-primary,
.fagds-drawer-actions .fagds-btn-secondary { background: #ffffff; color: #444444; border: 1px solid #cccccc; }

/* Prevent body scroll when drawer is open */
body.fagds-drawer-open {
    overflow: hidden;
}



/* New cart item structure styles */
.fagds-item-image { width: 70px; height: 70px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: rgba(0,0,0,0.03); }
.fagds-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fagds-item-details h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    line-height: 1.3;
}
.fagds-item-price-qty {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.fagds-qty-label { color: #666666; font-size: 0.9rem; }
.fagds-qty-label span { color: #222222; font-weight: 600; }
.fagds-item-price { color: #666666; font-size: 0.95rem; }
.fagds-item-price del {
    opacity: 0.6;
    margin-right: 5px;
}
.fagds-item-price ins {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
}
.fagds-item-price .amount { color: #222222; font-weight: 600; }
.fagds-item-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
}
.fagds-remove-item svg {
    transition: color 0.2s ease, transform 0.2s ease;
}
.fagds-remove-item:hover svg {
    color: #ff4444;
    transform: scale(1.1);
}
.fagds-cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed rgba(0,0,0,0.1); }
.fagds-total-label { color: #666666; font-size: 1.1rem; }
.fagds-total-value { font-size: 1.3rem; font-weight: bold; color: #222222; }



/* New secondary actions styles */
.fagds-drawer-secondary-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.fagds-drawer-secondary-actions .fagds-btn-secondary { background: #ffffff; color: #444444; border: 1px solid #cccccc; }

.fagds-drawer-secondary-actions .fagds-btn-secondary:hover { background: #f3f4f6; color: #111111; border-color: #999999; }

.fagds-btn-primary.fagds-quick-checkout-btn { padding: 12px 15px; font-size: 1rem; border-radius: 8px; box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); background: linear-gradient(135deg, #10b981, #059669); color: white; border: none; width: 100%; text-align: center; } .fagds-btn-primary.fagds-quick-checkout-btn:hover { box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4); transform: translateY(-1px); } .fagds-btn-primary.fagds-quick-checkout-btn:hover { box-shadow: 0 8px 20px rgba(16, 185, 129, 0.6); transform: translateY(-2px); }


.fagds-drawer-secondary-actions a:nth-child(1) {
    border-color: #4070f4;
    color: #4070f4;
}
.fagds-drawer-secondary-actions a:nth-child(1):hover {
    background: #4070f4;
    color: white;
}
.fagds-drawer-secondary-actions a:nth-child(2) {
    border-color: #f59e0b;
    color: #f59e0b;
}
.fagds-drawer-secondary-actions a:nth-child(2):hover {
    background: #f59e0b;
    color: white;
}

/* SweetAlert Isolated Classes */
.fagds-custom-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border-radius: 16px !important;
    padding: 24px !important;
}

.fagds-custom-confirm-btn {
    background-color: #10b981 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    margin: 0 5px !important;
}

.fagds-custom-cancel-btn {
    background-color: #ef4444 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    margin: 0 5px !important;
}

.fagds-swal-recargar:hover {
    background-color: #059669 !important;
}



