
.aff-top-tool-bar {
    direction: ltr;
    height: 45px;
    background: #EAEDED;
    border-bottom: 2px solid #ffa724;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform .2s ease;
}

.aff-top-tool-bar.hide-bar {
    transform: translateX(calc(-100% + 30px));
    border-radius: 0 4px 4px 0;
}

@media (max-width: 769px) {
    .aff-top-tool-bar.hide-bar {
        transform: translateX(calc(-100% + 25px));
    }
}

.aff-bar-left {
    width: 20px;
}

.aff-bar-content {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.aff-get-link {
    flex-direction: column;
    align-items: flex-start;
    font-size: 10px;
}

.aff-get-link .aff-link-option {
    font-size: 13px;
    line-height: 1;
}

.aff-label {
    font-size: 10px;
    text-transform: capitalize;
    line-height: 1.2;
}

.aff-share-box {
    display: flex;
    align-items: center;
    height: 100%;
}

.aff-share-box {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #d5dbdb;
}

.aff-link-text-btn {
    display: inline-block;
}

.aff-link-image-btn {
    display: inline-block;

}

.aff-link-option,
.aff-icon-option {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aff-icon-option {
    margin-left: 8px;
}

.aff-link-option li,
.aff-icon-option li {
    position: relative;
    margin-right: 5px;
    margin-top: 6px;
    cursor: pointer;
}

.aff-link-option span {
    color: #0066c0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.aff-link-option span:hover {
    color: #C45500;
}

.aff-link-option span.disabled {
    color: #999;
    cursor: not-allowed;
}

.aff-icon-option i {
    font-size: 22px;
    cursor: pointer;
}

.aff-popover {
    position: absolute;
    top: 35px;
    left: 0;
    width: 560px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 15px;
    display: none;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

.aff-popover.show {
    display: block;
}

.aff-close {
    position: absolute;
    right: 12px;
    top: 10px;
    cursor: pointer;
    font-size: 18px;
}

.aff-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.aff-subtitle {
    font-size: 13px;
    margin-bottom: 10px;
}

.aff-preview-textarea,
.aff-preview-image-textarea {
    width: 100%;
    min-height: 70px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    resize: none;
}

.aff-btn-box {
    text-align: right;
    margin-top: 10px;
}

.aff-btn-box button {
    background: #FFD814;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}

.aff-image-box {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
}

.aff-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aff-image-preview {
    width: 200px;
    height: 200px;
}

.aff-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aff-bar-right {
    height: 100%;
    display: flex;
    align-items: center;
    border-left: 1px solid #d5dbdb;
}

.aff-earnings {
    padding: 0 14px;
    color: #0066c0;
    cursor: pointer;
    font-size: 13px;
    text-transform: capitalize;
}

.aff-arrow-box {
    width: 30px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
}

@media (max-width: 769px) {

    .aff-popover {
        width: calc(100vw - 30px);
        left: -5px;
    }

    .aff-image-box {
        flex-direction: column;
    }

    .aff-image-preview {
        width: 100%;
        height: auto;
    }

    .aff-image-preview img {
        max-height: 200px;
    }

    .aff-earnings {
        display: none;
    }
}
