/*
	Theme Name: Boostmonitor
	Theme URI:
	Description: Boostmonitor Mobile Stylesheet
	Version: 1.0
	Author: Boostmonitor/Hector Felan
	Author URI: https://boostmonitor.com
	Tags: Boostmonitor, HTML5, CSS3

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/* Set root default variables */
:root {
    --default-font-size-value: 16;
    --default-font-size: calc(16 / var(--default-font-size-value) * 1rem);
    --default-padding: 0.9375rem;
    --custom-transition: 0.6s cubic-bezier(0.64, 0, 0.4, 1);
    --default-border-radius: calc(30 / var(--default-font-size-value) * 1rem);
    font-size: var(--default-font-size);
    font-family: 'SF-Pro-Regular', sans-serif;
    line-height: 1.3;
}

body {
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--body-background-color);
    color: var(--clear-color);
}
/*
==================================
    LOGIN HEADER
==================================
*/
#mobile-login-header img {
    width: 200px;
    object-fit: contain;
}

/*
==================================
    MOBILE HOME TOP SECTION
==================================
*/
.mobile-home-wrapper {
    position: relative;
    z-index: 1;
    transition: var(--custom-transition);
}

.mobile-home-wrapper.left-deactivated {
    pointer-events: none;
    /* opacity: 0.4; */
    transform: translateX(-100px);
}

.mobile-home-wrapper.zoom-deactivated {
    pointer-events: none;
    /* opacity: 0.4; */
    transform: scale(0.96);
}

.mobile-home-address-dropdown {
    display: block;
    white-space: nowrap;
    color: var(--clear-color);
}

.mobile-cart-icon {
    position: relative;
}

.mobile-cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    color: var(--clear-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 15px;
    background-color: var(--error-color);
    outline: 3px solid var(--body-background-color)
}

/* Input Wrapper */
.input-wrapper {
    margin-bottom: 1.5rem;
    width: 100%;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
}

.input-required {
    color: #e74c3c;
    margin-left: 0.25rem;
}

/* Input Field Wrapper */
.input-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Input Field */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    background-color: #fff;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-field:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}

.input-field::placeholder {
    color: #9ca3af;
}

/* Input with Icons */
.has-icon-left .input-field {
    padding-left: 2.75rem;
}

.has-icon-right .input-field {
    padding-right: 2.75rem;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align -items: center;
    justify-content: center;
    color: #6b7280;
    pointer-events: none;
    width: 1.25rem;
    height: 1.25rem;
}

.input-icon-left {
    left: 1rem;
}

.input-icon-right {
    right: 1rem;
}

.input-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* 
==================================
    BOTTOM POPUP
==================================
 */
.bottom-popup {
    position: fixed;
    top: 100%;
    left: 0;
    z-index: 10;
    transition: var(--custom-transition);
    box-sizing: border-box;
}

.bottom-popup.active {
    top: 0;
}

/* 
==================================
    RIGHT POPUP
==================================
 */
.right-popup {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 10;
    transition: var(--custom-transition);
    box-sizing: border-box;
}
.right-popup.active {
    right: 0;
}

/* Helper and Error Text */
.helper-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.input-error-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #e74c3c;
}

/* Error State */
.has-error .input-field {
    border-color: #e74c3c;
}

.has-error .input-field:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Dashicons Support */
.input-icon.dashicons,
.input-icon.dashicons-before {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

/* Font Awesome Support */
.input-icon.fa,
.input-icon.fas,
.input-icon.far,
.input-icon.fab {
    font-size: 1.125rem;
}