/* Elementor Login Widget Styles */

/* Product List Widget Styles */
.sw-product-list-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* Responsive Container */
@media (max-width: 992px) {
  .sw-product-list-container {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .sw-product-list-container {
    padding: 10px;
    border-radius: 6px;
  }
}

@media (max-width: 576px) {
  .sw-product-list-container {
    padding: 8px;
    border-radius: 4px;
  }
}

.sw-product-filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sw-filters-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .sw-filters-row {
    flex-direction: column;
    gap: 15px;
  }
}

/* Categories Filter */
.sw-categories-filter {
  min-width: 220px;
  flex-shrink: 0;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: fit-content;
  border: 1px solid #e9ecef;
}

@media (max-width: 992px) {
  .sw-categories-filter {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .sw-categories-filter {
    padding: 15px;
    border-radius: 6px;
  }
}

@media (max-width: 576px) {
  .sw-categories-filter {
    padding: 12px;
    border-radius: 4px;
  }
}

.sw-categories-filter h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px 0;
  color: #2c3e50;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

.sw-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sw-category-list li {
  margin-bottom: 6px;
}

.sw-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #495057;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  background: #f8f9fa;
  margin-bottom: 4px;
}

.sw-category-link:hover {
  background-color: #e3f2fd;
  color: #1976d2;
  text-decoration: none;
  border-color: #bbdefb;
  transform: translateX(4px);
}

.sw-category-link.active {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  color: white;
  text-decoration: none;
  border-color: #1565c0;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.sw-category-link.active:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

/* Products Section */
.sw-products-section {
  flex: 1;
}

.sw-products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.sw-results-info {
  font-size: 14px;
  color: #666;
}

.sw-sorting-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sw-sort-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  min-width: 150px;
}

.sw-view-toggle {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.sw-view-toggle button {
  padding: 8px 12px;
  border: none;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sw-view-toggle button.active,
.sw-view-toggle button:hover {
  background: #007cba;
  color: white;
}

/* Products Grid */
.sw-products-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 30px;
  padding: 0 10px;
}

/* Default grid layouts - Big Screen (4 products per row) */
.sw-grid-2,
.sw-grid-3,
.sw-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Medium Screen - 3 products per row */
@media (max-width: 1200px) {
  .sw-products-grid {
    gap: 20px;
  }

  .sw-grid-2,
  .sw-grid-3,
  .sw-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet - 2 products per row */
@media (max-width: 768px) {
  .sw-products-grid {
    gap: 16px;
    padding: 0 5px;
  }

  .sw-grid-2,
  .sw-grid-3,
  .sw-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile - 1 product per row */
@media (max-width: 576px) {
  .sw-products-grid {
    gap: 12px;
    padding: 0;
  }

  .sw-grid-2,
  .sw-grid-3,
  .sw-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Product Card */
.sw-product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #f1f3f4;
}

.sw-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #e3f2fd;
}

.sw-product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f8f9fa;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sw-product-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.sw-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.sw-product-card:hover .sw-product-image img {
  transform: scale(1.08);
}

/* Fallback for missing images */
.sw-product-image img[src=""],
.sw-product-image img:not([src]) {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-product-image img[src=""]:before,
.sw-product-image img:not([src]):before {
  content: "📦";
  font-size: 48px;
  color: #ccc;
}

.sw-product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateY(-10px);
}

.sw-product-card:hover .sw-product-actions {
  opacity: 1;
  transform: translateY(0);
}

.sw-wishlist-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.sw-wishlist-btn:hover {
  background: #ff4757;
  color: white;
  transform: scale(1.1);
}

/* Product Info */
.sw-product-info {
  padding: 20px;
}

.sw-product-categories {
  font-size: 11px;
  color: #6c757d;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.sw-product-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #2c3e50;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sw-product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sw-product-title a:hover {
  color: #1976d2;
}

.sw-product-rating {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sw-product-rating i {
  color: #ffc107;
  font-size: 14px;
}

.sw-product-rating .far {
  color: #e9ecef;
}

.sw-product-price {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sw-price-regular {
  text-decoration: line-through;
  color: #6c757d;
  font-size: 14px;
}

.sw-price-sale,
.sw-price-current {
  font-weight: 700;
  font-size: 18px;
  color: #1976d2;
}

.sw-price-sale {
  color: #dc3545;
}

/* Product Action Buttons */
.sw-product-actions-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Quantity Wrapper */
.sw-quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.sw-quantity-label {
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  margin: 0;
  white-space: nowrap;
}

.sw-quantity-input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  background: #fff;
  color: #495057;
  transition: all 0.2s ease;
}

.sw-quantity-input:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.sw-quantity-input.invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}

.sw-quantity-input::-webkit-outer-spin-button,
.sw-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sw-quantity-input[type="number"] {
  -moz-appearance: textfield;
}

/* Login Required Message */
.sw-login-required-message {
  padding: 16px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  text-align: center;
  margin-top: 12px;
}

.sw-login-required-message p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.sw-view-products-btn,
.sw-select-options-btn {
  display: inline-block;
  padding: 12px 20px;
  border: 2px solid #1976d2;
  border-radius: 8px;
  background: transparent;
  color: #1976d2;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sw-view-products-btn:before,
.sw-select-options-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.sw-view-products-btn:hover:before,
.sw-select-options-btn:hover:before {
  left: 100%;
}

.sw-view-products-btn:hover,
.sw-select-options-btn:hover {
  background: #1976d2;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.sw-product-actions-bottom button {
  padding: 12px 20px;
  border: 2px solid #1976d2;
  border-radius: 8px;
  background: transparent;
  color: #1976d2;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.sw-product-actions-bottom button:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.sw-product-actions-bottom button:hover:before {
  left: 100%;
}

.sw-product-actions-bottom button:hover {
  background: #1976d2;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.sw-buy-product-btn {
  background: #1976d2 !important;
  color: white !important;
  border-color: #1976d2 !important;
}

.sw-buy-product-btn:hover {
  background: #1565c0 !important;
  border-color: #1565c0 !important;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4) !important;
}

.sw-buy-product-btn.disabled {
  background: #6c757d !important;
  border-color: #6c757d !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Add to Cart Button Styles */
.sw-add-to-cart-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.single_add_to_cart_button.button.alt {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 12px 20px !important;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  width: 100% !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.sw-add-to-cart-btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.sw-add-to-cart-btn:hover:before {
  left: 100%;
}

.sw-add-to-cart-btn:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.sw-add-to-cart-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sw-add-to-cart-btn.loading {
  color: transparent;
}

.sw-add-to-cart-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

/* Added to Cart Success State */
.sw-add-to-cart-btn.added-to-cart {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  color: white !important;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.5);
}

.sw-add-to-cart-btn.added-to-cart i {
  margin-right: 8px;
  animation: checkmark-bounce 0.6s ease-out;
}

/* Pulse Animation */
.sw-add-to-cart-btn.pulse-animation {
  animation: pulse-success 0.8s ease-out;
}

@keyframes pulse-success {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.6);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.5);
  }
}

@keyframes checkmark-bounce {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hide WooCommerce elements */
.added_to_cart,
.wc-forward,
.woocommerce-message,
.woocommerce-info {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* WooCommerce Integration Notices */
.sw-woocommerce-notice,
.sw-no-products-notice {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin: 20px 0;
  text-align: center;
  font-weight: 500;
}

.sw-no-products-notice {
  background: #fff3cd;
  border-color: #ffeaa7;
  color: #856404;
}

/* Wishlist Button Active State */
.sw-wishlist-btn.active {
  color: #dc3545;
}

.sw-wishlist-btn.active i {
  color: #dc3545;
}

/* Product Title Link Styles */
.sw-product-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sw-product-title a:hover {
  color: #007cba;
}

/* Disabled Button Styles */
.sw-buy-product-btn.disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.sw-buy-product-btn.disabled:hover {
  background: #6c757d;
  transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sw-filters-row {
    flex-direction: column;
  }

  .sw-categories-filter {
    min-width: auto;
  }

  .sw-products-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .sw-sorting-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sw-products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .sw-products-grid {
    grid-template-columns: 1fr;
  }

  .sw-sorting-controls {
    flex-direction: column;
    gap: 10px;
  }
}

/* Login Button */
.elw-login-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007cba;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.elw-login-button:hover {
  background-color: #005a87;
  transform: translateY(-1px);
}

.elw-login-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}

/* User Menu */
.elw-user-menu {
  position: relative;
  display: inline-block;
}

.elw-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;

  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.elw-user-trigger:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.elw-user-avatar {
  border-radius: 50%;
  width: 32px;
  height: 32px;
}

.elw-user-name {
  font-weight: 500;
  color: #495057;
}

.elw-dropdown-arrow {
  font-size: 12px;
  color: #6c757d;
  transition: transform 0.3s ease;
}

.elw-user-menu.active .elw-dropdown-arrow {
  transform: rotate(180deg);
}

/* User Dropdown */
.elw-user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.elw-user-menu.active .elw-user-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Additional specificity for dropdown visibility */
.elw-login-widget .elw-user-menu.active .elw-user-dropdown {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure dropdown is visible with animation */
@keyframes elw-dropdown-show {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.elw-user-menu.active .elw-user-dropdown {
  animation: elw-dropdown-show 0.3s ease forwards;
}

.elw-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.elw-dropdown-menu li {
  margin: 0;
}

.elw-dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #495057;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.elw-dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: #007cba;
}

/* Modal Styles */
.elw-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.elw-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.elw-modal-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.elw-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #adb5bd;
  cursor: pointer;
  transition: color 0.3s ease;
}

.elw-close:hover {
  color: #495057;
}

/* Login Form */
.elw-login-form h2 {
  margin: 0 0 24px 0;
  color: #495057;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.elw-form-group {
  margin-bottom: 20px;
}

.elw-form-group label {
  display: block;
  margin-bottom: 6px;
  color: #495057;
  font-weight: 500;
}

.elw-form-group input[type="text"],
.elw-form-group input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.elw-form-group input[type="text"]:focus,
.elw-form-group input[type="password"]:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.elw-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.elw-checkbox-label input[type="checkbox"] {
  margin: 0;
}

.elw-submit-button {
  width: 100%;
  padding: 12px;
  background-color: #007cba;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.elw-submit-button:hover {
  background-color: #005a87;
}

.elw-submit-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

/* Form Messages */
.elw-form-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}

.elw-form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.elw-form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Loading State */
.elw-loading {
  position: relative;
}

.elw-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .elw-modal-content {
    width: 95%;
    padding: 20px;
  }

  .elw-user-dropdown {
    right: auto;
    left: 0;
  }

  .elw-user-name {
    display: none;
  }
}

/* RTL Support */
[dir="rtl"] .elw-user-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .elw-dropdown-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .elw-user-menu.active .elw-dropdown-arrow {
  transform: scaleX(-1) rotate(180deg);
}
