.moonshineCalc {
    position: relative;
    z-index: 10020;
    font-family: robotoregular, Arial, sans-serif;
    color: #52362A;
}

.moonshineCalcLauncher {
    position: fixed;
    left: 0;
    top: 50%;
    z-index: 10021;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 48px;
    min-height: 174px;
    padding: 12px 8px;
    border: 2px solid #FFC583;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: #52362A;
    color: #FFC583;
    box-shadow: 0 6px 18px rgba(82, 54, 42, 0.26);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease, width 0.2s ease;
}

.moonshineCalcLauncher:hover,
.moonshineCalcLauncher:focus {
    width: 54px;
    background: #FE8D0B;
    color: #fff;
    outline: 0;
}

.moonshineCalcLauncher svg {
    position: absolute;
    top: 12px;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.moonshineCalcLauncher span {
    display: block;
    margin-top: 28px;
    font: 13px robotobold, Arial, sans-serif;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

.moonshineCalcShade {
    position: fixed;
    inset: 0;
    z-index: 10022;
    display: none;
    background: rgba(82, 54, 42, 0.72);
}

.moonshineCalcPanel {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10023;
    display: none;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    border: 2px solid #FFC583;
    border-radius: 8px;
    background: #FFF9F1;
    box-shadow: 0 20px 60px rgba(42, 24, 18, 0.42);
    transform: translate(-50%, -48%);
}

.moonshineCalc.is-open .moonshineCalcShade,
.moonshineCalc.is-open .moonshineCalcPanel {
    display: block;
}

.moonshineCalc.is-open .moonshineCalcPanel {
    animation: moonshineCalcIn 0.18s ease forwards;
}

@keyframes moonshineCalcIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.moonshineCalcClose {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 2px solid #FE8D0B;
    border-radius: 5px;
    background: #FFF9F1;
    box-shadow: 0 3px 10px rgba(82, 54, 42, 0.12);
    cursor: pointer;
}

.moonshineCalcClose span {
    position: absolute;
    left: 10px;
    top: 19px;
    display: block;
    width: 20px;
    height: 2px;
    background: #52362A;
}

.moonshineCalcClose span:first-child {
    transform: rotate(45deg);
}

.moonshineCalcClose span:last-child {
    transform: rotate(-45deg);
}

.moonshineCalcHead {
    padding: 24px 72px 18px 28px;
    border-bottom: 1px solid rgba(82, 54, 42, 0.16);
    background: #52362A;
    color: #FFC583;
}

.moonshineCalcHead span {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font: 12px robotobold, Arial, sans-serif;
    line-height: 1.2;
    text-transform: uppercase;
}

.moonshineCalcHead strong {
    display: block;
    color: #FFC583;
    font: 25px robotobold, Arial, sans-serif;
    line-height: 1.15;
}

.moonshineCalcTabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 1px solid rgba(82, 54, 42, 0.16);
    background: #fff;
}

.moonshineCalcTabs button {
    min-height: 50px;
    border: 0;
    border-right: 1px solid rgba(82, 54, 42, 0.16);
    background: #fff;
    color: #52362A;
    font: 14px robotobold, Arial, sans-serif;
    cursor: pointer;
}

.moonshineCalcTabs button:last-child {
    border-right: 0;
}

.moonshineCalcTabs button.active {
    background: #FE8D0B;
    color: #fff;
}

.moonshineCalcBody {
    padding: 24px 28px 26px;
}

.moonshineCalcMode {
    display: none;
}

.moonshineCalcMode.active {
    display: block;
}

.moonshineCalcGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 18px;
}

.moonshineCalcGrid label {
    display: block;
    margin: 0;
}

.moonshineCalcGrid span {
    display: block;
    margin-bottom: 7px;
    color: #52362A;
    font: 13px robotobold, Arial, sans-serif;
    line-height: 1.2;
}

.moonshineCalcGrid input,
.moonshineCalcGrid select {
    display: block;
    width: 100%;
    height: 42px;
    padding: 8px 11px;
    border: 1px solid #FFC583;
    border-radius: 4px;
    background: #fff;
    color: #52362A;
    font: 15px robotoregular, Arial, sans-serif;
    line-height: 1.2;
    box-sizing: border-box;
}

.moonshineCalcGrid input:focus,
.moonshineCalcGrid select:focus {
    border-color: #FE8D0B;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(254, 141, 11, 0.14);
}

.moonshineCalcResults {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.moonshineCalcResults div {
    min-height: 88px;
    padding: 15px 12px;
    border: 1px solid rgba(82, 54, 42, 0.18);
    border-bottom: 4px solid #FE8D0B;
    border-radius: 6px;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 8px rgba(82, 54, 42, 0.06);
    box-sizing: border-box;
}

.moonshineCalcResults span {
    display: block;
    margin-bottom: 8px;
    color: #7C5A49;
    font: 12px robotobold, Arial, sans-serif;
    line-height: 1.2;
    text-transform: uppercase;
}

.moonshineCalcResults strong {
    display: block;
    color: #52362A;
    font: 23px robotobold, Arial, sans-serif;
    line-height: 1.1;
}

.moonshineCalcNote {
    margin: 20px 0 0;
    padding: 10px 12px;
    border-left: 4px solid #FE8D0B;
    background: rgba(254, 141, 11, 0.08);
    color: #7C5A49;
    font: 12px robotoregular, Arial, sans-serif;
    line-height: 1.35;
}

.moonshineCalcPageLink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 14px;
    padding: 9px 15px;
    border: 1px solid #FE8D0B;
    border-radius: 4px;
    background: #fff;
    color: #52362A;
    font: 13px robotobold, Arial, sans-serif;
    line-height: 1.2;
    text-decoration: none;
    box-sizing: border-box;
}

.moonshineCalcPageLink:hover {
    background: #FE8D0B;
    color: #fff;
    text-decoration: none;
}

.moonshineCalcError {
    grid-column: 1 / -1;
    display: none;
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(141, 47, 34, 0.34);
    border-radius: 4px;
    background: rgba(141, 47, 34, 0.08);
    color: #8D2F22;
    font: 13px robotobold, Arial, sans-serif;
}

.moonshineCalc.has-error .moonshineCalcError {
    display: block;
}

#calc-widget-btn,
#calc-modal-overlay {
    display: none !important;
}

body.moonshineCalcOpen {
    overflow: hidden;
}

.moonshineCalculatorPage {
    padding: 34px 0 42px;
}

.moonshineCalculatorPageIn {
    width: 1110px;
    max-width: calc(100% - 28px);
    margin: 0 auto;
}

.moonshineCalculatorHero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    padding: 26px 28px;
    border: 2px solid #FFC583;
    background: rgba(255, 249, 241, 0.94);
    box-sizing: border-box;
}

.moonshineCalculatorHero span {
    display: block;
    margin-bottom: 7px;
    color: #FE8D0B;
    font: 13px robotobold, Arial, sans-serif;
    line-height: 1.2;
    text-transform: uppercase;
}

.moonshineCalculatorHero h1 {
    margin: 0 0 10px;
    color: #52362A;
    font: 32px robotobold, Arial, sans-serif;
    line-height: 1.15;
}

.moonshineCalculatorHero p {
    max-width: 760px;
    margin: 0;
    color: #52362A;
    font: 16px robotoregular, Arial, sans-serif;
    line-height: 1.45;
}

.moonshineCalculatorHero a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #52362A;
    background: #52362A;
    color: #FFC583;
    font: 14px robotobold, Arial, sans-serif;
    text-decoration: none;
    box-sizing: border-box;
}

.moonshineCalculatorHero a:hover {
    background: #FE8D0B;
    border-color: #FE8D0B;
    color: #fff;
    text-decoration: none;
}

.moonshineCalculatorInline {
    margin-bottom: 28px;
}

.moonshineCalculatorInline .moonshineCalc {
    z-index: auto;
}

.moonshineCalculatorInline .moonshineCalcLauncher,
.moonshineCalculatorInline .moonshineCalcShade,
.moonshineCalculatorInline .moonshineCalcClose,
.moonshineCalculatorInline .moonshineCalcPageLink {
    display: none !important;
}

.moonshineCalculatorInline .moonshineCalcPanel {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    overflow: visible;
    transform: none;
    box-shadow: 0 6px 18px rgba(82, 54, 42, 0.12);
}

.moonshineCalculatorInline .moonshineCalcHead {
    padding-right: 28px;
}

.moonshineCalculatorText {
    padding: 26px 28px 28px;
    border: 1px solid rgba(82, 54, 42, 0.16);
    background: rgba(255, 249, 241, 0.9);
    color: #52362A;
}

.moonshineCalculatorText h2 {
    margin: 24px 0 10px;
    color: #52362A;
    font: 24px robotobold, Arial, sans-serif;
    line-height: 1.2;
}

.moonshineCalculatorText h2:first-child {
    margin-top: 0;
}

.moonshineCalculatorText h3 {
    margin: 18px 0 8px;
    color: #52362A;
    font: 18px robotobold, Arial, sans-serif;
    line-height: 1.25;
}

.moonshineCalculatorText p {
    margin: 0 0 12px;
    color: #52362A;
    font: 15px robotoregular, Arial, sans-serif;
    line-height: 1.55;
}

.moonshineCalculatorText a {
    color: #8D2F22;
    text-decoration: underline;
}

.moonshineCalculatorFaq {
    margin-top: 24px;
    padding-top: 4px;
    border-top: 1px solid rgba(82, 54, 42, 0.14);
}

.moonshineCalculatorLinks {
    margin: 0 0 28px;
    padding: 18px 20px;
    border: 1px solid rgba(82, 54, 42, 0.18);
    border-left: 4px solid #FE8D0B;
    background: rgba(255, 249, 241, 0.96);
    box-shadow: 0 3px 12px rgba(82, 54, 42, 0.07);
    box-sizing: border-box;
}

.moonshineCalculatorLinks strong {
    display: block;
    margin-bottom: 12px;
    color: #52362A;
    font: 17px robotobold, Arial, sans-serif;
    line-height: 1.25;
}

.moonshineCalculatorLinks div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.moonshineCalculatorLinks a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px 8px;
    border: 1px solid #FFC583;
    border-radius: 4px;
    background: #fff;
    color: #52362A;
    font: 13px robotobold, Arial, sans-serif;
    line-height: 1.2;
    text-decoration: none;
    box-sizing: border-box;
}

.moonshineCalculatorLinks a:hover {
    border-color: #FE8D0B;
    background: #FE8D0B;
    color: #fff;
    text-decoration: none;
}

@media only screen and (max-width: 767px) {
    .moonshineCalcLauncher {
        width: 44px;
        min-height: 150px;
        padding: 10px 7px;
    }

    .moonshineCalcLauncher:hover,
    .moonshineCalcLauncher:focus {
        width: 48px;
    }

    .moonshineCalcLauncher span {
        font-size: 12px;
    }

    .moonshineCalcPanel {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 18px);
        border-radius: 6px;
    }

    .moonshineCalcClose {
        right: 10px;
        top: 10px;
        width: 40px;
        height: 40px;
    }

    .moonshineCalcHead {
        padding: 20px 62px 15px 18px;
    }

    .moonshineCalcHead strong {
        font-size: 21px;
    }

    .moonshineCalcTabs button {
        min-height: 46px;
        font-size: 12px;
    }

    .moonshineCalcBody {
        padding: 18px 14px 20px;
    }

    .moonshineCalcGrid,
    .moonshineCalcResults {
        grid-template-columns: 1fr;
    }

    .moonshineCalcResults {
        gap: 10px;
        margin-top: 18px;
    }

    .moonshineCalcResults div {
        min-height: 76px;
        padding: 13px 10px;
    }

    .moonshineCalculatorPage {
        padding: 18px 0 28px;
    }

    .moonshineCalculatorPageIn {
        max-width: calc(100% - 16px);
    }

    .moonshineCalculatorHero {
        display: block;
        padding: 20px 16px;
    }

    .moonshineCalculatorHero h1 {
        font-size: 24px;
    }

    .moonshineCalculatorHero p {
        font-size: 14px;
    }

    .moonshineCalculatorHero a {
        width: 100%;
        margin-top: 16px;
    }

    .moonshineCalculatorText {
        padding: 20px 16px;
    }

    .moonshineCalculatorText h2 {
        font-size: 21px;
    }

    .moonshineCalculatorText h3 {
        font-size: 17px;
    }

    .moonshineCalculatorLinks {
        padding: 15px 14px;
    }

    .moonshineCalculatorLinks div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .moonshineCalculatorLinks a {
        width: 100%;
    }
}
