/* Buttery Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 3D Print Quote Request Styles */
#p3d-quote-wrapper {
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Upload Section */
.p3d-upload-section {
    text-align: center;
    padding: 30px;
    border: 2px dashed #0073aa;
    border-radius: 8px;
    transition: all 0.3s;
    margin-bottom: 20px;
    background: #fafafa;
}

.p3d-upload-section:hover {
    background-color: #f0f8ff;
}

.p3d-upload-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    width: auto;
}

.p3d-upload-btn:hover {
    background-color: #005177;
}

.p3d-error-msg {
    color: #d63638;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Viewer */
#p3d-viewer-container {
    width: 100%;
    height: 350px;
    background: #f0f0f1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    /* Fix overlay on header/footer */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

#p3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Cards UI */
.p3d-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.p3d-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);

    animation: fadeInUp 0.4s ease-out forwards;
}

.p3d-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #ccc;
}

.p3d-card.active {
    border-color: #0073aa;
    background-color: #f7fbfe;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    font-weight: 600;
}

.p3d-card img {
    max-width: 60px;
    max-height: 60px;
    margin-bottom: 10px;
    display: block;
    object-fit: contain;
}

/* Swatches */
.p3d-swatch-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.p3d-card.active .p3d-swatch-circle {
    border-color: #0073aa;
    transform: scale(1.1);
}

.p3d-swatch-label {
    font-size: 0.9em;
}

/* Tooltips (Icon & Bubble) */
.p3d-tooltip-icon {
    width: 18px;
    height: 18px;
    line-height: 18px;
    background: #eee;
    color: #666;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 6px;
    right: 6px;
    transition: background 0.2s;
    cursor: help;
}

.p3d-tooltip-icon:hover,
.p3d-card.active .p3d-tooltip-icon {
    background: #0073aa;
    color: #fff;
}

.p3d-tooltip-bubble {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    z-index: 1000;
    max-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    pointer-events: none;
}

/* Sections */
.p3d-section-title {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    color: #333;
}

.p3d-subtext {
    font-size: 0.8em;
    color: #777;
    margin-top: 5px;
    font-weight: normal;
}

/* Form Fields */
.p3d-input-group {
    margin-bottom: 15px;
}

.p3d-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.95em;
}

.p3d-input-group input,
.p3d-input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

#p3d-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#p3d-add-to-list-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#p3d-submit-btn:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

/* Mobile & Responsiveness */
@media (max-width: 600px) {
    .p3d-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Super Compact Mode Logic */
    .p3d-mode-compact .p3d-options-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }

    /* Printer Cards Inline (2 Columns) */
    .p3d-mode-compact #p3d-printer-type {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .p3d-mode-compact .p3d-printer-card {
        min-height: 140px !important;
        /* Smaller height */
        border-radius: 8px;
    }

    .p3d-mode-compact .p3d-printer-content {
        padding: 10px !important;
        justify-content: center;
    }

    .p3d-mode-compact .p3d-printer-title {
        font-size: 1em !important;
    }

    .p3d-mode-compact .p3d-printer-desc,
    .p3d-mode-compact .p3d-select-btn {
        display: none !important;
        /* Hide description/button for cleaner look, selection is whole card */
    }

    /* Smaller Buttons & Inputs */
    .p3d-mode-compact button,
    .p3d-mode-compact .p3d-upload-btn,
    .p3d-mode-compact input,
    .p3d-mode-compact select {
        padding: 8px 12px !important;
        font-size: 0.9em !important;
        min-height: 36px;
    }

    .p3d-mode-compact .p3d-section-title {
        margin-top: 15px;
        margin-bottom: 8px;
        font-size: 1em;
    }

    .p3d-mode-compact .p3d-card {
        min-height: 80px;
        padding: 5px;
        font-size: 0.8em;
    }

    .p3d-card {
        padding: 10px;
        min-height: 110px;
    }

    /* ... existing mobile styles ... */
    .p3d-card img {
        max-width: 40px;
        max-height: 40px;
    }

    .p3d-tooltip-icon {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 14px;
        top: 4px;
        right: 4px;
    }

    #p3d-viewer-container {
        height: 350px;
    }

    .p3d-upload-btn {
        width: 100%;
        padding: 10px 15px;
        font-size: 0.95em;
    }

    #p3d-submit-btn {
        padding: 14px;
        font-size: 1.1em;
        border-radius: 8px;
    }
}

/* Full Cover Card Style */
.p3d-card-cover {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    align-items: flex-end !important;
    /* Text at bottom */
    justify-content: center;
}

.p3d-cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.p3d-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7));
    z-index: 2;
}

.p3d-cover-text {
    position: relative;
    z-index: 3;
    color: #fff !important;
    /* Force white text on cover */
    width: 100%;
    text-align: center;
    padding: 8px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.p3d-card-cover.active {
    border: 2px solid #007cba;
    /* Highlight border still visible */
}

.p3d-card-cover.active .p3d-cover-overlay {
    background: linear-gradient(to bottom, rgba(0, 124, 186, 0.3) 0%, rgba(0, 124, 186, 0.8) 100%);
}

/* Tooltip Bubble (Desktop) */
.p3d-tooltip-bubble {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    z-index: 10000;
    max-width: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    pointer-events: none;
}

.p3d-tooltip-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Bottom Sheet (Mobile) */
.p3d-bottom-sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    animation: p3d-fade-in 0.3s forwards;
}

.p3d-bottom-sheet {
    background: #fff;
    width: 100%;
    max-height: 80vh;
    border-radius: 12px 12px 0 0;
    padding: 20px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    overflow-y: auto;
}

.p3d-bottom-sheet.open {
    transform: translateY(0);
}

.p3d-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.p3d-sheet-close {
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    padding: 0 10px;
    color: #999;
}

.p3d-sheet-content {
    line-height: 1.5;
    color: #555;
    font-size: 0.95em;
}

@keyframes p3d-fade-in {
    to {
        opacity: 1;
    }
}

/* --- NEW UX IMPROVEMENTS --- */

/* 1. Sticky Viewer (Conditional) */
#p3d-viewer-container {
    transition: all 0.3s ease;
    z-index: 100;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

#p3d-viewer-container.p3d-sticky-active {
    position: sticky;
    top: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid #eee;
}

/* 2. Live Size Badge */
.p3d-viewer-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85em;
    font-family: monospace;
    pointer-events: none;
    backdrop-filter: blur(4px);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.p3d-viewer-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.p3d-badge-label {
    font-size: 0.8em;
    opacity: 0.7;
    margin-right: 4px;
}

/* 3. Segmented Control (Compact) */
.p3d-segmented-control {
    display: flex;
    background: #f0f0f1;
    border-radius: 6px;
    padding: 3px;
    margin-bottom: 15px;
    gap: 3px;
}

.p3d-seg-option {
    flex: 1;
    text-align: center;
    padding: 6px 10px;
    font-size: 0.8em;
    /* Smaller text */
    cursor: pointer;
    border-radius: 4px;
    color: #666;
    transition: all 0.2s;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid transparent;
}

.p3d-seg-option:hover {
    background: #e9e9e9;
    color: #333;
}

.p3d-seg-option.active {
    background: #fff;
    color: #0073aa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

/* 4. Compact Inputs (Strict & Small) */
.p3d-dim-inputs {
    transition: opacity 0.3s;
}

.p3d-dim-row {
    display: flex;
    gap: 6px;
    /* Tighter gap */
    align-items: flex-end;
}

.p3d-dim-field {
    flex: 1;
}

.p3d-dim-field label {
    display: block;
    font-size: 0.7em;
    /* Tiny label */
    color: #888;
    margin-bottom: 3px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p3d-dim-input-wrapper {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    /* Tighter radius */
    background: #fff;
    padding: 0;
    height: 32px;
    /* Smaller height */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

/* Force Hide Spinners */
.p3d-dim-field input[type=number]::-webkit-inner-spin-button,
.p3d-dim-field input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none !important;
}

.p3d-dim-field input[type=number] {
    -moz-appearance: textfield;
}

.p3d-dim-field input {
    width: 100%;
    height: 100%;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font-size: 0.95em;
    /* Smaller font */
    font-weight: 600;
    color: #333;
    padding: 0;
    margin: 0;
}

/* Read Only Mode Styling (Matches JS .readonly) */
.p3d-dim-inputs.readonly .p3d-dim-input-wrapper {
    background: #f5f5f5;
    border-color: #eee;
}

.p3d-dim-inputs.readonly input {
    color: #888;
    pointer-events: none;
    /* Prevent clicks in default mode */
}

/* Apply & Edit Classes */
.p3d-apply-btn {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.p3d-apply-btn:hover {
    background: #218838;
}

/* Cleanup old classes */
.p3d-dim-inputs.disabled {
    opacity: 1;
    pointer-events: auto;
}

/* Override old rules */
/* Override old rules */
.p3d-dim-btn {
    display: none !important;
}

/* Printer Cards (New Design) */
#p3d-printer-type {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.p3d-printer-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    /* Fill grid cell */
    min-height: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    background: #e0e0e0;
    /* Fallback color */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
}

.p3d-printer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.p3d-printer-card.active {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0073aa;
    /* Clean ring */
    transform: translateY(-2px);
}

.p3d-printer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    z-index: -1;
}

.p3d-printer-card:hover .p3d-printer-bg {
    transform: scale(1.05);
    /* Subtle zoom */
}

.p3d-printer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.p3d-printer-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Spacing between elements */
}

.p3d-printer-title {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Push verified icon to right if needed, or keep adjacent */
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.p3d-verified-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.p3d-printer-desc {
    font-size: 0.95em;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit text lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p3d-select-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
    /* don't stretch */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.p3d-select-btn:hover {
    background: #fff;
    transform: scale(1.02);
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    #p3d-printer-type {
        grid-template-columns: 1fr;
        /* Full width on mobile */
        gap: 15px;
    }

    .p3d-printer-card {
        min-height: 320px;
    }

    .p3d-printer-title {
        font-size: 1.3em;
    }

    .p3d-printer-content {
        padding: 20px;
    }

    .p3d-select-btn {
        width: 100%;
        /* Full width button on mobile */
        justify-content: center;
    }
}

/* --- QUICK REVIEW STRIP --- */
#p3d-quick-review {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 0px;
    /* Flush with button or small gap */
    font-size: 0.9em;
    color: #555;
    display: none;
    /* Hidden until updated */
}

.p3d-review-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.p3d-review-item:last-child {
    margin-bottom: 0;
}

.p3d-review-icon {
    font-weight: bold;
    color: #28a745;
    /* Checkmark color */
    font-size: 1.1em;
}

.p3d-review-label {
    font-weight: 600;
    color: #333;
    margin-right: 4px;
}

.p3d-review-value {
    color: #666;
}

/* --- POLISHED REQUEST BUTTON --- */
#p3d-submit-btn {
    width: 100%;
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0073aa;
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    /* Consistent radius */
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 15px;
    /* Spacing from review strip */
    text-decoration: none;
    line-height: 1;
    /* Prevent vertical offsets */
}

#p3d-submit-btn:hover {
    background: #005177;
}

#p3d-submit-btn:active {
    transform: scale(0.98);
}

/* Upload Overlay (Glassmorphism) */
/* Upload Overlay (No Background / Minimal) */
.p3d-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    /* No dimming */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: opacity 0.3s ease-in-out;
}

.p3d-upload-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.p3d-overlay-content {
    text-align: center;
    background: transparent;
    /* No card bg */
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
    max-width: 90%;
    width: 320px;
    border: none;
}

.p3d-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(240, 247, 255, 0.8);
    /* Slightly transparent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.p3d-overlay-icon {
    font-size: 28px;
}

.p3d-overlay-content h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #333;
}

.p3d-overlay-content p {
    margin: 0 0 20px;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.p3d-browse-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.p3d-browse-btn:hover {
    background: #005177;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}


/* --- TOAST NOTIFICATIONS (Popup Messages) --- */
.p3d-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Let clicks pass through container */
}

.p3d-toast {
    background: #fff;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #0073aa;
    font-size: 0.95em;
    min-width: 250px;
    max-width: 350px;
    pointer-events: auto;
    /* Enable clicks on toast */
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: toastSlideIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
}

.p3d-toast.error {
    border-left-color: #dc3545;
}

.p3d-toast.success {
    border-left-color: #28a745;
}

.p3d-toast-msg {
    flex: 1;
    margin-right: 10px;
    line-height: 1.4;
}

.p3d-toast-close {
    cursor: pointer;
    font-size: 1.2em;
    color: #999;
    background: none;
    border: none;
    padding: 0;
}

.p3d-toast-close:hover {
    color: #333;
}

@keyframes toastSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastFadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Mobile Adjustments for Toast */
@media (max-width: 600px) {
    .p3d-toast-container {
        left: 20px;
        /* Full width essentially */
        right: 20px;
    }

    .p3d-toast {
        width: 100%;
        max-width: none;
    }
}