/*
Theme Name: Hisense DXB Theme
Description: Standalone WordPress theme for Hisense DXB project with custom styling and functionality
Author: Hisense DXB Team
Template: twentytwenty
Version: 2.0.5
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwenty-child
*/

/* ==========================================================================
   Child Theme Styles
   ========================================================================== */

/* ==========================================================================
   Standalone Theme Styles
   ========================================================================== */

/*
 * This theme operates independently without parent theme styles.
 * All custom styles have been organized into separate CSS files for
 * better maintainability and performance.
 *
 * CSS loading order:
 * 1. Global styles (css/global.css) - Variables, utilities, base styles
 * 2. Common styles (css/common.css) - Header and footer styles
 * 3. Child theme styles (style.css) - Theme-specific overrides
 * 4. Page-specific styles (css/page-name.css) - Individual page styles
 */

/* ==========================================================================
   wcfm style changes
   ========================================================================== */

.wcfmmp_become_vendor_link {
  display: none !important;
}
#wcfm-main-content {
  margin: 65px 0px 0px 0px !important;
  max-width: 100% !important;
}
.page-template-page-storemanager .header-main,
.page-template-page-storemanager .footer-main {
  display: none !important;
}
.page-template-page-storemanager .woocommerce-Price-amount.amount {
  font-size: 14px !important;
}

.page-template-page-storemanager ins span.woocommerce-Price-amount {
  font-size: 12px !important;
}

#wcfm-products a{
  font-size: 14px;
}
/* ==========================================================================
   Header Actions - Cart and Wishlist Counters
   ========================================================================== */

/* Header Action Icons */
.header-actions img {
  transition: transform 0.3s ease;
}

.header-actions a:hover img {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(47%) sepia(35%) saturate(1514%)
    hue-rotate(136deg) brightness(90%) contrast(97%);
}

/* Counter Badges */
.cart-count,
.wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #36a8a5;
  color: white;
  font-size: 11px;
  line-height: 9px;
  font-weight: 400;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

/* Hide counter when count is 0 */
.cart-count:empty,
.wishlist-count:empty {
  display: none;
}

/* Show counter only when count > 0 */
.cart-count:not(:empty),
.wishlist-count:not(:empty) {
  display: flex;
}

/* Counter Animation */
.cart-count.counter-updated,
.wishlist-count.counter-updated {
  animation: counterPulse 0.3s ease-in-out;
}

@keyframes counterPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Counter visibility based on content */
.cart-count:empty,
.wishlist-count:empty {
  display: none !important;
}

/* Specific Action Styling */
.search-link,
.wishlist-link,
.account-link,
.cart-link {
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-actions {
    gap: 10px;
  }

  .header-actions img {
    width: 20px;
    height: 20px;
  }

  .cart-count,
  .wishlist-count {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    top: -6px;
    right: -6px;
  }
}

/* ==========================================================================
   WooCommerce Messages & Notices
   ========================================================================== */

/* Base message styling */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  position: relative;
  padding: 16px 20px 16px 50px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 4px solid;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  list-style: none;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Success messages */
.woocommerce-message {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left-color: #16a34a;
  color: #15803d;
}

.woocommerce-message::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #16a34a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Error messages */
.woocommerce-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left-color: #dc2626;
  color: #dc2626;
}

.woocommerce-error::before {
  content: "✕";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #dc2626;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Info messages */
.woocommerce-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left-color: var(--hisense-primary);
  color: var(--hisense-primary);
}

/* .woocommerce-info::before {
    content: "i";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold; 
} */

/* Message links and buttons */
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.woocommerce-message a:hover,
.woocommerce-error a:hover,
.woocommerce-info a:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Message buttons */
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 0 0 10px;
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.woocommerce-message .button:hover,
.woocommerce-error .button:hover,
.woocommerce-info .button:hover {
  background: currentColor;
  color: white;
}

/* Error list styling */
.woocommerce-error ul,
.woocommerce-error ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-error li {
  margin: 8px 0;
  padding: 0;
  position: relative;
}

.woocommerce-error li:first-child {
  margin-top: 0;
}

.woocommerce-error li:last-child {
  margin-bottom: 0;
}

/* Multiple error messages */
.woocommerce-error li::before {
  content: "•";
  position: absolute;
  left: -15px;
  color: #dc2626;
  font-weight: bold;
}

/* Message close button */
.woocommerce-message .woocommerce-message-close,
.woocommerce-error .woocommerce-message-close,
.woocommerce-info .woocommerce-message-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.woocommerce-message .woocommerce-message-close:hover,
.woocommerce-error .woocommerce-message-close:hover,
.woocommerce-info .woocommerce-message-close:hover {
  opacity: 1;
}

/* Animation for new messages */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .woocommerce-message,
  .woocommerce-error,
  .woocommerce-info {
    padding: 14px 16px 14px 45px;
    margin: 15px 0;
    font-size: 13px;
  }

  .woocommerce-message::before,
  .woocommerce-error::before,
  .woocommerce-info::before {
    left: 14px;
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .woocommerce-message .button,
  .woocommerce-error .button,
  .woocommerce-info .button {
    padding: 6px 12px;
    font-size: 12px;
    margin: 5px 0 0 0;
    display: block;
    text-align: center;
  }
}

/* WooCommerce notices wrapper */
/* .woocommerce-notices-wrapper {
    margin: 20px 0;
    position: relative;
    z-index: 10;
} */

/* Account page specific messages */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error,
.woocommerce-account .woocommerce-info {
  margin: 20px 0 30px 0;
  border-radius: 12px;
}

/* My Account page notices positioning */
.myaccount-main-wrapper > .woocommerce-notices-wrapper {
  margin: 0 0 25px 0;
  position: relative;
  z-index: 10;
}

/* Ensure notices appear above the content grid */
.myaccount-main-wrapper {
  position: relative;
}

.myaccount-main-wrapper
  > .woocommerce-notices-wrapper
  + .woocommerce-MyAccount-content {
  margin-top: 0;
}

/* Form validation messages */
.woocommerce-EditAccountForm .woocommerce-message,
.woocommerce-EditAccountForm .woocommerce-error {
  margin-bottom: 25px;
  position: sticky;
  top: 20px;
  z-index: 100;
}

/* Cart and checkout messages */
.woocommerce-cart .woocommerce-message,
.woocommerce-checkout .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-error {
  margin: 0 0 25px 0;
  border-radius: 8px;
}

/* Store notice */
.woocommerce-store-notice {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  margin: 0;
  border-radius: 0;
  position: relative;
  text-align: center;
  font-weight: 500;
}

.woocommerce-store-notice__dismiss-link {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #92400e;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.woocommerce-store-notice__dismiss-link:hover {
  opacity: 1;
}

/* Message variations */
.woocommerce-message.woocommerce-message--info {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left-color: #0ea5e9;
  color: #0369a1;
}

.woocommerce-message.woocommerce-message--warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left-color: #f59e0b;
  color: #d97706;
}

/* Accessibility improvements */
.woocommerce-message[role="alert"],
.woocommerce-error[role="alert"],
.woocommerce-info[role="alert"] {
  border-radius: 8px;
  outline: none;
}

.woocommerce-message:focus,
.woocommerce-error:focus,
.woocommerce-info:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .woocommerce-message,
  .woocommerce-error,
  .woocommerce-info {
    background: white !important;
    color: black !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }

  .woocommerce-message::before,
  .woocommerce-error::before,
  .woocommerce-info::before {
    display: none !important;
  }
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */

/* Toast container */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  pointer-events: none;
  max-width: 400px;
  width: 100%;
}

/* Individual toast */
.toast {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin-bottom: 12px;
  padding: 16px 20px 16px 50px;
  position: relative;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  border-left: 4px solid;
  backdrop-filter: blur(10px);
  max-width: 100%;
  word-wrap: break-word;
}

/* Toast show animation */
.toast.show {
  transform: translateX(0);
}

/* Toast hide animation */
.toast.hide {
  transform: translateX(100%);
  opacity: 0;
}

/* Toast types */
.toast.success {
  border-left-color: #16a34a;
  background: linear-gradient(
    135deg,
    rgba(240, 253, 244, 0.95) 0%,
    rgba(220, 252, 231, 0.95) 100%
  );
  color: #15803d;
}

.toast.error {
  border-left-color: #dc2626;
  background: linear-gradient(
    135deg,
    rgba(254, 242, 242, 0.95) 0%,
    rgba(254, 226, 226, 0.95) 100%
  );
  color: #dc2626;
}

.toast.notice,
.toast.info {
  border-left-color: #2563eb;
  background: linear-gradient(
    135deg,
    rgba(239, 246, 255, 0.95) 0%,
    rgba(219, 234, 254, 0.95) 100%
  );
  color: #1d4ed8;
}

/* Toast icons */
.toast::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
}

.toast.success::before {
  content: "✓";
  background: #16a34a;
}

.toast.error::before {
  content: "✕";
  background: #dc2626;
}

.toast.notice::before,
.toast.info::before {
  content: "i";
  background: #2563eb;
}

/* Toast close button */
.toast-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  padding: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  opacity: 1;
}

/* Progress bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  border-radius: 0 0 12px 12px;
  transition: width linear;
}

/* Toast action button */
.toast-action {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid currentColor;
  color: inherit;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.toast-action:hover {
  background: currentColor;
  color: white;
}

/* Toast stacking */
.toast:nth-child(1) {
  z-index: 10005;
}

.toast:nth-child(2) {
  z-index: 10004;
}

.toast:nth-child(3) {
  z-index: 10003;
}

.toast:nth-child(4) {
  z-index: 10002;
}

.toast:nth-child(5) {
  z-index: 10001;
}

/* Toast entrance animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Enhanced animations */
.toast {
  animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.hide {
  animation: slideOutRight 0.3s ease-in-out;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .toast {
    padding: 14px 16px 14px 45px;
    font-size: 14px;
    margin-bottom: 8px;
    border-radius: 8px;
  }

  .toast::before {
    left: 14px;
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .toast-action {
    display: block;
    margin: 8px 0 0 0;
    text-align: center;
    width: 100%;
  }
}

/* ==========================================================================
   Form Button Loading States
   ========================================================================== */

/* Prevent button text from wrapping during loading */
.woocommerce-EditAccountForm button[type="submit"] {
  min-width: 120px;
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Loading state styling */
.woocommerce-EditAccountForm button[type="submit"].loading {
  opacity: 0.8;
  cursor: not-allowed;
  pointer-events: none;
}

/* Loading spinner (optional) */
.woocommerce-EditAccountForm button[type="submit"].loading::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }

  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Ensure consistent button sizing */
.form-actions button {
  min-width: 120px;
  text-align: center;
}

/* Mobile button adjustments */
@media (max-width: 768px) {
  .woocommerce-EditAccountForm button[type="submit"] {
    min-width: 100px;
    width: 100%;
  }

  .woocommerce-EditAccountForm button[type="submit"].loading::after {
    right: 15px;
  }
}

/* ==========================================================================
   Form Validation Styles
   ========================================================================== */

/* Error field styling */
.woocommerce-EditAccountForm input.error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
  background-color: rgba(254, 242, 242, 0.5);
}

/* Field error messages */
.field-error {
  margin-top: 5px;
  margin-bottom: 15px;
}

.error-message {
  color: #dc2626;
  font-size: 13px;
  line-height: 1.4;
  padding: 4px 8px;
  background: rgba(254, 242, 242, 0.8);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 4px;
  margin-bottom: 3px;
  position: relative;
}

.error-message:last-child {
  margin-bottom: 0;
}

/* Error message icon */
.error-message::before {
  content: "⚠";
  margin-right: 6px;
  font-size: 12px;
}

/* Shake animation for errors */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* Success field styling */
.woocommerce-EditAccountForm input.valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1) !important;
  background-color: rgba(240, 253, 244, 0.5);
}

/* Password strength indicator */
.password-strength-indicator {
  margin-top: 8px;
  margin-bottom: 15px;
  display: none;
  /* Hidden by default, shown when password is entered */
}

.strength-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: all 0.4s ease;
  position: relative;
  background: #d1d5db;
}

.strength-fill.weak {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
}

.strength-fill.medium {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.strength-fill.strong {
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.3);
}

.strength-text {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
  font-weight: 500;
}

.strength-text.weak {
  color: #dc2626;
}

.strength-text.medium {
  color: #f59e0b;
}

.strength-text.strong {
  color: #16a34a;
}

/* Password strength animation */
.strength-fill {
  animation: strengthPulse 0.3s ease-out;
}

@keyframes strengthPulse {
  0% {
    transform: scaleX(0.8);
  }

  50% {
    transform: scaleX(1.05);
  }

  100% {
    transform: scaleX(1);
  }
}

/* Password strength indicator container styling */
.password-strength-indicator {
  padding: 12px;
  background: rgba(249, 250, 251, 0.8);
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.password-strength-indicator.weak {
  background: rgba(254, 242, 242, 0.8);
  border-color: rgba(220, 38, 38, 0.2);
}

.password-strength-indicator.medium {
  background: rgba(255, 251, 235, 0.8);
  border-color: rgba(245, 158, 11, 0.2);
}

.password-strength-indicator.strong {
  background: rgba(240, 253, 244, 0.8);
  border-color: rgba(22, 163, 74, 0.2);
}

/* Password requirements checklist */
.password-requirements {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(249, 250, 251, 0.9);
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  display: none;
}

.password-requirements.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.password-requirements h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.password-requirements ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.password-requirements li {
  padding: 2px 0;
  color: #6b7280;
  position: relative;
  padding-left: 20px;
  transition: color 0.2s ease;
}

.password-requirements li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #d1d5db;
  transition: all 0.2s ease;
}

.password-requirements li.met {
  color: #16a34a;
}

.password-requirements li.met::before {
  content: "✓";
  color: #16a34a;
  transform: scale(1.1);
}

/* Form field focus states */
.woocommerce-EditAccountForm input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.woocommerce-EditAccountForm input:focus.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.woocommerce-EditAccountForm input:focus.valid {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

/* Validation icons */
.woocommerce-EditAccountForm .form-row {
  position: relative;
}

.woocommerce-EditAccountForm input.error + .validation-icon,
.woocommerce-EditAccountForm input.valid + .validation-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}

.woocommerce-EditAccountForm input.error + .validation-icon::before {
  content: "✕";
  color: #dc2626;
}

.woocommerce-EditAccountForm input.valid + .validation-icon::before {
  content: "✓";
  color: #16a34a;
}

/* Tooltip for validation help */
.validation-tooltip {
  position: absolute;
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  z-index: 1000;
  max-width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.validation-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  border: 5px solid transparent;
  border-top-color: #1f2937;
}

.validation-tooltip.show {
  opacity: 1;
  visibility: visible;
}

/* Mobile validation styles */
@media (max-width: 768px) {
  .error-message {
    font-size: 12px;
    padding: 3px 6px;
  }

  .password-strength-indicator {
    margin-top: 6px;
    margin-bottom: 12px;
  }

  .strength-text {
    font-size: 11px;
  }

  .validation-tooltip {
    max-width: 200px;
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* ==========================================================================
   Enhanced Validation Features
   ========================================================================== */

/* Validation icons positioning */
.woocommerce-EditAccountForm .form-row {
  position: relative;
}

.validation-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 2;
}

.validation-icon.valid {
  opacity: 1;
  color: #16a34a;
}

.validation-icon.valid::before {
  content: "✓";
}

.validation-icon.invalid {
  opacity: 1;
  color: #dc2626;
}

.validation-icon.invalid::before {
  content: "✕";
}

/* Email checking state */
.woocommerce-EditAccountForm input.checking {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTAiIGN5PSIxMCIgcj0iOCIgc3Ryb2tlPSIjNmI3MjgwIiBzdHJva2Utd2lkdGg9IjIiLz4KPHBhdGggZD0iTTEwIDZWMTBMMTMgMTMiIHN0cm9rZT0iIzZiNzI4MCIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  animation: spin 1s linear infinite;
}

/* Screen reader only text */
.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;
}

/* Form field groups */
.form-field-group {
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(249, 250, 251, 0.5);
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.form-field-group h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

/* Password requirements checklist */
.password-requirements {
  margin-top: 8px;
  padding: 12px;
  background: rgba(249, 250, 251, 0.8);
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
}

.password-requirements h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.password-requirements ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.password-requirements li {
  padding: 2px 0;
  color: #6b7280;
  position: relative;
  padding-left: 20px;
}

.password-requirements li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #d1d5db;
}

.password-requirements li.met {
  color: #16a34a;
}

.password-requirements li.met::before {
  content: "✓";
  color: #16a34a;
}

/* Form progress indicator */
.form-progress {
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.form-progress h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  font-size: 12px;
  color: #64748b;
}

/* Validation summary */
.validation-summary {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid;
  display: none;
}

.validation-summary.has-errors {
  display: block;
  background: rgba(254, 242, 242, 0.8);
  border-color: rgba(220, 38, 38, 0.2);
  color: #dc2626;
}

.validation-summary.all-valid {
  display: block;
  background: rgba(240, 253, 244, 0.8);
  border-color: rgba(22, 163, 74, 0.2);
  color: #16a34a;
}

.validation-summary h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
}

.validation-summary ul {
  margin: 0;
  padding: 0 0 0 20px;
  font-size: 13px;
}

/* Enhanced focus states */
.woocommerce-EditAccountForm input:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.woocommerce-EditAccountForm input:focus.error {
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.woocommerce-EditAccountForm input:focus.valid {
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

/* Smooth transitions for all form elements */
.woocommerce-EditAccountForm input,
.woocommerce-EditAccountForm button,
.field-error,
.validation-icon {
  transition: all 0.2s ease;
}

/* Error state for radio buttons */
.radio-btn-wrapper.error .radio-label::before {
  border-color: #dc2626;
}

.radio-btn-wrapper.error .radio-label {
  color: #dc2626;
}

/* Success state for radio buttons */
.radio-btn-wrapper.valid .radio-label::before {
  border-color: #16a34a;
}

.radio-btn-wrapper.valid .radio-label {
  color: #16a34a;
}

/* Radio button validation integration */
.woocommerce-EditAccountForm input[type="radio"].error + .radio-label::before {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.woocommerce-EditAccountForm input[type="radio"].valid + .radio-label::before {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

/* Required indicator for radio groups */
.radio-group-label.required::after {
  content: " *";
  color: #dc2626;
}

/* ==========================================================================
   Enhanced Checkout Form Styling - Matching Feedback Form
   ========================================================================== */

/* Enhanced checkout form styling */
.enhanced-checkout-form .enhanced-field-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.enhanced-checkout-form .form-row {
  position: relative;
  margin-bottom: 20px;
}

.enhanced-checkout-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.enhanced-checkout-form .input-wrapper input,
.enhanced-checkout-form .input-wrapper select {
  flex: 1;
  padding-right: 40px;
}

/* Enhanced input styling - matching feedback form */
.enhanced-checkout-form input[type="text"],
.enhanced-checkout-form input[type="email"],
.enhanced-checkout-form input[type="tel"],
.enhanced-checkout-form select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  color: #374151;
  background: #fff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Validation states - matching feedback form */
.enhanced-checkout-form input.error,
.enhanced-checkout-form select.error {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.enhanced-checkout-form input.valid,
.enhanced-checkout-form select.valid {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.enhanced-checkout-form .checkout-field-col .woocommerce-input-wrapper {
  position: relative;
}

/* Validation icons - matching feedback form */
.enhanced-checkout-form .validation-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 2;
}

.enhanced-checkout-form .validation-icon.valid {
  opacity: 1;
  color: #16a34a;
}

.enhanced-checkout-form .validation-icon.valid::before {
  content: "✓";
}

.enhanced-checkout-form .validation-icon.invalid {
  opacity: 1;
  color: #dc2626;
}

.enhanced-checkout-form .validation-icon.invalid::before {
  content: "✕";
}

/* Field error messages - matching feedback form exactly */
.enhanced-checkout-form .field-error {
  margin-top: 5px;
  display: none !important;
  /* Hidden by default, shown when there are errors */
}

.enhanced-checkout-form .field-error.show,
.enhanced-checkout-form .field-error[style*="block"],
.enhanced-checkout-form .field-error:not(:empty) {
  display: block !important;
  visibility: visible !important;
}

.enhanced-checkout-form .error-message {
  color: #dc2626;
  font-size: 13px;
  line-height: 1.4;
  padding: 4px 8px;
  background: rgba(254, 242, 242, 0.8);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 4px;
  margin-bottom: 3px;
  position: relative;
  animation: slideDown 0.3s ease-out;
  display: block;
}

.enhanced-checkout-form .error-message::before {
  content: "⚠";
  margin-right: 6px;
  font-size: 12px;
}

/* Checkout form layout improvements */
.enhanced-checkout-form .checkout-field-col {
  margin-bottom: 20px;
}

.enhanced-checkout-form .form-row-wide {
  width: 100%;
}

.enhanced-checkout-form .place-order-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.enhanced-checkout-form .place-order-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Mobile responsive - matching feedback form */
@media (max-width: 768px) {
  .enhanced-checkout-form .form-row-first,
  .enhanced-checkout-form .form-row-last {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .enhanced-checkout-form input[type="text"],
  .enhanced-checkout-form input[type="email"],
  .enhanced-checkout-form input[type="tel"],
  .enhanced-checkout-form select {
    font-size: 16px;
    /* Prevent zoom on iOS */
  }

  .enhanced-checkout-form .place-order-btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ==========================================================================
   Enhanced Address Form Styling
   ========================================================================== */

/* Enhanced form styling - matching feedback form */
.enhanced-address-form .form-row {
}

.enhanced-address-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.enhanced-address-form .input-wrapper input,
.enhanced-address-form .input-wrapper select {
  flex: 1;
  padding-right: 40px;
}

/* Enhanced input styling - matching feedback form */
.enhanced-address-form input,
.enhanced-address-form select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  color: #374151;
  background: #fff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.enhanced-address-form input:focus,
.enhanced-address-form select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* Placeholder styling - matching feedback form */
.enhanced-address-form input::placeholder {
  color: #9ca3af;
}

/* Validation states - matching feedback form */
.enhanced-address-form input.error,
.enhanced-address-form select.error {
  border-color: #dc2626;
  background-color: rgba(254, 242, 242, 0.5);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.enhanced-address-form input.valid,
.enhanced-address-form select.valid {
  border-color: #16a34a;
  background-color: rgba(240, 253, 244, 0.5);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Validation icons - matching feedback form */
.enhanced-address-form .validation-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 2;
}

.enhanced-address-form .validation-icon.valid {
  opacity: 1;
  color: #16a34a;
}

.enhanced-address-form .validation-icon.valid::before {
  content: "✓";
}

.enhanced-address-form .validation-icon.invalid {
  opacity: 1;
  color: #dc2626;
}

.enhanced-address-form .validation-icon.invalid::before {
  content: "✕";
}

/* Field error messages - matching feedback form exactly */
.enhanced-address-form .field-error {
  margin-top: 5px;
  display: none !important;
  /* Hidden by default, shown when there are errors */
}

.enhanced-address-form .field-error.show,
.enhanced-address-form .field-error[style*="block"],
.enhanced-address-form .field-error:not(:empty) {
  display: block !important;
  visibility: visible !important;
}

.enhanced-address-form .error-message {
  color: #dc2626;
  font-size: 13px;
  line-height: 1.4;
  padding: 4px 8px;
  background: rgba(254, 242, 242, 0.8);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 4px;
  margin-bottom: 3px;
  position: relative;
  animation: slideDown 0.3s ease-out;
  display: block;
}

.enhanced-address-form .error-message::before {
  content: "⚠";
  margin-right: 6px;
  font-size: 12px;
}

/* Form summary */
.form-summary {
  margin: 20px 0;
  padding: 15px;
  background: rgba(240, 253, 244, 0.8);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 8px;
  animation: slideDown 0.3s ease-out;
}

.form-summary h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #16a34a;
}

.form-summary .summary-content {
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}

.enhanced-address-form .btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enhanced-address-form .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Checkbox styling */
.enhanced-address-form .checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
}

.enhanced-address-form .checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  transform: scale(1.2);
}

.enhanced-address-form .checkmark {
  margin-right: 8px;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Mobile responsive - matching feedback form */
@media (max-width: 768px) {
  .enhanced-address-form .form-row-group {
    flex-direction: column;
  }

  .enhanced-address-form input,
  .enhanced-address-form select {
    font-size: 16px;
    /* Prevent zoom on iOS */
  }

  .enhanced-address-form .form-submit-btn,
  .enhanced-address-form #save-address-btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ==========================================================================
   Enhanced Feedback Form Styling
   ========================================================================== */

/* Enhanced form styling */
.enhanced-feedback-form .form-row {
  position: relative;
  margin-bottom: 20px;
}

.enhanced-feedback-form .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.enhanced-feedback-form .input-wrapper input,
.enhanced-feedback-form .input-wrapper textarea {
  flex: 1;
  padding-right: 40px;
}

.enhanced-feedback-form .textarea-wrapper {
  align-items: flex-start;
}

.enhanced-feedback-form .textarea-icon {
  top: 15px;
  transform: none;
}

/* Enhanced input styling */
.enhanced-feedback-form input,
.enhanced-feedback-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  color: #374151;
  background: #fff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.enhanced-feedback-form input:focus,
.enhanced-feedback-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* Placeholder styling */
.enhanced-feedback-form input::placeholder,
.enhanced-feedback-form textarea::placeholder {
  color: #9ca3af;
}

/* Validation states */
.enhanced-feedback-form input.error,
.enhanced-feedback-form textarea.error {
  border-color: #dc2626;
  background-color: rgba(254, 242, 242, 0.5);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.enhanced-feedback-form input.valid,
.enhanced-feedback-form textarea.valid {
  border-color: #16a34a;
  background-color: rgba(240, 253, 244, 0.5);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Validation icons */
.enhanced-feedback-form .validation-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 2;
}

.enhanced-feedback-form .validation-icon.valid {
  opacity: 1;
  color: #16a34a;
}

.enhanced-feedback-form .validation-icon.valid::before {
  content: "✓";
}

.enhanced-feedback-form .validation-icon.invalid {
  opacity: 1;
  color: #dc2626;
}

.enhanced-feedback-form .validation-icon.invalid::before {
  content: "✕";
}

/* Field error messages */
.enhanced-feedback-form .field-error {
  margin-top: 5px;
  display: none;
  /* Hidden by default, shown when there are errors */
}

.enhanced-feedback-form .error-message {
  color: #dc2626;
  font-size: 13px;
  line-height: 1.4;
  padding: 4px 8px;
  background: rgba(254, 242, 242, 0.8);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 4px;
  margin-bottom: 3px;
  position: relative;
  animation: slideDown 0.3s ease-out;
}

.enhanced-feedback-form .error-message::before {
  content: "⚠";
  margin-right: 6px;
  font-size: 12px;
}

/* Character count styling */
.enhanced-feedback-form .character-count {
  margin-top: 5px;
  font-size: 12px;
  color: #6b7280;
  text-align: right;
  transition: color 0.3s ease;
}

.enhanced-feedback-form .character-count.warning {
  color: #f59e0b;
}

.enhanced-feedback-form .character-count.danger {
  color: #dc2626;
  font-weight: 600;
}

.enhanced-feedback-form .btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enhanced-feedback-form .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .enhanced-feedback-form .form-row-group {
    flex-direction: column;
  }

  .enhanced-feedback-form .form-row-group .form-row {
    margin-bottom: 15px;
  }

  .enhanced-feedback-form input,
  .enhanced-feedback-form textarea {
    font-size: 16px;
    /* Prevent zoom on iOS */
  }

  .enhanced-feedback-form .form-submit-btn {
    width: 100%;
    margin-bottom: 10px;
  }

  .enhanced-feedback-form .half-width {
    width: 100%;
  }
}

/* Form row group styling */
.enhanced-feedback-form .form-row-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.enhanced-feedback-form .half-width {
  flex: 1;
}

.enhanced-feedback-form .form-row-wide {
  width: 100%;
}

/* Textarea specific styling */
.enhanced-feedback-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.5;
}

/* Focus improvements */
.enhanced-feedback-form input:focus,
.enhanced-feedback-form textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Error state for radio buttons */
.radio-btn-wrapper.error .radio-label::before {
  border-color: #dc2626;
}

.radio-btn-wrapper.error .radio-label {
  color: #dc2626;
}

/* Success state for radio buttons */
.radio-btn-wrapper.valid .radio-label::before {
  border-color: #16a34a;
}

.radio-btn-wrapper.valid .radio-label {
  color: #16a34a;
}

/* ---------------------------------------------------- */

body {
  --space-100: 100px;
}

.px-100 {
  padding-block: var(--space-100);
}

.pt-100 {
  padding-top: var(--space-100);
}

.pb-100 {
  padding-bottom: var(--space-100);
}

/* ------------------------------------- */

.our-brands--list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.our-brands--item {
  padding: 15px;
  border: 1px solid #d3d3d3;
  border-radius: 6px;
}

.tinvwl_button_close {
  padding: 11px 18px;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  flex: 1;
}

.tinvwl_button_close {
  background: white;
  color: #049c98;
  border: 1px solid #049c98;
}

@media (max-width: 1550px) {
  body {
    --space-100: 85px;
  }
}

@media (max-width: 1280px) {
  body {
    --space-100: 75px;
  }
}

@media (max-width: 991px) {
  body {
    --space-100: 65px;
  }
}

@media (max-width: 480px) {
  body {
    --space-100: 50px;
  }
}
