/**
 * GXL Google One Tap Stylesheet
 *
 * @package GXL_Google_One_Tap
 */

/* ==========================================================================
   1. Floating Toast Notifications
   ========================================================================== */

.gxl-got-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    max-width: 400px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gxl-got-toast.gxl-got-toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.gxl-got-toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gxl-got-toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gxl-got-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gxl-got-toast-text {
    flex: 1;
    word-break: break-word;
}

.gxl-got-toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.15s ease;
}

.gxl-got-toast-close:hover {
    color: #ffffff;
    transform: scale(1.15);
}

/* ==========================================================================
   2. Responsive & Positioning Adjustments
   ========================================================================== */

@media (max-width: 600px) {
    .gxl-got-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: calc(100vw - 32px);
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* ==========================================================================
   3. Google One Tap Container & Shortcode Buttons
   ========================================================================== */

#credential_picker_container {
    z-index: 99999999 !important;
}

.gxl-google-button-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    max-width: 100%;
}
