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

.irp-wa-widget {
    --irp-wa-primary: #0b2857;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
    font-family: inherit;
}

.irp-wa-launcher,
.irp-wa-launcher:hover,
.irp-wa-launcher:focus,
.irp-wa-launcher:active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    min-width: 62px;
    max-width: 62px;
    height: 62px;
    min-height: 62px;
    max-height: 62px;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 4px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
}

.irp-wa-launcher img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
}

.irp-wa-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: min(390px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(11, 40, 87, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transform-origin: bottom right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.irp-wa-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.irp-wa-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    background: var(--irp-wa-primary);
    color: #fff;
}

.irp-wa-header strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1.2;
}

.irp-wa-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.45;
}

.irp-wa-close,
.irp-wa-close:hover,
.irp-wa-close:focus,
.irp-wa-close:active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.irp-wa-body {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: #f6f8fb;
}

.irp-wa-option {
    display: grid;
    grid-template-columns: 42px 1fr 18px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 105px;
    margin: 0;
    padding: 16px;
    border: 1px solid #dce3ec;
    border-radius: 13px;
    background: #fff;
    color: #17243b;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.irp-wa-option:hover,
.irp-wa-option:focus {
    border-color: var(--irp-wa-primary);
    box-shadow: 0 8px 20px rgba(11, 40, 87, 0.1);
    transform: translateY(-1px);
}

.irp-wa-option:disabled {
    cursor: wait;
    opacity: 0.65;
}

.irp-wa-option-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(11, 40, 87, 0.08);
}

.irp-wa-option-icon span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--irp-wa-primary);
}

.irp-wa-option-copy strong,
.irp-wa-option-copy small {
    display: block;
}

.irp-wa-option-copy strong {
    margin-bottom: 5px;
    color: #0b2857;
    font-size: 15px;
    line-height: 1.25;
}

.irp-wa-option-copy small {
    color: #657187;
    font-size: 12px;
    line-height: 1.4;
}

.irp-wa-option-arrow {
    color: var(--irp-wa-primary);
    font-size: 26px;
}

.irp-wa-status {
    min-height: 0;
    margin: 0;
    color: #2f6f3e;
    font-size: 12px;
}

.irp-wa-status:empty {
    display: none;
}

.irp-wa-status.is-error {
    color: #b42318;
}

@media (max-width: 600px) {
    .irp-wa-widget {
        right: 14px;
        bottom: 14px;
    }

    .irp-wa-launcher,
    .irp-wa-launcher:hover,
    .irp-wa-launcher:focus,
    .irp-wa-launcher:active {
        width: 58px;
        min-width: 58px;
        max-width: 58px;
        height: 58px;
        min-height: 58px;
        max-height: 58px;
    }

    .irp-wa-panel {
        position: fixed;
        right: 12px;
        bottom: 82px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}
