﻿
.expandable-icon-btn {
    width: 25px;
    height: 34px;
    border: 1px solid #cdcdcd;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    transition: width 0.2s ease-in-out;
}

.expandable-add-btn:hover {
    width: 120px;
}

.expandable-add-btn::before {
    transition: width 0.2s ease-in-out, border-radius 0.2s ease-in-out;
    content: "";
    position: absolute;
    height: 3px;
    width: 12px;
    top: calc(50% - 2px);
    background: red;
}

.expandable-add-btn::after {
    transition: width 0.2s ease-in-out, border-radius 0.2s ease-in-out;
    content: "";
    position: absolute;
    height: 3px;
    width: 12px;
    top: calc(50% - 2px);
    background: red;
}


.expandable-add-btn::after {
    right: 14px;
    overflow: hidden;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

.expandable-add-btn::before {
    left: 14px;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.expandable-icon-btn:focus {
    outline: none;
}

.expandable-btn-txt {
    opacity: 0;
    transition: opacity 0.2s;
}

.expandable-add-btn:hover::before,
.expandable-add-btn:hover::after {
    width: 4px;
    border-radius: 2px;
}

.expandable-add-btn:hover .expandable-btn-txt {
    opacity: 1;
}

.expandable-add-icon::after,
.expandable-add-icon::before {
    transition: all 0.2s ease-in-out;
    content: "";
    position: absolute;
    height: 20px;
    width: 2px;
    top: calc(50% - 10px);
    background: red;
    overflow: hidden;
}

.expandable-add-icon::before {
    left: 18px;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

.expandable-add-icon::after {
    right: 18px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

.expandable-add-btn:hover .expandable-add-icon::before {
    left: 15px;
    height: 4px;
    top: calc(50% - 2px);
}

.expandable-add-btn:hover .expandable-add-icon::after {
    right: 15px;
    height: 4px;
    top: calc(50% - 2px);
}
