/**
 * HMT Permit Sales — Front-end styles for My Account pages.
 */

/* =========================================================================
   Registration & Login Form
   ========================================================================= */

/* Form inputs — taller, larger text */
.woocommerce-form-login .woocommerce-Input,
.woocommerce-form-register .woocommerce-Input,
.woocommerce-form-register select {
    font-size: 16px;
    padding: 12px 14px;
    height: auto;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
}

/* Labels */
.woocommerce-form-login label,
.woocommerce-form-register label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

/* Buttons — full width, HMT brand orange (only submit buttons) */
.woocommerce-form-login__submit,
.woocommerce-form-register__submit,
.woocommerce-account .woocommerce-form button[type="submit"],
.woocommerce-account .woocommerce-form .woocommerce-Button {
    width: 100% !important;
    display: block;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 20px;
    min-height: 50px;
    background-color: #F88346 !important;
    color: #fff !important;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.5s ease;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover,
.woocommerce-account .woocommerce-form button[type="submit"]:hover {
    background-color: #cc4e00 !important;
    color: #fff !important;
}

/* =========================================================================
   Permit Profile — My Account Tab
   ========================================================================= */

/* Permit profile form inputs */
.woocommerce-account .woocommerce-form input[type="text"],
.woocommerce-account .woocommerce-form input[type="tel"],
.woocommerce-account .woocommerce-form input[type="email"],
.woocommerce-account .woocommerce-form input[type="date"],
.woocommerce-account .woocommerce-form input[type="password"],
.woocommerce-account .woocommerce-form select {
    font-size: 16px;
    padding: 12px 14px;
    height: auto;
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.woocommerce-account .woocommerce-form input:focus,
.woocommerce-account .woocommerce-form select:focus {
    border-color: #F88346;
    outline: none;
    box-shadow: 0 0 0 1px #F88346;
}


/* =========================================================================
   Login / Register Tabs
   ========================================================================= */

.hmt-login-tabs {
    max-width: 600px;
    margin: 0 auto;
}

.hmt-tab-nav {
    display: flex;
    list-style: none;
    margin: 0 0 -1px 0;
    padding: 0;
    border-bottom: 3px solid #F88346;
}

.hmt-tab-link {
    flex: 1;
    padding: 14px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: #eee;
    color: #666;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    transition: background 0.2s, color 0.2s;
    margin-right: 2px;
}

.hmt-tab-link:last-child {
    margin-right: 0;
}

.hmt-tab-link.active {
    background: #fff;
    color: #F88346;
    border-color: #F88346;
    border-bottom: 3px solid #fff;
    margin-bottom: -3px;
    position: relative;
    z-index: 1;
}

.hmt-tab-link:hover:not(.active) {
    background: #f5f5f5;
    color: #333;
}

.hmt-tab-content {
    display: none;
    padding: 30px 25px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: #fff;
}

.hmt-tab-content.active {
    display: block;
}

/* Override the two-column layout WooCommerce normally uses */
.hmt-login-tabs .u-columns,
.hmt-login-tabs .col2-set {
    display: block;
}
.hmt-login-tabs .u-column1,
.hmt-login-tabs .u-column2 {
    width: 100%;
    float: none;
    padding: 0;
}


/* =========================================================================
   Permit Profile — Success Message
   ========================================================================= */

.hmt-permit-ready {
    position: relative;
    padding-bottom: 35px !important;
}

.hmt-permit-ready .woocommerce-Button {
    margin-bottom: 10px;
}

.hmt-permit-ready a.woocommerce-message-close {
    position: absolute !important;
    bottom: 8px;
    right: 12px;
    left: auto !important;
    font-size: 12px;
    float: none !important;
}


/* =========================================================================
   Child Permits
   ========================================================================= */

button.hmt-remove-child,
.woocommerce-account .woocommerce-form button.hmt-remove-child {
    min-width: 48px !important;
    min-height: 48px !important;
    width: 48px !important;
    max-width: 48px !important;
    font-size: 20px;
    line-height: 48px;
    padding: 0 !important;
    color: #999 !important;
    background: #f5f5f5 !important;
    border: 1px solid #ccc !important;
    cursor: pointer;
    text-align: center;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

button.hmt-remove-child:hover,
.woocommerce-account .woocommerce-form button.hmt-remove-child:hover {
    color: #d00 !important;
    border-color: #d00 !important;
    background: #fff !important;
}


/* Fix WooCommerce password visibility toggle positioning */
.woocommerce-account .woocommerce-form .password-input,
.woocommerce form .password-input {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}
.woocommerce form .password-input .show-password-input,
.woocommerce-account .woocommerce-form .password-input .show-password-input {
    position: absolute !important;
    right: 0.7em !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: auto !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-block !important;
    float: none !important;
    clear: none !important;
    text-align: right !important;
}


/* Cart quantity styling */



/* Match checkout native selects to text input styling */
.woocommerce-checkout select,
.woocommerce-checkout .form-row select {
    height: 37px !important;
    padding: 8px !important;
    font-size: 16px !important;
    line-height: normal !important;
    border: 1px solid rgba(32, 7, 7, 0.8) !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    color: #000 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px !important;
}

/* Constrain and center the Stripe payment form on checkout */
fieldset#wc-stripe-upe-form {
    width: 300px;
    margin: auto;
}

/* Remove fieldset borders on checkout */
.woocommerce-checkout fieldset {
    border: 0;
}
