.aban-plugin-template[hidden] {
    display: none !important;
}

.aban-custom-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin: 12px 0;
    box-sizing: border-box;
}

.aban-custom-btn {
    appearance: none;
    border: 0;
    border-radius: 6px;
    min-height: 42px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease;
}

.aban-custom-btn:hover {
    opacity: .9;
}

.aban-measure-btn,
.aban-contact-btn,
.aban-samples-btn {
    color: #fff !important;
    background: #198754;
}

.aban-custom-btn:disabled,
.aban-samples-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.aban-custom-btn:focus-visible,
.aban-video-close:focus-visible {
    outline: 3px solid rgba(25, 135, 84, .35);
    outline-offset: 2px;
}

.aban-video-modal[hidden] {
    display: none !important;
}

.aban-video-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.aban-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .82);
}

.aban-video-modal-content {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    max-height: 90vh;
    background: #000;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.aban-video-modal-content video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82vh;
    border-radius: 6px;
    background: #000;
}

.aban-video-close {
    position: absolute;
    top: -44px;
    right: 0;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
}

html.aban-video-open,
body.aban-video-open {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .aban-custom-buttons {
        gap: 8px;
    }

    .aban-custom-btn {
        flex: 1 1 auto;
        min-height: 40px;
        padding: 8px 11px;
        font-size: 13px;
    }

    .aban-video-modal {
        padding: 10px;
    }

    .aban-video-modal-content {
        width: 100%;
        padding: 6px;
        border-radius: 8px;
    }

    .aban-video-close {
        top: -40px;
        width: 32px;
        height: 32px;
        font-size: 27px;
        line-height: 32px;
    }
}
