/* Base styles for the container (Mobile First) */
.pklhp-ctas-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99999;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom)); /* Support iOS safe area */
}

.pklhp-cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1b4b72; /* LHP Blue */
    flex: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.pklhp-cta-item:hover {
    color: #0b2b48;
    transform: translateY(-2px);
}

.pklhp-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.pklhp-cta-icon svg {
    width: 20px;
    height: 20px;
}

.pklhp-cta-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .pklhp-ctas-container {
        top: 50%;
        bottom: auto;
        left: auto;
        right: 0;
        width: auto;
        transform: translateY(-50%);
        flex-direction: column;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        gap: 12px;
        padding-right: 20px; /* Spacing from right edge */
    }

    .pklhp-cta-item {
        background-color: #1b4b72;
        color: #ffffff;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        position: relative;
        overflow: visible;
        flex: unset;
    }

    .pklhp-cta-item:hover {
        background-color: #0b2b48;
        transform: scale(1.05); /* Slight pop effect */
        color: #ffffff;
    }

    .pklhp-cta-icon {
        margin-bottom: 0; /* No margin needed for icon-only circle */
    }

    .pklhp-cta-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Tooltip effect on hover for Desktop */
    .pklhp-cta-label {
        position: absolute;
        right: calc(100% + 15px);
        top: 50%;
        transform: translateY(-50%);
        background-color: #222222;
        color: #ffffff;
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 13px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }
    
    .pklhp-cta-label::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent transparent #222222;
    }

    .pklhp-cta-item:hover .pklhp-cta-label {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0); /* Add a slight slide in if combined with initial translateX on the base state, but let's keep it simple */
    }
}
