﻿.rayasoft-brand {
    --rayasoft-navy: #0A2559;
    --rayasoft-orange: #F5620E;

    --rayasoft-fg: var(--rayasoft-navy);
    --rayasoft-fg-muted: #64748b;
    --rayasoft-line: rgba(10, 37, 89, 0.14);
    --rayasoft-chip: transparent;

    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-top: 1px solid var(--rayasoft-line);
    font-family: inherit;
    line-height: 1.5;
}

.rayasoft-brand__logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: var(--rayasoft-chip);
    text-decoration: none;
}

.rayasoft-brand__logo img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.rayasoft-brand__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rayasoft-brand__product {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--rayasoft-fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rayasoft-brand__product strong {
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--rayasoft-fg);
}

.rayasoft-brand__descriptor {
    font-size: 11px;
    color: var(--rayasoft-fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rayasoft-brand__links {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rayasoft-brand__links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid var(--rayasoft-line);
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--rayasoft-fg-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease;
}

.rayasoft-brand__links a:hover,
.rayasoft-brand__links a:focus-visible {
    color: var(--rayasoft-orange);
    border-color: var(--rayasoft-orange);
}

.rayasoft-brand__links a:focus-visible {
    outline: 2px solid var(--rayasoft-orange);
    outline-offset: 2px;
}

.rayasoft-brand__links i {
    font-size: 12px;
}

.rayasoft-brand--on-dark {
    --rayasoft-fg: #ffffff;
    --rayasoft-fg-muted: rgba(255, 255, 255, 0.62);
    --rayasoft-line: rgba(255, 255, 255, 0.10);
    --rayasoft-chip: rgba(255, 255, 255, 0.94);

    padding: 10px 16px;
    gap: 9px;

    flex-wrap: nowrap;
}

.rayasoft-brand--on-dark .rayasoft-brand__logo {
    width: 30px;
    height: 30px;
}

.rayasoft-brand--on-dark .rayasoft-brand__logo img {
    width: 23px;
    height: 23px;
}

.rayasoft-brand--on-dark .rayasoft-brand__links {
    gap: 4px;
}

.rayasoft-brand--on-dark .rayasoft-brand__links a {
    width: 24px;
    height: 24px;
    padding: 0;
    justify-content: center;
    border-color: transparent;
    background: rgba(255, 255, 255, 0.06);
}

.rayasoft-brand--on-dark .rayasoft-brand__descriptor {
    font-size: 10.5px;
}

.rayasoft-brand--on-dark .rayasoft-brand__links a:hover,
.rayasoft-brand--on-dark .rayasoft-brand__links a:focus-visible {
    color: #ffffff;
    background: var(--rayasoft-orange);
    border-color: transparent;
}

.rayasoft-brand--on-dark .rayasoft-brand__links span {
    display: none;
}

[data-theme="dark"] .rayasoft-brand:not(.rayasoft-brand--on-dark) {
    --rayasoft-fg: #e2e8f0;
    --rayasoft-fg-muted: #94a3b8;
    --rayasoft-line: rgba(255, 255, 255, 0.12);
    --rayasoft-chip: rgba(255, 255, 255, 0.92);
}

@media (max-width: 480px) {
    .rayasoft-brand:not(.rayasoft-brand--on-dark) {
        gap: 8px;
        padding: 10px 8px;
    }

    .rayasoft-brand:not(.rayasoft-brand--on-dark) .rayasoft-brand__links span {
        display: none;
    }

    .rayasoft-brand:not(.rayasoft-brand--on-dark) .rayasoft-brand__descriptor {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rayasoft-brand__links a {
        transition: none;
    }
}
