.websima-bmi-calc-icon {
    display: inline-block;
    width: 19px;
    height: 19px;
    background-color: #008bd2ff;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    vertical-align: middle;
}

.websima-bmi-calc-icon.wbmi-icon-ruler {
    -webkit-mask-image: url("../icons/ruler.svg");
    mask-image: url("../icons/ruler.svg");
}

.websima-bmi-calc-icon.wbmi-icon-weight {
    -webkit-mask-image: url("../icons/weight.svg");
    mask-image: url("../icons/weight.svg");
}

.websima-bmi-calc-icon.wbmi-icon-notice {
    -webkit-mask-image: url("../icons/notice.svg");
    mask-image: url("../icons/notice.svg");
}

.websima-bmi-calc-icon.wbmi-icon-notice.wbmi-notice {
    -webkit-mask-image: url("../icons/notice.svg");
    mask-image: url("../icons/notice.svg");
    background-color: #fff;
}

.websima-bmi-calc-icon.wbmi-icon-close {
    -webkit-mask-image: url("../icons/close.svg");
    background-color: #fff;
    mask-image: url("../icons/close.svg");
}

.websima-bmi-calc-icon.wbmi-icon-arrow {
    -webkit-mask-image: url("../icons/arrow.svg");
    mask-image: url("../icons/arrow.svg");
}

.woocommerce-mini-cart .detail-mini .quantity {
    justify-content: flex-start !important;
}

.websima-bmi-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.websima-bmi-modal-overlay.websima-active {
    display: flex;
    opacity: 1;
}

.websima-bmi-modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 2rem;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.websima-bmi-modal-content::-webkit-scrollbar {
    width: 6px;
}

.websima-bmi-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.websima-bmi-modal-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.websima-bmi-modal-overlay.websima-active .websima-bmi-modal-content {
    transform: scale(1);
}

.websima-bmi-close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #038dd3;
    border: 1px solid #fff;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: 0.2s;
}

.websima-bmi-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #038dd3;
    border: 1px solid #038dd3;
}

.websima-bmi-close-btn:hover .websima-bmi-calc-icon.wbmi-icon-close {
    background: #038dd3;
}

.websima-bmi-trigger-btn {
    background: linear-gradient(to right, #008bd2, #4dbae8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: "Vazirmatn", sans-serif;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 139, 210, 0.3);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.websima-bmi-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 139, 210, 0.4);
}

.websima-bmi-header {
    background: linear-gradient(to right, #008bd2, #4dbae8);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.websima-bmi-header {
    background: linear-gradient(to right, #008bd2, #4dbae8);
    padding: 1rem 0 4.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    height: 100px;
}

.websima-bmi-header p {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    opacity: 0.9;
    font-weight: 500;
}

.websima-bmi-controls {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background-color: white;
}

.websima-bmi-control-box {
    background-color: #f8fafc;
    border-radius: 1.5rem;
    border: 2px solid #f1f5f9;
    height: 16rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}

.websima-bmi-control-box:hover {
    border-color: rgba(0, 139, 210, 0.3);
}

.websima-bmi-label-row {
    padding: 1rem 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 700;
}

.websima-bmi-input-display {
    width: 100%;
    background: transparent;
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    color: #334155;
    border: none;
    outline: none;
    margin-bottom: 1rem;
}

.websima-range-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.websima-range-input {
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    cursor: pointer;
    z-index: 20;
    position: absolute;
    inset: 0;
    margin: 0;
}

.websima-range-input::-moz-range-thumb {
    opacity: 0;
    border: none;
}

.websima-range-input::-moz-range-track {
    background: transparent;
}

.websima-pointer-up::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid white;
    margin-bottom: 2px;
}

.websima-pointer-right::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid white;
    margin-right: 2px;
}

.websima-weight-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

.websima-ticks-h {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    opacity: 0.5;
    pointer-events: none;
}

.websima-ticks-h div {
    background-color: #cbd5e1;
}

.websima-ticks-h div:nth-child(5n + 1) {
    height: 12px;
    width: 1px;
}

.websima-ticks-h div:not(:nth-child(5n + 1)) {
    height: 6px;
    width: 1px;
}

.websima-track-h {
    position: absolute;
    bottom: 0.5rem;
    left: 0.75rem;
    right: 0.75rem;
    height: 1px;
    background-color: #e2e8f0;
    pointer-events: none;
}

.websima-height-layout {
    display: flex;
    flex: 1;
    position: relative;
    margin-top: 0.5rem;
}

.websima-height-display-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.websima-ticks-v {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    align-items: flex-end;
    opacity: 0.5;
    pointer-events: none;
}

.websima-ticks-v div {
    background-color: #cbd5e1;
}

.websima-ticks-v div:nth-child(5n + 1) {
    width: 16px;
    height: 1px;
}

.websima-ticks-v div:not(:nth-child(5n + 1)) {
    width: 8px;
    height: 1px;
}

.websima-result-section {
    padding: 0 1.5rem 1.5rem;
}

.websima-result-card {
    background-color: white;
    border-radius: 1.5rem;
    padding: 1.25rem;
    border: 2px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    transition: border-color 0.5s;
}

.websima-status-bg {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 139, 210, 0.05);
    transition: background-color 0.5s;
}

.websima-result-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.websima-body-svg {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    fill: currentColor;
    color: #cbd5e1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.websima-result-text {
    flex: 1;
    text-align: right;
}

.websima-bmi-value {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -0.05em;
    direction: ltr;
    display: inline-block;
}

.websima-bmi-unit {
    font-size: 0.875rem;
    font-weight: 700;
    color: #94a3b8;
}

.websima-bmi-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    font-size: 0.875rem;
    font-weight: 700;
    color: #64748b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.websima-bmi-message {
    margin-top: 1rem;
    font-size: 0.75rem;
    text-align: center;
    color: #64748b;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(241, 245, 249, 0.5);
}

.websima-accordion {
    margin-top: 1rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.5rem;
}

.websima-acc-btn {
    width: 100%;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #94a3b8;
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.websima-acc-btn:hover {
    color: #008bd2;
}

.websima-acc-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.websima-acc-inner {
    background-color: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    color: #475569;
}

.websima-acc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.websima-footer {
    background-color: #f8fafc;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.625rem;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 480px) {
    .websima-bmi-controls {
        grid-template-columns: 1fr;
    }

    .websima-bmi-control-box {
        height: 14rem;
    }
}

.websima-tick-big {
    height: 12px;
    width: 1px;
    background-color: #cbd5e1;
}

.websima-tick-small {
    height: 6px;
    width: 1px;
    background-color: #cbd5e1;
}

.websima-result-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.websima-result-value-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.websima-acc-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.websima-acc-footer {
    text-align: center;
    color: #008bd2;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.websima-bmi-control-box {
    background-color: #f8fafc;
    border-radius: 1.5rem;
    border: 2px solid #f1f5f9;
    height: 16rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.websima-height-layout {
    display: flex;
    flex: 1;
    position: relative;
    margin-top: 0.5rem;
}

.websima-bmi-modal-content {
    background-color: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 2rem;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    overflow: hidden;
}

.websima-bmi-container {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding-left: 4px;
}

.websima-bmi-container::-webkit-scrollbar {
    width: 6px;
}

.websima-bmi-container::-webkit-scrollbar-track {
    background: transparent;
    margin: 1.5rem 0;
}

.websima-bmi-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}

.websima-slider-visual {
    position: absolute;
    width: 32px;
    height: 32px;
    background: #008bd2;
    border: 4px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
}

.websima-weight-layout .websima-slider-visual {
    top: 30%;
}

.websima-height-layout .websima-slider-visual {
    right: 0;
    left: auto;
}

.websima-ruler-h {
    width: calc(100% - 32px);
    margin: 0 auto;
    height: 3rem;
    position: relative;
    direction: ltr;
}

.websima-ruler-v {
    width: 4rem;
    position: relative;
    border-right: 1px solid #e2e8f0;
    /* background-color: white; */
    margin-right: 0.5rem;
    height: calc(100% - 40px);
    margin-top: 20px;
    margin-bottom: 20px;
    direction: ltr;
}

.websima-bmi-message-container {
    margin-top: 1rem;
    text-align: center;
}

.websima-consult-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.6rem 1.2rem;
    background-color: #f97316;
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
}

.websima-consult-btn:hover {
    transform: translateY(-2px);
    color: white;
}