/* FIXED CSS - Copy this to your stylesheet */
/* Changed class name from oceanic_share_price_2 to oceanic_share_price to match HTML */

.consult_btn.oceanic_share_price {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #a82682 0%, #e5097f 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 70px;
}

.consult_btn.oceanic_share_price:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.consult_btn.oceanic_share_price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.consult_btn.oceanic_share_price:hover::before {
    left: 100%;
}

.stock_icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stock_info {
    flex: 1;
    color: white;
}

.company_name {
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 5px 0;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.price_line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#stockPrice {
    font-size: 20px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.price_change {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.price_change.positive {
    background: rgba(255, 255, 255);
    color: #22c55e;
}

.price_change.negative {
    background: rgba(255, 255, 255);
    color: #ef4444;
}

.change_arrow {
    font-size: 10px;
    font-style: normal;
}

/* Loading animation */
.loading .stock_info::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* MOBILE STOCK WIDGET STYLES - Add this to your CSS file */

/* Container for mobile stock widget */
.mobile-stock-widget {
    padding: 15px;
    margin: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile-specific stock widget styling */
.oceanic_share_price_mobile {
    background: linear-gradient(135deg, #a82682 0%, #e5097f 100%);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.oceanic_share_price_mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Mobile stock icon */
.oceanic_share_price_mobile .stock_icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Mobile stock info */
.oceanic_share_price_mobile .stock_info {
    flex: 1;
    color: white;
}

.oceanic_share_price_mobile .company_name {
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 5px 0;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.oceanic_share_price_mobile .price_line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.oceanic_share_price_mobile #stockPriceMobile {
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.oceanic_share_price_mobile .price_change {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.oceanic_share_price_mobile .price_change.positive {
    background: rgba(255, 255, 255, 0.95);
    color: #22c55e;
}

.oceanic_share_price_mobile .price_change.negative {
    background: rgba(255, 255, 255, 0.95);
    color: #ef4444;
}

.oceanic_share_price_mobile .change_arrow {
    font-size: 10px;
    font-style: normal;
}

/* Loading animation for mobile */
.oceanic_share_price_mobile.loading .stock_info::after {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================
   FIX: HIDE DESKTOP WIDGET ON MOBILE DEVICES
   ============================================ */

/* Hide desktop widget on tablets and mobile */
@media (max-width: 991px) {
    /* Hide the desktop stock widget (the one in header) */
    .consult_btn.oceanic_share_price:not(.oceanic_share_price_mobile) {
        display: none !important;
    }
}

/* Show only mobile widget on small screens */
@media (max-width: 768px) {
    /* Ensure desktop widget is hidden */
    .consult_btn.oceanic_share_price:not(.oceanic_share_price_mobile) {
        display: none !important;
    }
    
    /* Ensure mobile widget is visible */
    .mobile-stock-widget {
        display: block;
    }
    
    .oceanic_share_price_mobile {
        display: flex !important;
    }
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    .mobile-stock-widget {
        padding: 12px;
    }
    
    .oceanic_share_price_mobile {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .oceanic_share_price_mobile .stock_icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .oceanic_share_price_mobile #stockPriceMobile {
        font-size: 16px;
    }
    
    .oceanic_share_price_mobile .company_name {
        font-size: 10px;
    }
}
