/* Hose Assembly Widget Modern Layout */
.hose-assembly-wrapper {
    max-width: 1200px;
    margin: 32px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(80,80,80,0.06);
}
.hose-assembly-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: #222;
}
.hose-assembly-grid {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}
.hose-assembly-form-col {
    flex: 1 1 340px;
    min-width: 290px;
}
.hose-assembly-summary-col {
    flex: 1 1 370px;
    min-width: 320px;
    max-width: 440px;
}
.ha-field {
    margin-bottom: 18px;
}
.ha-field label {
    font-weight: 600;
    color: #333;
    margin-bottom: 7px;
    display: block;
    font-size: 1rem;
}
.ha-field select,
.ha-field input[type="number"],
.ha-field input[type="text"],
.ha-field input[type="email"],
.ha-field input[type="tel"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 1rem;
    background: #fafbfc;
    transition: border .2s;
}

.ha-native-select--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ha-icon-thumb {
    width: 22px;
    height: 22px;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    flex: 0 0 22px;
}

.ha-icon-thumb--empty {
    background-image: none;
}

.ha-icon-select {
    position: relative;
}

.ha-icon-select__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fafbfc;
    cursor: pointer;
    text-align: left;
}

.ha-icon-select__trigger:focus {
    outline: none;
    border-color: #f7a736;
}

.ha-icon-select__trigger-label {
    color: #333;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ha-icon-select__caret {
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #444;
}

.ha-icon-select__menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    max-height: 260px;
    overflow: auto;
    z-index: 9999;
}

.ha-icon-select--open .ha-icon-select__menu {
    display: block;
}

.ha-icon-select__option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.ha-icon-select__option:hover {
    background: #f3f4f6;
}

.ha-icon-select__option--selected {
    background: #fff7eb;
}

.ha-icon-select__option-label {
    color: #222;
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ha-field select:focus,
.ha-field input[type="number"]:focus,
.ha-field input[type="text"]:focus,
.ha-field input[type="email"]:focus,
.ha-field input[type="tel"]:focus {
    border-color: #f7a736;
    outline: none;
}

.ha-hidden {
    display: none;
}

.ha-message {
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.ha-message-success {
    background: #e8f7ee;
    color: #1f7a3a;
    border: 1px solid #b9e7c8;
}

.ha-message-error {
    background: #fdecec;
    color: #a12622;
    border: 1px solid #f4b8b6;
}
.ha-btn-group {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}
.ha-add-to-cart {
    background: #f7a736;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    padding: 9px 22px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
}
.ha-add-to-cart:hover {
    background: #e59425;
}
.ha-clear {
    background: #888;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px 18px;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s;
}
.ha-clear:hover {
    background: #555;
}
.ha-summary-card {
    background: #f8f8f9;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(80,80,80,0.04);
    padding: 24px 24px 16px 24px;
    margin-bottom: 24px;
}
.ha-partno-row {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.ha-part-label {
    color: #222;
    margin-right: 8px;
}
.ha-part-value {
    color: #f7a736;
    font-size: 1.22rem;
    letter-spacing: 1px;
}
.ha-desc-row {
    font-size: 0.97rem;
    margin-bottom: 16px;
}
.ha-desc-label {
    color: #333;
    font-weight: 600;
    margin-right: 7px;
}
.ha-desc-value {
    color: #555;
}
.ha-qty-row {
    margin-bottom: 18px;
    font-size: 1rem;
}
.ha-qty-label {
    color: #333;
    font-weight: 600;
    margin-right: 7px;
}
.ha-qty-value {
    color: #222;
}

.ha-hose-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #eee;
    background: #fafafa;
    margin-top: 8px;
}

.ha-assembled-image-container {
    display: grid;
    width: 100%;
    aspect-ratio: 10/4;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    grid: "ha-swival-preview ha-pipe-preview ha-outlet-preview" "ha-inlet-preview empty empty" / 20% 60% 20%;
}

.ha-assembled-image-part {
    background-repeat: no-repeat;
    background-size: cover;
}

.ha-assembled-image-part.part-outlet{
    grid-area: ha-outlet-preview;
}
.ha-assembled-image-part.part-hose{
    grid-area: ha-pipe-preview;
}
.ha-assembled-image-part.part-inlet{
    grid-area: ha-inlet-preview;
    transform: rotate(-90deg);
}
.ha-assembled-image-part.part-swivel{
    grid-area: ha-swival-preview;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hose-assembly-grid {
        flex-direction: column;
        gap: 32px;
    }

    .hose-assembly-form-col,
    .hose-assembly-summary-col {
        max-width: 100%;
        min-width: 100%;
    }
}
@media (max-width: 600px) {
    .hose-assembly-wrapper {
        padding: 8px;
    }
    .ha-summary-card {
        padding: 14px 8px 10px 8px;
    }
    .hose-assembly-title {
        font-size: 1.2rem;
    }
}