/* Odyssix Smart Phone - Frontend Styles */
.osp-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.osp-phone:hover { opacity: 0.85; }

.osp-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.osp-phone-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.osp-phone-label {
    font-size: 0.85em;
    opacity: 0.7;
}

.osp-phone-number, .osp-number-text {
    font-weight: 600;
}

/* Button style */
.osp-phone--button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #3c72fc;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.osp-phone--button:hover {
    background: #2b5fd9;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(60, 114, 252, 0.3);
}

/* Card style */
.osp-phone--card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #f8f9fc;
    border-radius: 12px;
    border: 1px solid #e5e9f2;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
.osp-phone--card:hover {
    border-color: #3c72fc;
    box-shadow: 0 4px 20px rgba(60, 114, 252, 0.1);
}
.osp-phone--card .osp-phone-icon {
    width: 44px;
    height: 44px;
    background: #3c72fc;
    color: #fff;
    border-radius: 10px;
    padding: 10px;
}
.osp-phone--card .osp-phone-info {
    display: flex;
    flex-direction: column;
}
.osp-phone--card .osp-phone-label {
    font-size: 0.8em;
    opacity: 0.6;
    margin-bottom: 2px;
}
.osp-phone--card .osp-phone-number {
    font-size: 1.15em;
    font-weight: 700;
    color: #1d1d1f;
}

/* Compact inline */
.osp-phone--compact {
    font-weight: 600;
    color: #3c72fc;
}
.osp-phone--compact:hover { text-decoration: underline; }

/* Responsive: bigger tap target on mobile */
@media (max-width: 768px) {
    .osp-phone--button {
        padding: 14px 28px;
        font-size: 1.05em;
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   WhatsApp Click-to-Chat Widget
   ===================================================== */
.osp-wa-widget {
    position: fixed;
    bottom: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.osp-wa-widget.osp-wa--right { right: 24px; align-items: flex-end; }
.osp-wa-widget.osp-wa--left  { left:  24px; align-items: flex-start; }

.osp-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* entrance animation */
    animation: osp-wa-entrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.osp-wa-btn:hover,
.osp-wa-btn:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    outline: none;
}

/* Pulse ring – shows only until first interaction */
.osp-wa-widget:not(.osp-wa--interacted) .osp-wa-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid rgba(37, 211, 102, 0.5);
    animation: osp-wa-pulse 2s ease-out infinite;
}

/* Tooltip */
.osp-wa-tooltip {
    position: absolute;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(4px);
    bottom: calc(100% + 12px);
}

/* Arrow on tooltip */
.osp-wa-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    border: 6px solid transparent;
    border-top-color: #1a1a1a;
}

.osp-wa-widget.osp-wa--right .osp-wa-tooltip { right: 0; }
.osp-wa-widget.osp-wa--right .osp-wa-tooltip::after { right: 24px; }
.osp-wa-widget.osp-wa--left  .osp-wa-tooltip { left: 0; }
.osp-wa-widget.osp-wa--left  .osp-wa-tooltip::after { left: 24px; }

.osp-wa-btn:hover .osp-wa-tooltip,
.osp-wa-btn:focus .osp-wa-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Icon */
.osp-wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* Keyframes */
@keyframes osp-wa-entrance {
    from { opacity: 0; transform: scale(0.4) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes osp-wa-pulse {
    0%   { transform: scale(1);    opacity: 0.8; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Visibility modifiers injected by JS */
.osp-wa-widget.osp-wa--mobile-only  { display: none !important; }
.osp-wa-widget.osp-wa--desktop-only { display: none !important; }

@media (max-width: 768px) {
    .osp-wa-widget.osp-wa--mobile-only  { display: flex !important; }
}
@media (min-width: 769px) {
    .osp-wa-widget.osp-wa--desktop-only { display: flex !important; }
}
