/*
 * Product dialog styles.
 *
 * Shared by the Issuance product summary dialog and the Product Explorer product dialog,
 * so both render a product the same way. Previously inline in IssuanceProductSummaryDialog.razor.
 */

.im-prod-dialog {
    width: min(1120px, calc(100vw - 56px));
    max-height: calc(100vh - 56px);
    overflow: auto;
    background: #FFFFFF;
    color: #0F172A;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border: 1px solid #D9E2EE;
    box-shadow: 0 26px 70px rgba(15, 35, 62, 0.20);
}

.im-prod-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 18px;
    background: #020817;
    color: #F8FAFC;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.im-prod-brandline {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.im-prod-dotmark {
    width: 46px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    color: #FFFFFF;
    flex: 0 0 auto;
}

    .im-prod-dotmark::before,
    .im-prod-dotmark::after {
        content: "";
        position: absolute;
        top: 7px;
        width: 15px;
        height: 2px;
        background: currentColor;
        opacity: 0.82;
    }

    .im-prod-dotmark::before {
        left: 9px;
    }

    .im-prod-dotmark::after {
        right: 9px;
    }

    .im-prod-dotmark span {
        width: 10px;
        height: 10px;
        border: 2px solid currentColor;
        border-radius: 999px;
        background: transparent;
        z-index: 1;
    }

    .im-prod-dotmark i {
        width: 11px;
        height: 11px;
        border-radius: 999px;
        background: currentColor;
        z-index: 1;
    }

.im-prod-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    padding: 28px 28px 26px;
    background: radial-gradient(circle at top right, rgba(59,130,246,0.18), transparent 34%), linear-gradient(135deg, #0B1220 0%, #0F233E 58%, #122C52 100%);
    color: #FFFFFF;
}

.im-prod-issuer {
    color: #93C5FD;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.im-prod-hero h2 {
    max-width: 820px;
    margin: 9px 0 0;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.im-prod-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.im-prod-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 850;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #E2E8F0;
}

.im-prod-chip-market {
    background: rgba(37, 99, 235, 0.20);
    border-color: rgba(96, 165, 250, 0.48);
    color: #DBEAFE;
}

.im-prod-chip-traded {
    background: rgba(16,185,129,0.16);
    border-color: rgba(16,185,129,0.34);
    color: #A7F3D0;
}

.im-prod-chip-neutral {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
    color: #E2E8F0;
}

.im-prod-hero-side {
    display: grid;
    gap: 8px;
    align-content: start;
}

    .im-prod-hero-side div {
        background: rgba(255,255,255,0.075);
        border: 1px solid rgba(255,255,255,0.13);
        padding: 12px;
    }

    .im-prod-hero-side span {
        display: block;
        color: #C7D2FE;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .im-prod-hero-side strong {
        display: block;
        margin-top: 5px;
        color: #FFFFFF;
        font-size: 15px;
        font-weight: 900;
    }

.im-prod-body {
    padding: 22px;
    background: #F6F8FB;
}

.im-prod-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.im-prod-section-head-spaced {
    margin-top: 20px;
}

.im-prod-section-head span {
    display: block;
    color: #2563EB;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.im-prod-section-head h3 {
    margin: 4px 0 0;
    color: #0F233E;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.025em;
}

.im-prod-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.im-prod-card,
.im-prod-context-card {
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid #DDE6F2;
    padding: 14px;
    box-shadow: 0 1px 0 rgba(15,35,62,0.02);
}

    .im-prod-card span,
    .im-prod-context-card span {
        display: block;
        color: #94A3B8;
        font-size: 10px;
        font-weight: 950;
        letter-spacing: 0.075em;
        text-transform: uppercase;
    }

    .im-prod-card strong {
        display: block;
        margin-top: 8px;
        color: #0F172A;
        font-size: 13px;
        line-height: 1.32;
        font-weight: 850;
    }

.im-prod-context {
    margin-top: 20px;
    padding: 18px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
}

.im-prod-context-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.im-prod-context-card {
    background: #FBFCFE;
}

    .im-prod-context-card strong {
        display: block;
        margin-top: 8px;
        color: #0F233E;
        font-size: 28px;
        line-height: 1;
        font-weight: 950;
        letter-spacing: -0.045em;
    }

    .im-prod-context-card p {
        margin: 8px 0 0;
        color: #64748B;
        font-size: 11.5px;
        line-height: 1.4;
    }

.im-prod-actions {
    margin-top: 20px;
    padding: 18px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
}

.im-prod-action-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.im-prod-action {
    min-height: 68px;
    border: 1px solid #D8E2EF;
    background: #FFFFFF;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

    .im-prod-action::after {
        content: "→";
        color: #64748B;
        font-size: 16px;
        font-weight: 950;
        flex: 0 0 auto;
    }

    .im-prod-action span {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .im-prod-action strong {
        color: #0F172A;
        font-size: 13px;
        font-weight: 900;
        line-height: 1.15;
    }

    .im-prod-action em {
        color: #64748B;
        font-size: 11px;
        font-style: normal;
        font-weight: 700;
        line-height: 1.15;
    }

    .im-prod-action:hover:not(:disabled) {
        background: #F8FBFF;
        border-color: #B7D0F5;
        box-shadow: 0 10px 24px rgba(15,35,62,0.08);
        transform: translateY(-1px);
    }

.im-prod-action-primary {
    background: #0F233E;
    border-color: #0F233E;
}

    .im-prod-action-primary strong,
    .im-prod-action-primary em,
    .im-prod-action-primary::after {
        color: #FFFFFF;
    }

    .im-prod-action-primary:hover:not(:disabled) {
        background: #123056;
        border-color: #123056;
    }

.im-prod-action-locked {
    opacity: 0.58;
    cursor: not-allowed;
    background: #F8FAFC;
}

    .im-prod-action-locked::after {
        content: "LOCKED";
        color: #94A3B8;
        font-size: 10px;
        font-weight: 950;
        letter-spacing: 0.06em;
    }

    .im-prod-action-locked:hover {
        transform: none;
        box-shadow: none;
        border-color: #D8E2EF;
    }

.im-prod-bookmark-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(251,191,36,.12);
    border: 1px solid rgba(251,191,36,.36);
    color: #FDE68A;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.im-prod-action-bookmarked {
    border-color: #BFDBFE;
    background: #EFF6FF;
}

    .im-prod-action-bookmarked strong {
        color: #0F233E;
    }

.im-prod-state-indicators {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.im-prod-watch-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(14,165,233,.12);
    border: 1px solid rgba(14,165,233,.38);
    color: #BAE6FD;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.im-prod-action-watched {
    border-color: #7DD3FC;
    background: #EFF6FF;
}

    .im-prod-action-watched strong {
        color: #0F233E;
    }

.im-prod-footer {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #E2E8F0;
    color: #64748B;
    font-size: 12px;
    font-weight: 800;
}

    .im-prod-footer strong {
        color: #2563EB;
    }

    .im-prod-footer button {
        margin-left: auto;
        border: 0;
        background: transparent;
        color: #2563EB;
        font-weight: 950;
        cursor: pointer;
    }

@media (max-width: 1050px) {
    .im-prod-hero {
        grid-template-columns: 1fr;
    }

    .im-prod-hero-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .im-prod-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .im-prod-context-grid,
    .im-prod-action-grid {
        grid-template-columns: 1fr;
    }

    .im-prod-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .im-prod-dialog {
        width: calc(100vw - 22px);
    }

    .im-prod-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

        .im-prod-footer button {
            margin-left: 0;
        }

    .im-prod-hero,
    .im-prod-body {
        padding: 18px;
    }

        .im-prod-hero h2 {
            font-size: 22px;
        }

    .im-prod-hero-side,
    .im-prod-grid {
        grid-template-columns: 1fr;
    }
}
