.cutlength-widget {
    box-sizing: border-box;
    margin: 20px 0;
    padding: 18px 0 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.cutlength-title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.3;
}

.cutlength-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
}

.cutlength-control {
    display: grid;
    gap: 7px;
    min-width: 0;
    font-weight: 600;
}

.cutlength-control select,
.cutlength-control input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #cfd4dc;
    border-radius: 2px;
    background: #fff;
    color: #222;
    font: inherit;
}

.cutlength-feature-slot,
.cutlength-feature-select {
    width: 100%;
}

.cutlength-quantity-slot .quantity-wrapper {
    display: block !important;
    margin: 0 !important;
}

.cutlength-quantity-slot .quantity-wrapper > .wa-flex:first-child {
    display: none !important;
}

.cutlength-quantity-slot .quantity-wrapper > .wa-flex:last-child {
    min-height: 42px;
    align-items: stretch !important;
}

.cutlength-quantity-slot .s-field-wrapper {
    flex: 1 1 auto;
    margin: 0 6px !important;
}

.cutlength-quantity-slot input[name="quantity"] {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
}

.cutlength-range {
    margin-top: 8px;
    color: #777;
    font-size: 12px;
}

.cutlength-summary {
    display: grid;
    gap: 7px;
    margin-top: 16px;
    padding: 14px 0 16px;
    border-top: 1px solid #e5e5e5;
}

.cutlength-formula {
    color: #555;
    font-size: 14px;
}

.cutlength-total-row {
    font-size: 20px;
}

.cutlength-unit-row {
    color: #666;
    font-size: 13px;
}

.cutlength-error {
    margin: 0 0 14px;
    color: #b42318;
    font-weight: 600;
}

.cutlength-submit-disabled {
    cursor: not-allowed !important;
    opacity: 0.55 !important;
}

.cutlength-cart-meta {
    margin-top: 7px;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.cutlength-cart-meta strong {
    color: #222;
}

.cutlength-cart-service {
    display: none !important;
}

@media (max-width: 680px) {
    .cutlength-controls {
        grid-template-columns: 1fr;
    }
}
