#fhp-wrapper {
    position: fixed;
    bottom: 12px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.fhp-sub-buttons {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 16px;
    pointer-events: auto;
}

.fhp-sub-button-item {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #024b9b 0%, #0462c7 100%);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-radius 0.2s ease, background 0.25s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border: none;
    box-sizing: border-box;
}

.fhp-sub-button-item:hover,
.fhp-sub-button-item:focus,
.fhp-sub-button-item:active,
.fhp-sub-button-item:visited:hover,
.fhp-sub-button-item:visited:focus,
.fhp-sub-button-item:visited:active {
    background: linear-gradient(135deg, #e8ecf1 0%, #ffffff 100%);
    color: #024b9b;
    border-radius: 0 14px 14px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.fhp-sub-button-item:visited {
    color: #ffffff;
}

.fhp-sub-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fhp-sub-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: inherit;
}

.fhp-sub-icon i {
    font-size: 18px;
    color: inherit;
}

.fhp-btn-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.fhp-btn-num {
    font-size: 14px;
    font-weight: 700;
    color: inherit;
}

.fhp-sub-label {
    position: absolute;
    right: 56px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px 0 24px;
    background: linear-gradient(135deg, #024b9b 0%, #0462c7 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 14px 0 0 14px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.fhp-sub-button-item:hover .fhp-sub-label {
    background: linear-gradient(135deg, #e8ecf1 0%, #ffffff 100%);
    color: #024b9b;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.fhp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s ease;
}

.fhp-modal.active {
    visibility: visible;
    pointer-events: auto;
}

.fhp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fhp-modal.active .fhp-modal-overlay {
    opacity: 1;
}

.fhp-modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    transform: scale(0.92) translateY(20px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fhp-modal.active .fhp-modal-container {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.fhp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.fhp-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    font-family: inherit;
}

.fhp-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.fhp-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.fhp-modal-content {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    background: #ffffff;
}

.fhp-modal-content::-webkit-scrollbar {
    width: 8px;
}
.fhp-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.fhp-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.fhp-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

body.fhp-modal-open {
    overflow: hidden !important;
}
