/* ============================================================
   AddressEdit.css — Taiwan Address Selector Styling
   Targets: .Membertwzipcode (TWzipcode container)
   Loaded in _HomePageLayout.cshtml (global)
   ============================================================ */

/* --- Container: horizontal layout --- */
.Membertwzipcode {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* --- County & District selects --- */
.Membertwzipcode select {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.Membertwzipcode select:focus {
    border-color: #6DC2A5;
    box-shadow: 0 0 0 3px rgba(109,194,165,0.15);
}
.Membertwzipcode select:hover {
    border-color: #aaa;
}

/* --- Zipcode hidden input --- */
.Membertwzipcode input[type="hidden"] {
    display: none;
}

/* --- Zipcode visible input (if shown) --- */
.Membertwzipcode input[type="text"] {
    flex: 0 0 80px;
    padding: 8px 12px;
    font-size: 15px;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}
.Membertwzipcode input[type="text"]:focus {
    border-color: #6DC2A5;
    box-shadow: 0 0 0 3px rgba(109,194,165,0.15);
}

/* --- Responsive: stack on small screens --- */
@media (max-width: 575px) {
    .Membertwzipcode {
        flex-direction: column;
        gap: 6px;
    }
    .Membertwzipcode select {
        min-width: 100%;
    }
}
