.calc-wrp {
    --green: #608d4f;
    --greenbc: #d1ffd7;;
    --red: #b72a2c;
    --ink: #252a27;
    --muted: #737972;
    --line: #e2e4df;
    --paper: #f5f5f0;
}

.calc-wrp, .calc-wrp * {
    box-sizing: border-box
}

.calc-wrp {
    margin: 0px 0px 50px 0px;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.5 system-ui, -apple-system, Segoe UI, sans-serif;
    max-width: 1024px;
}

.calc-wrp header {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: white;
    border-bottom: 1px solid var(--line)
}

.calc-wrp a {
    color: inherit;
    text-decoration: none
}

.calc-wrp a:hover {
    text-decoration: underline
}

.calc-wrp .brand {
    font-size: 22px;
    line-height: 1
}

.calc-wrp .brand b {
    font-size: 31px;
    letter-spacing: -1.5px
}

.calc-wrp .brand span {
    color: var(--red);
    font-size: 18px;
    margin-left: 4px
}

.calc-wrp header>span,
.calc-wrp .eyebrow {
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 750;
    color: var(--muted)
}

.calc-wrp header>a:last-child {
    font-size: 13px
}

.calc-wrp main {
    max-width: 1440px;
    margin: auto;
    padding: 48px 5% 20px
}

.calc-wrp .intro {
    margin-bottom: 36px
}

.calc-wrp .intro .eyebrow {
    color: var(--red)
}

.calc-wrp h1 {
    font-size: clamp(32px, 3.5vw, 52px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -2px;
    margin: 12px 0 16px
}

.calc-wrp .intro p {
    color: var(--muted);
    max-width: 600px
}

.calc-wrp .layout {
    display: flex;
    flex-direction: column;
    gap: 28px
}

.calc-wrp form {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px
}

.calc-wrp #form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start
}

@media(min-width:901px) {
    .calc-wrp #form.two-sections {
        grid-template-columns: repeat(2, 1fr)
    }
}

.calc-wrp section {
    padding: 24px;
    margin-right: -1px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}

.calc-wrp section:last-child {
    border: 0;
}
.calc-wrp section:first-child {
    border-left: 0;
}

.calc-wrp h2 {
    font-size: 17px;
    margin: 0 0 20px;
    font-weight: 650
}

.calc-wrp h2 i {
    font-size: 13px;
    font-style: normal;
    color: var(--green);
    font-weight: 700;
    margin-right: 10px
}

.calc-wrp button,
.calc-wrp input,
.calc-wrp select {
    font: inherit
}

.calc-wrp button {
    cursor: pointer
}

.calc-wrp button:focus-visible,
.calc-wrp a:focus-visible,
.calc-wrp input:focus,
.calc-wrp select:focus {
    outline: 2px solid var(--green);
    outline-offset: 1px
}

.calc-wrp .shapes,
.calc-wrp .formats {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 18px
}

.calc-wrp .shapes button,
.calc-wrp .formats button {
    background: white;
    border: 1px solid var(--line);
    padding: 10px 9px;
    border-radius: 6px;
    font-size: 13px
}

.calc-wrp .shapes .active,
.calc-wrp .formats .active {
    border-color: var(--green);
    color: black;
    background: var(--greenbc);
}

.calc-wrp .fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.calc-wrp label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px
}

.calc-wrp small {
    float: right;
    color: var(--muted);
    font-weight: 400;
    font-size: 1em;
}

.calc-wrp input[type=number],
.calc-wrp select {
    width: 100%;
    margin: 1px 0px 7px 0px;
    background: #fafaf7;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 11px;
    color: var(--ink);
    min-width: 0
}

.calc-wrp input[type=number] {
    font-size: 17px;
    padding: 5px;
}

.calc-wrp .textbutton {
    padding: 0;
    border: 0;
    background: none;
    color: var(--red);
    font-size: 13px;
    margin-bottom: 16px
}

.calc-wrp .hint,
.calc-wrp .disclaimer {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65
}

.calc-wrp .check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px
}

.calc-wrp .check input {
    accent-color: var(--red);
    margin-top: 3px
}

.calc-wrp summary {
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 14px
}

.calc-wrp details {
    border-top: 1px solid var(--line);
    padding-top: 14px
}

.calc-wrp .results {
    min-width: 0;
    position: sticky;
    top: 40px;
    z-index: 5
}

.calc-wrp .result-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px
}

.calc-wrp .result-head {
    display: flex;
    justify-content: space-between;
    align-items: start
}

.calc-wrp .total {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 8px 0 3px
}

.calc-wrp .total strong {
    font-size: 65px;
    letter-spacing: -1px;
    line-height: 1
}

.calc-wrp .total span {
    color: var(--muted);
    font-size: 13px
}

.calc-wrp .calculator-product-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 4px 13px;
    background: #fafaf7;
    margin-bottom: 6px;
    border-radius: 6px;
}

.calc-wrp .calculator-product-image {
    flex: 0 0 auto;
    display: block;
    width: 84px
}

.calc-wrp .calculator-product-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px
}

.calc-wrp .calculator-product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0
}

.calc-wrp .calculator-product-title {
    font-weight: 500;
    line-height: 1.2rem;
}

.calc-wrp .calculator-product-price {
    font-weight: 700;
    white-space: nowrap
}

.calc-wrp .calculator-product-buy form.addToCart {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
}

.calc-wrp .calculator-product-buy .item-quantity {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 5px
}

.calc-wrp .calculator-product-buy .btn {
    padding: 6px 12px 8px 12px;
    font-size: 16px;
    font-weight: 650;
    white-space: nowrap;
    margin-bottom: 7px;
}

.calc-wrp .badge {
    padding: 5px 8px;
    border: 1px solid #dbe4d7;
    border-radius: 20px;
    background: #f5f8f2;
    font-size: 13px;
    color: #5c7154;
    letter-spacing: 1px
}

.calc-wrp .stats {
    display: flex;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px 0
}

.calc-wrp .stats>div {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    padding: 0 18px
}

.calc-wrp .stats>div:first-child {
    padding-left: 0
}

.calc-wrp .stats>div:last-child {
    border: 0
}

.calc-wrp .stats b {
    font-size: 20px
}

.calc-wrp .stats span {
    font-size: 13px;
    color: var(--muted)
}

.calc-wrp .plan {
    margin: 22px 0 10px;
    background: #f7f8f4;
    border: 1px solid #ebede7;
    border-radius: 8px;
    padding: 12px;
    min-height: 300px
}

.calc-wrp svg {
    display: block;
    width: 100%;
    height: 360px
}

.calc-wrp .legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    align-items: center
}

.calc-wrp .legend i {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 5px
}

.calc-wrp .legend i.middle {
    background: #486b60
}

.calc-wrp .legend>span:last-child {
    margin-left: auto
}

.calc-wrp .actions {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.calc-wrp .actions button,
.calc-wrp .shoplink {
    padding: 12px 16px;
    border-radius: 5px;
    color: white;
    font-size: 13px;
    line-height: 15px;
    font-weight: 650;
    margin-bottom: 8px;
}

.calc-wrp .actions .secondary {
    background: white;
    border-color: var(--line);
    color: var(--ink)
}

.calc-wrp #status {
    font-size: 13px;
    color: #486b60;
    margin-bottom: 0
}

.calc-wrp .heightResult {
    background: #f3f6f0;
    padding: 14px;
    margin-top: 20px;
    border-radius: 6px;
    font-size: 13px
}

.calc-wrp .next {
    background: #e9ece3;
    border-radius: 12px;
    padding: 25px;
    margin-top: 18px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center
}

.calc-wrp .next>div {
    flex: 1;
    min-width: 230px
}

.calc-wrp .next h2 {
    font-size: 22px;
    margin: 6px 0
}

.calc-wrp .next p {
    font-size: 13px;
    color: var(--muted);
    margin: 0
}

.calc-wrp .next>a:last-child {
    font-size: 13px;
    text-decoration: underline
}

.calc-wrp .disclaimer {
    padding: 0 6px
}

.calc-wrp footer {
    display: flex;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted)
}

.calc-wrp [hidden] {
    display: none !important
}

.calc-wrp #error {
    background: #f3dfd9;
    color: #a12929;
    padding: 15px;
    border-radius: 6px;
    margin: 10px 0
}

.calc-wrp input.has-error , .calc-wrp input[type=text].has-error {
    background: #f3dfd9
}

@media(max-width:1280px) {
    .calc-wrp .calculator-product-card {
        .item-quantity{
            display: none;
        }
    }
    .calc-wrp .total strong {
        font-size: 35px
    }
}

@media(max-width:1000px) {
    .calc-wrp .layout {
        gap: 16px
    }

    .calc-wrp .result-card {
        padding: 20px
    }

    .calc-wrp .total {
        flex-wrap: wrap
    }

    .calc-wrp .total strong {
        font-size:30px
    }
}

@media(max-width:760px) {
    
    .calc-wrp .actions {
        gap: 5px;
    }
    .calc-wrp header {
        height: 72px;
    }

    .calc-wrp header>span {
        display: none
    }

    .calc-wrp header>a:last-child {
        font-size: 13px
    }

    .calc-wrp .brand {
        font-size: 16px
    }

    .calc-wrp .brand b {
        font-size: 24px
    }

    .calc-wrp main {
        padding-top: 30px
    }

    .calc-wrp .intro {
        margin-bottom: 24px
    }

    .calc-wrp h1 {
        letter-spacing: -1px
    }

    .calc-wrp section {
        padding: 20px
    }

    .calc-wrp .total strong {
        font-size: 23px;
    }

    .calc-wrp svg {
        height: 300px
    }

    .calc-wrp .result-card {
        padding: 9px 14px;
    }

    .calc-wrp .result-head {
        flex-direction: column;
        align-items: stretch;
        gap: 3px
    }

    .calc-wrp .result-head > div:first-child {
        display: flex;
        align-items: center;
        gap: 25px;
        margin-bottom: 4px;
        border-bottom: 1px solid grey;
    }

    .calc-wrp .result-head .eyebrow {
        font-size: 11px;
        letter-spacing: 0.2px;
    }

    .calc-wrp .result-head .total {
        margin: 0px 0px 3px 0px;
    }

    .calc-wrp .result-head .total strong {
        font-size: 22px
    }

    .calc-wrp .result-head .total span {
        display: none
    }

    .calc-wrp .calculator-product-image {
        width: 75px;
    }

    .calc-wrp .calculator-product-info {
        gap: 4px
    }

    .calc-wrp .calculator-product-price,
    .calc-wrp .calculator-product-buy .item-quantity {
        display: none
    }

    .calc-wrp #lowReserve,
    .calc-wrp #shapeNote,
    .calc-wrp .formula {
        display: none
    }
    
    .calc-wrp #error{
        font-size: 12px;
        padding: 5px 10px;
        margin: 3px 0px;
    }

    .calc-wrp .stats>div {
        padding: 0 10px
    }

    .calc-wrp .stats b {
        font-size: 18px
    }

    .calc-wrp footer {
        gap: 15px;
        flex-direction: column
    }

    .calc-wrp .badge {
        display: none
    }

    .calc-wrp .preview-caption {
        flex-direction: column;
        gap: 3px
    }

    .calc-wrp .shape-buttons button {
        font-size: 13px
    }

    .calc-wrp .preview svg {
        height: 220px
    }

    .calc-wrp .saved-calculations,
    .calc-wrp .saved-calculations thead,
    .calc-wrp .saved-calculations tbody,
    .calc-wrp .saved-calculations th,
    .calc-wrp .saved-calculations td,
    .calc-wrp .saved-calculations tr {
        display: block
    }

    .calc-wrp .saved-calculations thead tr {
        display: none
    }

    .calc-wrp .saved-calculations tr {
        border-top: 1px solid var(--line);
        padding: 12px 0;
    }

    .calc-wrp .saved-calculations td {
        border-top: 0;
        padding: 6px 16px
    }
}

@media(max-width:460px) {
    .calc-wrp .result-head {
        display: inline-block;
    }
}

@media print {

    .calc-wrp header,
    .calc-wrp form,
    .calc-wrp .actions,
    .calc-wrp .next,
    .calc-wrp footer,
    .calc-wrp .saved-calculations {
        display: none
    }

    .calc-wrp .layout {
        display: block
    }

    .calc-wrp main {
        padding: 0
    }

    .calc-wrp .result-card {
        border: 0
    }

    .calc-wrp .intro {
        margin: 0
    }

    .calc-wrp .plan {
        break-inside: avoid
    }

    .calc-wrp .disclaimer {
        font-size: 13px
    }

    .calc-wrp {
        background: white
    }

    .calc-wrp .notice .shoplink,
    .calc-wrp .notice .call {
        display: none
    }

    .calc-wrp .notice {
        break-inside: avoid
    }

    .calc-wrp .preview svg {
        height: 180px
    }

    .calc-wrp .intro h1 {
        font-size: 30px
    }

    .calc-wrp .total strong {
        font-size: 46px
    }
}

.calc-wrp input[type=text] {
    width: 100%;
    margin: 1px 0px 7px 0px;
    padding: 11px;
    font: inherit;
    font-size: 17px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fafaf7
}

.calc-wrp .area-input {
    font-size: 30px !important
}

.calc-wrp label[for] {
    margin-bottom: 0;
    margin-left: 3px;
}

.calc-wrp .shape-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 18px;
}

.calc-wrp .shape-buttons button {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    font-size: 13px;
    padding: 10px 2px;
    color: var(--muted);
}

.calc-wrp .shape-buttons svg {
    width: 45px;
    height: 32px;
    margin: auto auto 7px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6
}

.calc-wrp .shape-buttons .active {
    color: black;
    border-color: var(--green);
    background: var(--greenbc);
}

.calc-wrp .shape-buttons.locked button,
.calc-wrp .formats.locked button {
    cursor: not-allowed;
    opacity: .55
}

.calc-wrp .fields.locked input {
    cursor: not-allowed
}

.calc-wrp .locked-hint {
    color: var(--green);
}

.calc-wrp .reserve-help {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    padding: 13px;
    background: #eef2e8;
    border-radius: 6px;
    color: #4c6144;
    font-size: 13px
}

.calc-wrp .reserve-help.reserve-help-warning {
    background: #f3dfd9;
    color: #a12929
}

.calc-wrp .reserve-help p {
    font-size: 13px;
    margin: 5px 0 0
}

.calc-wrp .bulb {
    font-size: 11px;
    border: 1px solid #9bad8e;
    border-radius: 100%;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    text-align: center;
    font-weight: 700
}

.calc-wrp .reserve-row {
    display: flex;
    align-items: end;
    gap: 12px
}

.calc-wrp .reserve-row>label {
    flex: 1
}

.calc-wrp .reserve-row button {
    background: white;
    color: black;
    border: 1px solid var(--green);
    padding: 10px 9px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 7px;
}

.calc-wrp .notice-preview {
    display: flex;
    align-items: stretch;
    gap: 28px
}

.calc-wrp .notice-preview .notice,
.calc-wrp .notice-preview .preview {
    flex: 1 1 0;
    min-width: 0
}

.calc-wrp .preview {
    background: #f6f7f2;
    border: 1px solid #e9ede2;
    border-radius: 7px;
    margin: 0;
    overflow: hidden
}

.calc-wrp .preview svg {
    width: 100%;
    height: 320px
}

.calc-wrp .preview.preview-strip {
    width: 100%;
    height: 60px;
    margin: 1px 0 16px;
}

.calc-wrp .preview.preview-strip svg {
    height: 70px;
    transform: scale(2);
    transform-origin: center;
}

.calc-wrp .preview-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #e3e6dc;
    font-size: 13px;
    color: var(--muted)
}

.calc-wrp .preview-caption span:last-child {
    font-size: 13px
}

.calc-wrp .formula {
    font-size: 13px;
    color: var(--muted);
    margin: 0px 0px 12px 0px;
}

.calc-wrp .notice {
    padding: 22px;
    background: #f4f0e8;
    border-radius: 8px;
    border: 1px solid #e8dfcf
}

.calc-wrp .notice h2 {
    font-size: 17px;
    margin: 0 0 12px
}

.calc-wrp .notice p {
    font-size: 13px;
    line-height: 1.65;
    margin: 10px 0
}

.calc-wrp .notice .contact-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.calc-wrp .notice .shoplink {
    display: inline-block;
    margin-top: 0;
    &:hover{
        text-decoration: none;
    }
}

.calc-wrp .notice .call {
    display: inline-block;
    font-size: 13px;
    margin-top: 0;
    color: var(--muted)
}

.calc-wrp .low-reserve {
    padding: 12px;
    background: #fff6e6;
    border-left: 3px solid #c99640;
    font-size: 13px;
}

.calc-wrp .total strong {
    font-size: 44px;
}

.calc-wrp #pattern {
    opacity: .9;
}

.calc-wrp #shapeNote {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.calc-wrp .actions button:disabled {
    opacity: .5;
    cursor: default
}

@media(max-width:900px) {
    .calc-wrp #form {
        grid-template-columns: 1fr
    }

    .calc-wrp section {
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid var(--line)
    }

    .calc-wrp section:last-child {
        border-bottom: 0;
    }

    .calc-wrp .notice-preview {
        flex-direction: column
    }

    .calc-wrp .notice-preview .notice,
    .calc-wrp .notice-preview .preview {
        flex: 1 1 auto
    }
}

.calc-wrp #roomInputs {
    margin-top: 16px
}

.calc-wrp input[readonly] {
    background: #eef2e8;
    color: #486b60
}

.calc-wrp #roomShape {
    margin-bottom: 16px
}

.calc-wrp .saved-calculations {
    width: 100%;
    max-width: 920px;
    margin: 28px auto 0;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden
}

.calc-wrp .saved-calculations caption {
    min-width: 152px;
    text-align: left;
    font-weight: 650;
    padding: 16px 16px 0
}

.calc-wrp .saved-calculations form{
    border: none;
}
.calc-wrp .saved-calculations form input{
    margin: 0px;
}
.calc-wrp .saved-calculations th,
.calc-wrp .saved-calculations td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: middle;
    border-top: 1px solid var(--line);
    border-bottom: none;
    border-left: 1px solid var(--line);
    border-right: none;
    
}

.calc-wrp .saved-calculations th {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600
}

.calc-wrp .saved-calculation-product {
    display: flex;
    align-items: center;
    gap: 12px
}

.calc-wrp .saved-calculation-image {
    flex: 0 0 auto;
    display: block;
    width: 56px
}

.calc-wrp .saved-calculation-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px
}

.calc-wrp .saved-calculations form.addToCart {
    display: flex;
    align-items: center;
    gap: 8px
}

.calc-wrp .saved-calculations .item-quantity {
    width: 90px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 5px
}

.calc-wrp .saved-calculations .btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap
}

.calc-wrp #addAllToCartForm {
    text-align: center;
    margin-top: 16px
}

.calc-wrp .btn-delete  i, .calc-wrp .btn-edit  i{
    font-size: 17px;
}
.calc-wrp .btn-delete:hover {
    background-color: #b72a2c;
}