/*
Theme Name: The Steel Bros
Theme URI: https://example.com/thesteelbros
Author: The Steel Bros Team
Author URI: https://example.com
Description: A premium fitness apparel WordPress theme.
Version: 1.0.0
Text Domain: thesteelbros
*/

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* =========================================
   WooCommerce Notices & Alerts Styling
   ========================================= */

/* Base Notice Styling */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    background-color: #121212 !important;
    /* Card Dark */
    color: #ffffff !important;
    border-top: 3px solid #333 !important;
    /* Default border fallback */
    padding: 1rem 1.5rem !important;
    margin-bottom: 2rem !important;
    border-radius: 4px !important;
    position: relative;
    list-style: none inside !important;
    width: auto !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Base Notice Links */
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
    color: #ffffff !important;
    text-decoration: underline;
    font-weight: bold;
}

.woocommerce-message a:hover,
.woocommerce-error a:hover,
.woocommerce-info a:hover {
    color: #cccccc !important;
    text-decoration: none;
}

/* Success Message (e.g. Added to cart) */
.woocommerce-message {
    border-top-color: #22c55e !important;
    /* Green-500 */
}

.woocommerce-message::before {
    color: #22c55e !important;
    /* Optional: content: '\e015'; font-family: WooCommerce; */
}

/* Error Message */
.woocommerce-error {
    border-top-color: #ef4444 !important;
    /* Red-500 */
}

.woocommerce-error li {
    list-style: none !important;
    /* Remove bullet points */
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.woocommerce-error::before {
    color: #ef4444 !important;
}

/* Info Message */
.woocommerce-info {
    border-top-color: #3b82f6 !important;
    /* Blue-500 */
}

.woocommerce-info::before {
    color: #3b82f6 !important;
}

/* Button inside notices (e.g. "View Cart") */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    float: right;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border: none !important;
    margin-left: 1rem !important;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
    background: #e5e5e5 !important;
    color: #000000 !important;
    opacity: 1 !important;
}

/* =========================================
   WooCommerce Dashboard / My Account Overrides
   ========================================= */

/* Fix conflict with default WooCommerce float/width styles */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}

/* =========================================
   WooCommerce Form & Input Styling
   ========================================= */

/* Labels */
.woocommerce-form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 700;
    /* font-bold */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* tracking-widest */
    color: #64748b;
    /* text-slate-500 */
}

/* Dark Mode Label Support */
.dark .woocommerce-form-row label {
    color: #94a3b8;
    /* text-slate-400 */
}

/* Required Asterisk */
.woocommerce-form-row label .required {
    color: #ef4444;
    text-decoration: none;
    border: none;
}

/* Inputs, Textareas, Selects */
.woocommerce-Input,
.woocommerce-input-wrapper .input-text,
.select2-container .select2-selection--single,
textarea {
    width: 100%;
    padding: 1rem 1.25rem !important;
    /* py-4 px-5 */
    background-color: #f8fafc !important;
    /* bg-slate-50 */
    border: 2px solid #f1f5f9 !important;
    /* border-slate-100 */
    border-radius: 0.75rem !important;
    /* rounded-xl */
    color: #0f172a !important;
    /* text-slate-900 */
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
    box-shadow: none !important;
}

/* Dark Mode Inputs */
.dark .woocommerce-Input,
.dark .woocommerce-input-wrapper .input-text,
.dark .select2-container .select2-selection--single,
.dark textarea {
    background-color: #1a1a1a !important;
    border-color: #2a2a2a !important;
    color: #ffffff !important;
}

/* Focus State */
.woocommerce-Input:focus,
.woocommerce-input-wrapper .input-text:focus,
textarea:focus {
    border-color: #0f172a !important;
    /* slate-900 */
}

.dark .woocommerce-Input:focus,
.dark .woocommerce-input-wrapper .input-text:focus,
.dark textarea:focus {
    border-color: #ffffff !important;
}

/* Primary Button (Save Changes) */
.woocommerce-Button.button {
    width: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #0f172a !important;
    /* slate-900 */
    color: #ffffff !important;
    font-weight: 900 !important;
    /* font-black */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2rem !important;
    border-radius: 0.75rem !important;
    /* rounded-xl */
    border: none !important;
    cursor: pointer;
    transition: opacity 0.2s;
    float: none !important;
    /* Reset float if any */
}

.dark .woocommerce-Button.button {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.woocommerce-Button.button:hover {
    opacity: 0.9;
}

/* Fieldset/Legend styling for sections like 'Password change' */
fieldset {
    margin-top: 2rem;
    padding: 0;
    border: none;
}

legend {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
    width: 100%;
}

/* Password Input Wrapper */
.password-input {
    position: relative;
    display: block;
}

.password-input input {
    padding-right: 3rem !important;
    /* Make room for the button */
}

/* Hide Native Browser Password Toggles */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Eye Button Position */
.tsb-password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 50;
    /* Ensure it's on top */
    color: #64748b;
    /* slate-500 */
    font-size: 0;
    /* Hide default text "Show" */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .tsb-password-toggle {
    color: #94a3b8;
    /* slate-400 */
}

/* Use Pseudo-element for Material Icon - Eye */
.tsb-password-toggle::before {
    font-family: 'Material Symbols Outlined';
    content: 'visibility';
    font-size: 24px;
    display: block;
    line-height: 1;
}

/* Active State (Showing) - Eye Slash */
.tsb-password-toggle.display-password::before {
    content: 'visibility_off';
}

/* =========================================
   Contact Form 7 & Intl Tel Input Styling
   ========================================= */

/* Use same styles as WooCommerce Inputs */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-textarea,
.wpcf7-form-control.wpcf7-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: #f8fafc;
    /* bg-slate-50 */
    border: 2px solid #f1f5f9;
    /* border-slate-100 */
    border-radius: 0.75rem;
    /* rounded-xl */
    color: #0f172a;
    /* text-slate-900 */
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
}

.dark .wpcf7-form-control.wpcf7-text,
.dark .wpcf7-form-control.wpcf7-textarea,
.dark .wpcf7-form-control.wpcf7-select {
    background-color: #1a1a1a;
    border-color: #2a2a2a;
    color: #ffffff;
}

.wpcf7-form-control:focus {
    border-color: #0f172a;
}

.dark .wpcf7-form-control:focus {
    border-color: #ffffff;
}

/* Submit Button */
.wpcf7-submit {
    width: 100%;
    background-color: #0f172a;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.dark .wpcf7-submit {
    background-color: #ffffff;
    color: #000000;
}

.wpcf7-submit:hover {
    opacity: 0.9;
}

/* Phone Input Fixes */
.iti {
    width: 100%;
}

.iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags@2x.png");
    }
}

/* Dark Mode Phone Dropdown */
.dark .iti__country-list {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    z-index: 1000;
    /* Ensure dropdown is visible */
}

.dark .iti__country.iti__highlight {
    background-color: #333;
}

.dark .iti__selected-country {
    background-color: #222;
}

.dark .iti__country-name,
.dark .iti__dial-code {
    color: #fff;
}

/* =========================================
   Utility Classes
   ========================================= */

/* Hide scrollbar but maintain scroll functionality */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}