/* file: data/static/awg/cable_finder.css */
.cable-form {
    margin-bottom: 1em;
}
.form-table {
    border-collapse: collapse;
}
.form-table td {
    padding: 4px 8px;
    vertical-align: top;
}
.form-table label {
    display: block;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 4px;
}
.form-table.two-col td {
    width: 50%;
    padding-bottom: 16px;
}
.cable-form input,
.cable-form select {
    width: 100%;
    padding: 4px 6px;
    font-size: 1em;
    box-sizing: border-box;
}
.cable-form button.submit {
    width: 100%;
    padding: 6px 6px;
    font-size: 1.1em;
    box-sizing: border-box;
}
.warning {
    background: #fee;
    color: #b00;
    padding: 0.6em 0.8em;
    border-radius: 4px;
    margin-top: 0.6em;
}

.sponsor-logo {
    float: right;
    margin-left: 1em;
    max-width: 140px;
}

.calc-result {
    margin-top: 1em;
}

.result-list {
    margin-top: 0;
}

@media (min-width: 768px) {
    .result-list {
        font-size: 1.5em;
    }
}

/* Layout for calculator and info box */
.calc-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

.form-wrapper {
    flex: 1 1 320px;
    min-width: 240px;
}

.calc-info {
    border: 1px solid #ccc;
    padding: 0.6em 0.8em;
    background: var(--card-bg, #fafafa);
    flex: 1 1 220px;
    min-width: 220px;
    position: relative;
}

.info-toggle,
.info-close {
    position: absolute;
    top: 0.4em;
    right: 0.4em;
    border: none;
    background: none;
    font-size: 1.1em;
    cursor: pointer;
}

.info-toggle.hidden,
.info-close.hidden {
    display: none;
}

@media (max-width: 767px) {
    .calc-info {
        display: none;
        width: 100%;
    }
    .calc-info.open {
        display: block;
        margin-top: 0.5em;
    }
    .info-toggle {
        display: block;
    }
    .info-close {
        display: none;
    }
}

@media (min-width: 768px) {
    .info-toggle,
    .info-close {
        display: none !important;
    }
    .calc-layout {
        align-items: flex-start;
    }
    .calc-info {
        display: block !important;
    }
}

