.fml-float-menu {
display: flex;
flex-direction: column;
padding: 0;
margin: 0;
user-select: none;
}
.fml-button {
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
cursor: pointer;
border: none;
user-select: none;
margin: 0;
padding: 0;
-webkit-touch-callout: none;
-webkit-user-drag: none;
user-drag: none;
}
.fml-button:hover {
transform: scale(1.1);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.fml-button:active {
transform: scale(0.95);
}
.fml-icon {
display: block;
line-height: 1;
}
.fml-icon--image {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.fml-icon--image img {
max-width: 70%;
max-height: 70%;
object-fit: contain;
display: block;
} .fml-button-wrapper {
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
}
.fml-float-menu[data-position="right"] .fml-button-wrapper {
align-items: flex-end;
}
.fml-float-menu[data-position="left"] .fml-button-wrapper {
align-items: flex-start;
} .fml-dropdown-menu {
position: absolute;
top: 100%;
left: 0;
margin-top: 5px;
min-width: 200px;
max-width: 300px;
background-color: #ffffff;
border-radius: 4px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
z-index: 10001;
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
max-height: 0;
overflow: hidden;
pointer-events: none;
-webkit-user-select: none;
user-select: none;
}
.fml-dropdown-menu.fml-dropdown-open {
pointer-events: auto;
}
.fml-dropdown-menu-list a {
pointer-events: auto !important;
cursor: pointer !important;
-webkit-user-select: auto;
user-select: auto;
display: block !important;
position: relative;
z-index: 10002;
}
.fml-float-menu[data-position="right"] .fml-dropdown-menu {
left: auto;
right: 0;
}
.fml-float-menu[data-position="left"] .fml-dropdown-menu {
left: 0;
right: auto;
}
.fml-dropdown-menu.fml-dropdown-open {
opacity: 1;
visibility: visible;
transform: translateY(0);
max-height: 500px;
overflow-y: auto;
pointer-events: auto;
}
.fml-dropdown-menu-nav {
padding: 0;
pointer-events: auto;
position: relative;
z-index: 10002;
}
.fml-dropdown-menu-list {
list-style: none;
margin: 0;
padding: 0;
}
.fml-dropdown-menu-list li {
border-bottom: 1px solid #e0e0e0;
}
.fml-dropdown-menu-list li:last-child {
border-bottom: none;
}
.fml-dropdown-menu-list a {
display: block;
padding: 12px 16px;
color: #212632;
text-decoration: none;
font-size: 14px;
font-weight: 400;
transition: background-color 0.3s ease, color 0.3s ease;
white-space: nowrap;
cursor: pointer;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
touch-action: manipulation;
}
.fml-dropdown-menu-list a:hover {
background-color: #f0f0f0;
color: #0073aa;
}
.fml-dropdown-menu-list .current-menu-item > a,
.fml-dropdown-menu-list .current_page_item > a {
background-color: #f0f0f0;
color: #0073aa;
font-weight: 600;
} .fml-dropdown-menu-list .sub-menu {
list-style: none;
margin: 0;
padding: 0;
background-color: #f8f9fa;
display: none;
}
.fml-dropdown-menu-list .sub-menu.active {
display: block;
}
.fml-dropdown-menu-list .sub-menu li {
border-bottom: 1px solid #e8e8e8;
}
.fml-dropdown-menu-list .sub-menu a {
padding-left: 28px;
font-size: 13px;
}
.fml-dropdown-menu-list .menu-item-has-children {
position: relative;
}
.fml-dropdown-menu-list .menu-item-has-children > a::after {
content: '▶';
float: right;
font-size: 10px;
transition: transform 0.3s ease;
color: #999;
}
.fml-dropdown-menu-list .menu-item-has-children.active > a::after {
transform: rotate(90deg);
} @media (max-width: 768px) {
.fml-float-menu { }
.fml-dropdown-menu {
min-width: 180px;
max-width: 250px;
}
.fml-dropdown-menu-list a {
padding: 10px 14px;
font-size: 13px;
}
.fml-dropdown-menu-list .sub-menu a {
padding-left: 24px;
font-size: 12px;
}
} .fml-overlay {
position: fixed;
inset: 0;
z-index: 100000; display: none;
}
.fml-overlay.fml-overlay-open {
display: block;
}
.fml-overlay-backdrop {
position: absolute;
inset: 0;
background: rgba(0,0,0,0.6);
opacity: 0;
transition: opacity 0.3s ease;
}
.fml-overlay.fxml-animating .fml-overlay-backdrop,
.fml-overlay.fml-overlay-open .fml-overlay-backdrop {
opacity: 1;
}
.fml-overlay-panel {
position: absolute;
top: 0;
right: 0;
width: min(90vw, 420px);
height: 100%;
background: #ffffff;
transform: translateX(100%);
transition: transform 0.3s ease;
box-shadow: -8px 0 24px rgba(0,0,0,0.2);
display: flex;
flex-direction: column;
}
.fml-overlay.fml-overlay-open .fml-overlay-panel {
transform: translateX(0);
}
.fml-overlay-close {
align-self: flex-end;
background: transparent;
border: none;
font-size: 32px;
line-height: 1;
padding: 12px 16px;
cursor: pointer;
}
.fml-overlay-nav {
padding: 8px 0 16px 0;
overflow-y: auto;
}
.fml-overlay-menu-list {
list-style: none;
margin: 0;
padding: 0 16px 24px 16px;
}
.fml-overlay-menu-list li {
border-bottom: 1px solid #eee;
}
.fml-overlay-menu-list li:last-child {
border-bottom: none;
}
.fml-overlay-menu-list a {
display: block;
padding: 14px 8px;
color: #212632;
text-decoration: none;
font-size: 16px;
font-weight: 500;
}
.fml-overlay-menu-list a:hover {
background: #f7f7f7;
color: #0073aa;
}
.fml-overlay-menu-list .sub-menu {
list-style: none;
margin: 0 0 8px 0;
padding: 0 0 8px 12px;
border-left: 3px solid #f0f0f0;
}
.fml-overlay-menu-list .sub-menu a {
font-size: 14px;
padding: 10px 8px;
} body.fml-no-scroll {
overflow: hidden;
}