* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family:
            Arial,
            Helvetica,
            sans-serif;

    background: #f2f2f2;
    color: #171717;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


.hidden {
    display: none !important;
}


.app-shell {
    width: 100%;
    max-width: 620px;
    min-height: 100vh;

    margin: 0 auto;

    background: #ffffff;
}


.app-header {
    padding: 22px 20px 18px;

    background: #111111;
    color: #ffffff;
}


.app-badge {
    display: inline-block;

    margin-bottom: 8px;
    padding: 4px 8px;

    border-radius: 5px;

    background: #ffd500;
    color: #111111;

    font-size: 12px;
    font-weight: 700;
}


.app-header h1 {
    margin: 0;

    font-size: 27px;
    line-height: 1.15;
}


.store-name {
    margin-top: 7px;

    color: #dddddd;

    font-size: 14px;
}


main {
    padding: 16px;
}


.card {
    padding: 20px;

    border: 1px solid #dddddd;
    border-radius: 12px;

    background: #ffffff;
}


.card h2 {
    margin-top: 0;
    margin-bottom: 8px;

    font-size: 23px;
}


.intro-text {
    margin-top: 0;
    margin-bottom: 20px;

    color: #555555;

    line-height: 1.45;
}


.small-label {
    margin-bottom: 6px;

    color: #666666;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


.waypoint-panel {
    margin-bottom: 16px;
    padding: 12px 15px;

    border-radius: 9px;

    background: #eeeeee;
}


.waypoint-text {
    font-size: 16px;
    font-weight: 700;
}


.message-panel {
    margin-bottom: 16px;
    padding: 14px;

    border-radius: 8px;

    background: #fff1f1;
    border: 1px solid #d99999;

    color: #8a0000;

    line-height: 1.4;
}


.search-box {
    display: flex;
    gap: 8px;
}


.search-box input {
    flex: 1;

    min-width: 0;

    padding: 14px;

    border: 2px solid #b7b7b7;
    border-radius: 8px;

    font-size: 17px;
}


.search-box input:focus {
    border-color: #111111;
    outline: none;
}


.search-box button {
    padding: 0 18px;

    border: 0;
    border-radius: 8px;

    background: #111111;
    color: #ffffff;

    font-weight: 700;
}


.search-status {
    min-height: 22px;

    margin-top: 13px;

    color: #666666;

    font-size: 14px;
}


.search-results {
    margin-top: 3px;
}


.product-result {
    width: 100%;

    margin-top: 10px;
    padding: 15px;

    border: 1px solid #dddddd;
    border-radius: 9px;

    background: #ffffff;

    text-align: left;
}


.product-result:active {
    background: #f4f4f4;
}


.product-name {
    display: block;

    margin-bottom: 7px;

    font-size: 17px;
    font-weight: 700;

    color: #111111;
}


.product-meta {
    display: block;

    color: #666666;

    font-size: 13px;
}


.product-aisle {
    display: inline-block;

    margin-top: 9px;
    padding: 5px 8px;

    border-radius: 5px;

    background: #eeeeee;

    color: #111111;

    font-size: 13px;
    font-weight: 700;
}


.selected-product-name {
    margin-bottom: 20px !important;
}


.destination-card {
    padding: 22px;

    border-radius: 12px;

    background: #ffd500;

    text-align: center;
}


.destination-label {
    margin-bottom: 5px;

    font-size: 13px;
    font-weight: 700;
}


.target-aisle {
    font-size: 39px;
    font-weight: 800;
}


.main-instruction {
    margin: 20px 0;

    font-size: 18px;
    line-height: 1.45;

    text-align: center;
}


.scan-reminder {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 15px;

    border-radius: 9px;

    background: #f1f1f1;

    line-height: 1.4;
}


.scan-icon {
    flex: 0 0 auto;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #111111;
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}


.correct-aisle {
    margin-bottom: 14px;
    padding: 10px;

    border-radius: 8px;

    background: #e9f6eb;
    color: #146323;

    font-weight: 700;

    text-align: center;
}


.direction-card {
    padding: 22px 15px;

    border-radius: 12px;

    background: #ffd500;

    text-align: center;
}


.direction-label {
    font-size: 13px;
    font-weight: 700;
}


.customer-side {
    margin-top: 4px;

    font-size: 42px;
    font-weight: 900;
}


.location-grid {
    display: grid;

    grid-template-columns:
        1.35fr
        0.8fr
        1.15fr;

    gap: 8px;

    margin-top: 12px;
}


.location-box {
    padding: 15px 7px;

    border: 1px solid #dddddd;
    border-radius: 9px;

    text-align: center;
}


.location-label {
    min-height: 27px;

    color: #666666;

    font-size: 10px;
    font-weight: 700;
}


.location-value {
    margin-top: 4px;

    font-size: 30px;
    font-weight: 800;
}


.location-help {
    min-height: 26px;

    margin-top: 3px;

    color: #777777;

    font-size: 10px;
}


.internal-location {
    margin-top: 14px;
    padding: 10px;

    border-radius: 7px;

    background: #f3f3f3;

    color: #666666;

    text-align: center;

    font-family: monospace;
    font-size: 14px;
}


.primary-action,
.secondary-action {
    width: 100%;

    min-height: 50px;

    margin-top: 18px;

    border-radius: 8px;

    font-weight: 700;
}


.primary-action {
    border: 0;

    background: #111111;
    color: #ffffff;

    font-size: 17px;
}


.secondary-action {
    border: 2px solid #111111;

    background: #ffffff;
    color: #111111;
}


footer {
    padding: 0 16px 20px;

    text-align: center;
}


.reset-button {
    border: 0;

    background: transparent;
    color: #777777;

    font-size: 12px;

    text-decoration: underline;
}


.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

/*
 * VOICE GUIDANCE
 */

.voice-panel {
    margin-bottom: 14px;

    text-align: right;
}

.voice-toggle-button {
    min-height: 42px;

    padding: 9px 13px;

    border: 1px solid #cccccc;
    border-radius: 8px;

    background: #ffffff;
    color: #333333;

    font-size: 14px;
    font-weight: 700;
}

.voice-toggle-button.voice-on {
    border-color: #111111;

    background: #ffd500;
    color: #111111;
}

.repeat-voice-button {
    width: 100%;

    min-height: 48px;

    margin-top: 14px;

    border: 1px solid #111111;
    border-radius: 8px;

    background: #f2f2f2;
    color: #111111;

    font-weight: 700;
}

/*
 * VOICE SEARCH
 */

.voice-search-button {
    min-width: 48px;
    min-height: 48px;

    margin-left: 6px;

    border: 1px solid #111111;
    border-radius: 8px;

    background: #ffd500;
    color: #111111;

    font-size: 21px;

    cursor: pointer;
}

.voice-search-button.listening {
    transform: scale(1.08);
}

.voice-search-button:disabled {
    opacity: 0.5;
}





@media (max-width: 420px) {

    .app-header h1 {
        font-size: 24px;
    }

    .search-box {
        display: block;
    }

    .search-box button {
        width: 100%;

        min-height: 48px;

        margin-top: 8px;
    }

    .location-grid {
        grid-template-columns: 1fr 1fr;
    }

    .location-box:first-child {
        grid-column: 1 / -1;
    }

}