.dil-wa-widget {
    --dil-wa-navy: #0b2342;
    --dil-wa-navy-deep: #071421;
    --dil-wa-navy-soft: #153d67;
    --dil-wa-gold: #f0b51a;
    --dil-wa-gold-hover: #ffc83d;
    --dil-wa-ink: #132944;
    --dil-wa-muted: #64748b;
    --dil-wa-line: #dce5ef;
    --dil-wa-surface: #f4f7fb;
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99998;
    color: var(--dil-wa-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dil-wa-widget,
.dil-wa-widget * {
    box-sizing: border-box;
}

.dil-wa-widget__launcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 11px 17px 11px 13px;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dil-wa-navy), var(--dil-wa-navy-soft)) !important;
    color: #fff !important;
    box-shadow: 0 14px 36px rgba(7, 20, 33, .26);
    font: 750 14px/1.2 inherit;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.dil-wa-widget__launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(7, 20, 33, .32);
}

.dil-wa-widget__launcher:focus-visible,
.dil-wa-widget__panel a:focus-visible,
.dil-wa-widget__panel button:focus-visible {
    outline: 3px solid rgba(240, 181, 26, .48);
    outline-offset: 3px;
}

.dil-wa-widget__launcher svg {
    width: 27px;
    height: 27px;
    color: var(--dil-wa-gold) !important;
}

.dil-wa-widget__launcher i {
    position: absolute;
    top: 1px;
    right: 4px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--dil-wa-navy);
    border-radius: 50%;
    background: var(--dil-wa-gold);
}

.dil-wa-widget__panel {
    position: absolute;
    right: 0;
    bottom: 64px;
    width: min(356px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid rgba(11, 35, 66, .12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(7, 20, 33, .25);
    transform-origin: bottom right;
    animation: dil-wa-in .18s ease-out;
}

.dil-wa-widget__panel[hidden] { display: none; }

.dil-wa-widget__panel header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 16px 15px;
    border-bottom: 4px solid var(--dil-wa-gold);
    background: linear-gradient(135deg, var(--dil-wa-navy-deep), var(--dil-wa-navy-soft));
    color: #fff;
}

.dil-wa-widget__panel header div {
    display: grid;
    flex: 1;
    gap: 3px;
    min-width: 0;
}

.dil-wa-widget__panel header strong {
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
}

.dil-wa-widget__panel header small {
    overflow: hidden;
    color: #d7e2ef;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dil-wa-widget__panel header button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.dil-wa-widget__mark {
    display: grid;
    flex: 0 0 39px;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: var(--dil-wa-gold);
    font-size: 20px;
    font-weight: 850;
    overflow: hidden;
    padding: 6px;
}

.dil-wa-widget__mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dil-wa-widget__mark > span {
    font-size: 13px;
    letter-spacing: .04em;
}

.dil-wa-widget__body {
    padding: 16px 16px 12px;
    background: var(--dil-wa-surface);
}

.dil-wa-widget__body p {
    margin: 0 0 9px;
    padding: 13px 14px;
    border: 1px solid rgba(11, 35, 66, .07);
    border-radius: 4px 14px 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(11, 35, 66, .06);
    color: var(--dil-wa-ink);
    font-size: 14px;
    line-height: 1.5;
}

.dil-wa-widget__body span {
    color: var(--dil-wa-muted);
    font-size: 11.5px;
}

.dil-wa-widget__actions {
    display: grid;
    gap: 8px;
    padding: 13px 16px 14px;
}

.dil-wa-widget__actions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none !important;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.dil-wa-widget__actions a:hover { transform: translateY(-1px); }

.dil-wa-widget__primary {
    border: 1px solid var(--dil-wa-gold);
    background: var(--dil-wa-gold);
    color: var(--dil-wa-navy-deep) !important;
}

.dil-wa-widget__primary:hover {
    border-color: var(--dil-wa-gold-hover);
    background: var(--dil-wa-gold-hover);
}

.dil-wa-widget__secondary {
    border: 1px solid var(--dil-wa-line);
    background: #fff;
    color: var(--dil-wa-navy) !important;
}

.dil-wa-widget__secondary:hover {
    border-color: rgba(11, 35, 66, .32);
    background: var(--dil-wa-surface);
}

.dil-wa-widget__panel footer {
    padding: 0 16px 13px;
    color: #8290a2;
    font-size: 10.5px;
    text-align: center;
}

@keyframes dil-wa-in {
    from { opacity: 0; transform: translateY(9px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
    .dil-wa-widget { right: 13px; bottom: 13px; }
    .dil-wa-widget__launcher { padding: 11px; }
    .dil-wa-widget__launcher span { display: none; }
    .dil-wa-widget__panel { bottom: 60px; width: min(344px, calc(100vw - 26px)); }
}

@media (prefers-reduced-motion: reduce) {
    .dil-wa-widget__launcher,
    .dil-wa-widget__actions a,
    .dil-wa-widget__panel { animation: none; transition: none; }
}
