/* Scoped to agree-submit wrap — do not style global .disabled-button (auth/registration use it too). */

.agree-submit-wrap {
    position: relative;
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
}

/* Full-width parent so %-width buttons (e.g. supply) keep correct size */
.agree-submit-wrap--block {
    display: block;
    width: 100%;
}

.agree-submit-wrap .disabled-button {
    background: #b2b4b7 !important;
    border: 1px solid #555 !important;
    cursor: default !important;
    pointer-events: none;
}

.agree-submit-wrap.is-disabled {
    cursor: not-allowed;
}

/* pointer-events on button is none — hover hits wrap */
.agree-submit-wrap.is-disabled:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 280px;
    width: max-content;
    padding: 8px 12px;
    border-radius: 4px;
    background: #2b2b2b;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.agree-submit-wrap.is-disabled:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    z-index: 1001;
    border: 6px solid transparent;
    border-top-color: #2b2b2b;
    pointer-events: none;
}
