/**
 * Stock Price Data Shortcode Styles
 */

/* Container scoping - all styles prefixed */
.stock-price-data-container {
    display: flex;
    height: 196px;
    padding: 24px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    background: #F6F6F9;
    background: var(--Light-Gray, #F6F6F9);
    box-sizing: border-box;
    text-align: center;
}

.stock-price-data-container *,
.stock-price-data-container *::before,
.stock-price-data-container *::after {
    box-sizing: border-box;
}

/* Exchange name styling */
.stock-price-data-container .stock-exchange {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px;
    color: #080E2D;
    color: var(--Dark-blue, #080E2D);
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

/* Main price styling */
.stock-price-data-container .stock-price {
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: 58px;
    color: #080E2D;
    color: var(--Dark-blue, #080E2D);
    margin: 0;
    padding: 0;
}

/* Change indicator styling */
.stock-price-data-container .stock-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin: 0;
    padding: 0;
}

/* Positive change (green) */
.stock-price-data-container .stock-change.positive {
    color: #00B87C;
    color: var(--Success, #00B87C);
}

/* Negative change (red) */
.stock-price-data-container .stock-change.negative {
    color: #E53E3E;
    color: var(--Error, #E53E3E);
}

/* Arrow SVG styling */
.stock-price-data-container .stock-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    line-height: 1;
}

.stock-price-data-container .stock-arrow svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Time stamp styling */
.stock-price-data-container .stock-time {
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
    color: #666666;
    margin: 0;
    padding: 0;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .stock-price-data-container {
        height: auto;
        min-height: 160px;
        padding: 20px 12px;
    }

    .stock-price-data-container .stock-price {
        font-size: 36px;
        line-height: 44px;
    }

    .stock-price-data-container .stock-exchange {
        font-size: 14px;
        line-height: 18px;
    }

    .stock-price-data-container .stock-change {
        font-size: 12px;
        line-height: 16px;
    }

    .stock-price-data-container .stock-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* Breakdance compatibility overrides */
.breakdance .stock-price-data-container {
    margin: 0 !important;
    padding: 24px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.breakdance .stock-price-data-container * {
    margin: 0 !important;
    padding: 0 !important;
}

.breakdance .stock-price-data-container .stock-price {
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 48px !important;
    line-height: 58px !important;
}

.breakdance .stock-price-data-container .stock-exchange {
    font-size: 16px !important;
    line-height: 21px !important;
}

.breakdance .stock-price-data-container .stock-time {
    font-size: 10px !important;
    line-height: 18px !important;
}