/* ==========================================================================
   Code Web Tools - Dedicated Modern WooCommerce Stylesheet
   Author: Web With Faysal (https://linktr.ee/webwithfaysal)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Product Grid & Card Layout
   -------------------------------------------------------------------------- */
.cwt-products-grid,
ul.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .cwt-products-grid,
  ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cwt-products-grid,
  ul.products {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cwt-product-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--cwt-shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
}

.cwt-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--cwt-primary);
  box-shadow: var(--cwt-shadow-hover);
}

.cwt-product-thumb-wrap {
  position: relative !important;
  aspect-ratio: 16 / 10 !important;
  width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  background: #0B1120 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0;
  font-size: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.cwt-thumb-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  line-height: 0;
  font-size: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.cwt-product-img,
.cwt-product-thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: none !important;
  transition: transform 0.4s ease;
}

.cwt-product-card:hover .cwt-product-img,
.cwt-product-card:hover .cwt-product-thumb-wrap img {
  transform: scale(1.05);
}

.cwt-product-placeholder {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--cwt-text-muted);
}

/* Badges Stack */
.cwt-badges-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

/* Top-Right Wishlist Button */
.cwt-card-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cwt-card-wishlist-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  transform: scale(1.1);
}

.cwt-card-wishlist-btn:hover svg {
  fill: #FFFFFF;
}

.cwt-card-wishlist-btn.is-active {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border-color: #EF4444 !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
  transform: scale(1.05);
}

.cwt-card-wishlist-btn.is-active svg {
  fill: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* Overlay Action Bar */
.cwt-card-overlay-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}

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

.cwt-card-btn-preview {
  background: rgba(139, 92, 246, 0.9);
  color: #FFFFFF !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.cwt-card-btn-preview:hover {
  background: #7C3AED;
}

.cwt-card-btn-buy {
  flex: 1;
  background: #2563EB;
  color: #FFFFFF !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.cwt-card-btn-buy:hover {
  background: #1D4ED8;
}

.cwt-card-btn-view {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}

.cwt-card-btn-view:hover {
  background: #FFFFFF;
  color: #0F172A !important;
}

/* Product Body */
.cwt-product-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cwt-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cwt-product-cat-name {
  font-size: 0.68rem;
  color: var(--cwt-primary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 100%;
  line-height: 1.2;
}

.cwt-card-version-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6366F1;
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .cwt-card-version-tag {
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
}

.cwt-product-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.cwt-product-title a {
  color: var(--cwt-dark);
  transition: color 0.2s ease;
}

[data-theme="dark"] .cwt-product-title a {
  color: #F8FAFC;
}

.cwt-product-title a:hover {
  color: var(--cwt-primary);
}

/* Rating Stars - Hidden on Product Cards */
.cwt-product-card .cwt-rating-wrap,
.cwt-product-card .star-rating,
.cwt-product-card .woocommerce-product-rating {
  display: none !important;
}

.cwt-stars {
  display: flex;
  gap: 2px;
}

.cwt-star {
  color: #E2E8F0;
  display: inline-flex;
}

.cwt-star.filled {
  color: #F59E0B;
}

.cwt-rating-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cwt-text-muted);
}

/* Product Footer (Price + Add to Cart - Centered) */
.cwt-product-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: auto !important;
  padding-top: 14px !important;
  border-top: 1px solid var(--cwt-border) !important;
  width: 100% !important;
  text-align: center !important;
}

.cwt-product-price {
  font-family: var(--cwt-font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cwt-dark);
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin: 0 auto !important;
}

[data-theme="dark"] .cwt-product-price {
  color: #F8FAFC;
}

.cwt-product-price del {
  font-size: 0.88rem;
  color: var(--cwt-text-muted);
  font-weight: 500;
  text-decoration: line-through;
}

.cwt-product-price ins {
  text-decoration: none;
  color: #10B981;
  font-weight: 800;
}

.cwt-product-cart-wrap {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

/* Product Card Add to Cart Button (Vibrant & High Specificity) */
.cwt-product-footer .cwt-ajax-cart-btn,
.cwt-product-footer .add_to_cart_button,
.cwt-product-footer a.button,
.cwt-product-card .add_to_cart_button,
.cwt-product-card a.button.add_to_cart_button {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  width: 100% !important;
  border-radius: var(--cwt-radius-sm, 8px) !important;
  border: 1px solid #1D4ED8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.cwt-product-footer .cwt-ajax-cart-btn:hover,
.cwt-product-footer .add_to_cart_button:hover,
.cwt-product-footer a.button:hover,
.cwt-product-card .add_to_cart_button:hover,
.cwt-product-card a.button.add_to_cart_button:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4) !important;
  border-color: #1E40AF !important;
}

.cwt-product-footer .cwt-ajax-cart-btn.added,
.cwt-product-footer .add_to_cart_button.added,
.cwt-product-card .add_to_cart_button.added {
  background: #10B981 !important;
  border-color: #059669 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

/* --------------------------------------------------------------------------
   2. Shop Marketplace Page Layout & Sidebar
   -------------------------------------------------------------------------- */
.cwt-shop-container {
  padding: 30px 0 70px;
  max-width: var(--cwt-container-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Marketplace Hero Banner */
.cwt-shop-hero-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 36px 30px 28px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.cwt-shop-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--cwt-dark);
  letter-spacing: -0.5px;
}

.cwt-shop-subtitle {
  color: var(--cwt-text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 24px;
}

/* Quick Category Filter System */
.cwt-shop-filter-nav {
  margin-top: 10px;
}

.cwt-shop-pills-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.cwt-shop-pills-bar::-webkit-scrollbar {
  height: 4px;
}

.cwt-shop-pills-bar::-webkit-scrollbar-thumb {
  background: var(--cwt-border);
  border-radius: 4px;
}

.cwt-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cwt-dark);
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  text-decoration: none;
}

.cwt-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cwt-primary);
  transition: color 0.2s ease;
}

.cwt-pill-icon svg {
  width: 16px;
  height: 16px;
}

.cwt-pill-label {
  font-weight: 600;
}

.cwt-pill-count {
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  color: var(--cwt-text-muted);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.cwt-pill-item:hover {
  background: var(--cwt-primary-light);
  border-color: var(--cwt-primary);
  color: var(--cwt-primary);
  transform: translateY(-2px);
}

.cwt-pill-item.active {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  border-color: #1D4ED8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cwt-pill-item.active .cwt-pill-icon {
  color: #FFFFFF;
}

.cwt-pill-item.active .cwt-pill-count {
  background: rgba(255, 255, 255, 0.25);
  border-color: transparent;
  color: #FFFFFF;
}

/* Main Layout */
.cwt-shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 992px) {
  .cwt-shop-layout {
    grid-template-columns: 290px 1fr;
  }
}

/* Shop Sidebar */
.cwt-shop-sidebar {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 24px;
  height: fit-content;
  box-shadow: var(--cwt-shadow-sm);
}

@media (min-width: 992px) {
  .cwt-shop-sidebar {
    position: sticky;
    top: 90px;
  }
}

@media (max-width: 991px) {
  .cwt-shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    z-index: 2100;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--cwt-shadow-lg);
    overflow-y: auto;
  }
  .cwt-shop-sidebar.active {
    transform: translateX(0);
  }
}

.cwt-sidebar-header-mob {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cwt-border);
}

@media (min-width: 992px) {
  .cwt-sidebar-header-mob {
    display: none;
  }
}

.cwt-widget {
  margin-bottom: 28px;
}

.cwt-widget:last-child {
  margin-bottom: 0;
}

.cwt-widget-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cwt-border);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cwt-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .cwt-widget-title {
  color: #F8FAFC;
}

.cwt-widget-title svg {
  color: var(--cwt-primary);
}

.cwt-filter-cat-list,
.cwt-filter-type-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.cwt-filter-cat-list a,
.cwt-filter-type-list a {
  color: var(--cwt-text);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.cwt-filter-cat-list a:hover,
.cwt-filter-type-list a:hover {
  color: var(--cwt-primary);
  background: var(--cwt-primary-light);
  transform: translateX(3px);
}

.cwt-filter-cat-list .count {
  font-size: 0.75rem;
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--cwt-text-muted);
}

/* Sidebar Guarantee Box */
.cwt-sidebar-guarantee-card {
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-sm);
  padding: 16px;
  margin-top: 24px;
}

.cwt-guarantee-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cwt-guarantee-header svg {
  color: #10B981;
}

.cwt-guarantee-header h5 {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-guarantee-header h5 {
  color: #F8FAFC;
}

.cwt-guarantee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cwt-guarantee-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cwt-text-muted);
}

.cwt-guarantee-list li svg {
  color: #10B981;
  flex-shrink: 0;
}

/* Shop Toolbar */
.cwt-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  padding: 12px 20px;
  border-radius: var(--cwt-radius-md);
  margin-bottom: 28px;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: var(--cwt-shadow-sm);
}

.cwt-shop-toolbar-end {
  justify-content: flex-end;
}

.cwt-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cwt-btn-filter-trigger {
  display: inline-flex;
}

@media (min-width: 992px) {
  .cwt-btn-filter-trigger {
    display: none;
  }
}

.cwt-results-count {
  font-size: 0.88rem;
  color: var(--cwt-text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cwt-results-count svg {
  color: var(--cwt-primary);
}

.woocommerce-ordering select {
  padding: 9px 16px;
  border-radius: var(--cwt-radius-sm);
  border: 1px solid var(--cwt-border);
  background: var(--cwt-bg);
  color: var(--cwt-text);
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.woocommerce-ordering select:focus {
  border-color: var(--cwt-primary);
  box-shadow: 0 0 0 3px var(--cwt-primary-light);
}

/* No products found card */
.cwt-no-products-found-card {
  background: var(--cwt-card-bg);
  border: 1px dashed var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 50px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cwt-no-prod-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cwt-primary-light);
  color: var(--cwt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cwt-no-products-found-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cwt-no-products-found-card p {
  color: var(--cwt-text-muted);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0 auto 20px;
}

/* --------------------------------------------------------------------------
   3. Single Product Page
   -------------------------------------------------------------------------- */
.cwt-single-product-container {
  padding: 40px 0 60px;
  max-width: var(--cwt-container-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.cwt-single-product-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 50px;
  align-items: start;
}

@media (min-width: 992px) {
  .cwt-single-product-top-grid {
    grid-template-columns: 500px 1fr;
  }
}

.cwt-single-product-media,
.woocommerce div.product div.images.cwt-single-product-media,
.woocommerce-page div.product div.images.cwt-single-product-media {
  max-width: 500px !important;
  width: 100% !important;
  float: none !important;
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}

.cwt-single-media-wrap {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: 0 !important;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 500px !important;
  width: 100% !important;
  box-shadow: var(--cwt-shadow-sm);
  line-height: 0;
  font-size: 0;
}

.woocommerce div.product div.images,
.woocommerce-page div.product div.images,
.cwt-single-media-wrap .woocommerce-product-gallery,
.woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  max-width: 500px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
}

.cwt-single-media-wrap .woocommerce-product-gallery figure,
.cwt-single-media-wrap .woocommerce-product-gallery__wrapper,
.cwt-single-media-wrap .flex-viewport,
.cwt-single-media-wrap .woocommerce-product-gallery__image {
  max-width: 100% !important;
  width: 100% !important;
  height: 350px !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

.cwt-single-media-wrap .woocommerce-product-gallery__image a {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}

.cwt-single-media-wrap img,
.cwt-single-media-wrap .woocommerce-product-gallery__image img,
.cwt-single-media-wrap .wp-post-image,
.cwt-single-media-wrap .woocommerce-product-gallery img {
  border-radius: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 350px !important;
  aspect-ratio: 500 / 350 !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.cwt-single-prod-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cwt-prod-cat-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cwt-primary);
  text-transform: uppercase;
}

.cwt-single-prod-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
  color: var(--cwt-dark);
  word-break: break-word;
}

[data-theme="dark"] .cwt-single-prod-title {
  color: #F8FAFC;
}

@media (max-width: 768px) {
  .cwt-single-prod-title {
    font-size: 1.65rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .cwt-single-prod-title {
    font-size: 1.4rem;
  }
}

.cwt-single-prod-rating-sku {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cwt-sku-label {
  font-size: 0.82rem;
  color: var(--cwt-text-muted);
}

.cwt-sku-val {
  font-weight: 600;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-sku-val {
  color: #F8FAFC;
}

.cwt-single-prod-pricing {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cwt-price-display {
  font-family: var(--cwt-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--cwt-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .cwt-price-display {
    font-size: 1.65rem;
  }
}

[data-theme="dark"] .cwt-price-display {
  color: #F8FAFC;
}

.cwt-price-display del {
  font-size: 1.2rem;
  color: var(--cwt-text-muted);
  font-weight: 400;
}

.cwt-price-display ins {
  text-decoration: none;
  color: var(--cwt-primary);
}

.cwt-single-prod-excerpt {
  font-size: 0.96rem;
  color: var(--cwt-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   1-Line Responsive Action Buttons (Add to Cart & Instant Buy)
   -------------------------------------------------------------------------- */
.cwt-single-prod-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 12px !important;
  margin-bottom: 26px !important;
  width: 100% !important;
}

@media (max-width: 576px) {
  .cwt-single-prod-actions {
    flex-direction: row !important;
    gap: 8px !important;
  }
}

form.cart {
  flex: 1 1 50% !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin: 0 !important;
  width: auto !important;
}

.cwt-direct-checkout-row {
  flex: 1 1 50% !important;
  display: flex !important;
  align-items: stretch !important;
  width: auto !important;
}

.quantity {
  display: none !important;
}

form.cart .single_add_to_cart_button {
  flex: 1 !important;
  width: 100% !important;
  min-height: 48px !important;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
  font-family: var(--cwt-font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 12px 14px !important;
  border-radius: var(--cwt-radius-md) !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
  text-align: center !important;
  white-space: nowrap !important;
}

form.cart .single_add_to_cart_button:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4) !important;
}

.cwt-btn-buy-now {
  flex: 1 !important;
  width: 100% !important;
  min-height: 48px !important;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-family: var(--cwt-font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 12px 14px !important;
  border-radius: var(--cwt-radius-md) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.cwt-btn-buy-now svg {
  width: 16px !important;
  height: 16px !important;
}

.cwt-btn-buy-now:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
}

/* Digital Demo Bar Under Gallery */
.cwt-digital-demo-bar {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cwt-btn-preview {
  flex: 1;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 12px 20px;
  font-size: 0.95rem;
  border-radius: var(--cwt-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
  transition: all 0.25s ease;
}

.cwt-btn-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
}

.cwt-btn-docs {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  color: var(--cwt-dark) !important;
  font-weight: 600;
  padding: 12px 18px;
  font-size: 0.92rem;
  border-radius: var(--cwt-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .cwt-btn-docs {
  color: #F8FAFC !important;
}

.cwt-btn-docs:hover {
  border-color: var(--cwt-primary);
  color: var(--cwt-primary) !important;
  transform: translateY(-2px);
}

.cwt-badge-version {
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .cwt-badge-version {
  background: rgba(99, 102, 241, 0.2);
  color: #818CF8;
}

/* Digital Specifications Card */
.cwt-digital-specs-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 20px;
  margin-top: 24px;
}

.cwt-specs-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cwt-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--cwt-border);
  padding-bottom: 10px;
}

[data-theme="dark"] .cwt-specs-card-title {
  color: #F8FAFC;
}

.cwt-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 576px) {
  .cwt-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cwt-spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--cwt-bg);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--cwt-border);
}

.cwt-spec-label {
  font-size: 0.72rem;
  color: var(--cwt-text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.cwt-spec-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-spec-value {
  color: #F8FAFC;
}

.cwt-single-trust-box {
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 18px;
  margin-top: 20px;
}

.cwt-trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cwt-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cwt-text);
}

.cwt-check-icon {
  color: var(--cwt-success);
}

/* Product Description Box Directly Below Image */
.cwt-single-product-description-box {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 28px 24px;
  margin-top: 24px;
  box-shadow: var(--cwt-shadow-sm);
  width: 100%;
}

.cwt-desc-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--cwt-dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cwt-border);
}

[data-theme="dark"] .cwt-desc-heading {
  color: #F8FAFC;
}

.cwt-desc-heading svg {
  width: 20px;
  height: 20px;
  color: var(--cwt-primary);
}

.cwt-desc-content {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--cwt-text);
}

.cwt-desc-content p {
  margin-bottom: 16px;
}

.cwt-desc-content p:last-child {
  margin-bottom: 0;
}

.cwt-desc-content ul,
.cwt-desc-content ol {
  margin: 14px 0 18px 20px;
  padding: 0;
}

.cwt-desc-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.cwt-desc-content h2,
.cwt-desc-content h3,
.cwt-desc-content h4 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 700;
}

.cwt-rating-anchor {
  text-decoration: none;
  display: inline-flex;
  transition: opacity 0.2s ease;
}

.cwt-rating-anchor:hover {
  opacity: 0.85;
}

/* Customer Reviews Box Directly Below Description */
.cwt-single-product-reviews-box {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 28px 24px;
  margin-top: 24px;
  box-shadow: var(--cwt-shadow-sm);
  width: 100%;
}

/* Responsive Reviews Scorecard Summary Header (Unified, Single Box) */
.cwt-reviews-summary-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--cwt-border);
  border-radius: 0;
  padding: 0 0 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cwt-reviews-summary-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0 18px 0;
    gap: 16px;
  }

  .cwt-reviews-score-right {
    width: 100%;
  }

  .cwt-btn-write-review {
    width: 100%;
    justify-content: center;
  }
}

.cwt-reviews-score-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cwt-score-big-number {
  font-family: var(--cwt-font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-score-big-number {
  color: #F8FAFC;
}

.cwt-score-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cwt-score-stars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.cwt-score-stars .cwt-star-icon {
  width: 18px;
  height: 18px;
}

.cwt-score-stars .cwt-star-icon.filled,
.cwt-score-stars .cwt-star-icon.filled svg {
  color: #F59E0B;
  fill: currentColor;
}

.cwt-score-stars .cwt-star-icon.empty,
.cwt-score-stars .cwt-star-icon.empty svg {
  color: var(--cwt-border);
}

.cwt-score-count-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cwt-text-muted);
}

.cwt-btn-write-review {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  border: 1px solid #1D4ED8;
  white-space: nowrap;
}

.cwt-btn-write-review svg {
  width: 15px;
  height: 15px;
  color: #F59E0B;
}

.cwt-btn-write-review:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

/* Reviews List */
.cwt-reviews-content .commentlist {
  list-style: none;
  margin: 0 0 30px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cwt-reviews-content .commentlist li.review {
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 18px 20px;
  position: relative;
}

.cwt-reviews-content .comment_container {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cwt-reviews-content .avatar {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  border: 2px solid var(--cwt-primary);
  flex-shrink: 0;
}

.cwt-reviews-content .comment-text {
  flex: 1;
  min-width: 0;
}

.cwt-reviews-content .meta {
  font-size: 0.88rem;
  color: var(--cwt-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cwt-reviews-content .woocommerce-review__author {
  font-weight: 700;
  color: var(--cwt-dark);
  font-size: 0.95rem;
}

[data-theme="dark"] .cwt-reviews-content .woocommerce-review__author {
  color: #F8FAFC;
}

.cwt-reviews-content .description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--cwt-text);
}

.cwt-reviews-content .description p {
  margin: 0;
}

/* Star Rating in Review */
.cwt-reviews-content .star-rating {
  float: right;
  overflow: hidden;
  position: relative;
  height: 1.2em;
  line-height: 1.2em;
  font-size: 0.9em;
  width: 5.4em;
  font-family: star;
  color: #F59E0B;
}

/* Review Form */
.cwt-reviews-content #review_form_wrapper {
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 24px;
  margin-top: 20px;
}

.cwt-reviews-content #reply-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: block;
}

.cwt-reviews-content .comment-form-rating {
  margin-bottom: 16px;
}

.cwt-reviews-content .comment-form-rating label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.cwt-reviews-content .comment-form-comment label,
.cwt-reviews-content .comment-form-author label,
.cwt-reviews-content .comment-form-email label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.cwt-reviews-content textarea,
.cwt-reviews-content input[type="text"],
.cwt-reviews-content input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--cwt-border);
  background: var(--cwt-card-bg);
  color: var(--cwt-text);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.cwt-reviews-content .form-submit {
  display: flex !important;
  justify-content: flex-end !important;
  text-align: right !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

.cwt-reviews-content .form-submit input[type="submit"],
.cwt-reviews-content .form-submit button[type="submit"],
.cwt-reviews-content input[type="submit"]#submit,
.cwt-reviews-content input[type="submit"] {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border: none;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.cwt-reviews-content .form-submit input[type="submit"]:hover,
.cwt-reviews-content .form-submit button[type="submit"]:hover,
.cwt-reviews-content input[type="submit"]#submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   Modern Tabs: Description & Reviews Styling (Optional)
   ========================================================================== */
.woocommerce-tabs {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 36px;
  margin-bottom: 50px;
  box-shadow: var(--cwt-shadow-sm);
}

.woocommerce-tabs ul.tabs {
  display: flex;
  gap: 12px;
  list-style: none;
  border-bottom: 2px solid var(--cwt-border);
  padding: 0 0 16px 0;
  margin: 0 0 32px 0;
  overflow-x: auto;
}

.woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
}

.woocommerce-tabs ul.tabs li a {
  font-family: var(--cwt-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cwt-text-muted);
  padding: 10px 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  color: var(--cwt-primary);
  background: var(--cwt-primary-light);
  border-color: rgba(37, 99, 235, 0.15);
}

.woocommerce-tabs ul.tabs li.active a {
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

/* Description Panel */
.woocommerce-Tabs-panel {
  line-height: 1.8;
  color: var(--cwt-text);
  font-size: 1.02rem;
}

.woocommerce-Tabs-panel--description h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--cwt-dark);
}

[data-theme="dark"] .woocommerce-Tabs-panel--description h2 {
  color: #F8FAFC;
}

.woocommerce-Tabs-panel--description h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 12px;
}

.woocommerce-Tabs-panel--description p {
  margin-bottom: 16px;
  color: var(--cwt-text);
}

.woocommerce-Tabs-panel--description ul {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .woocommerce-Tabs-panel--description ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

.woocommerce-Tabs-panel--description ul li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--cwt-text);
}

.woocommerce-Tabs-panel--description ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Reviews Summary Card & Layout
   ========================================================================== */
.cwt-product-reviews-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cwt-reviews-header-card {
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cwt-reviews-summary-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cwt-rating-big-number {
  font-family: var(--cwt-font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--cwt-dark);
  letter-spacing: -1px;
}

[data-theme="dark"] .cwt-rating-big-number {
  color: #F8FAFC;
}

.cwt-rating-big-stars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cwt-rating-big-stars .cwt-stars {
  font-size: 1.2rem;
}

.cwt-rating-based-text {
  font-size: 0.85rem;
  color: var(--cwt-text-muted);
  font-weight: 500;
}

.cwt-scroll-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px !important;
  font-size: 0.88rem !important;
}

.cwt-reviews-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 992px) {
  .cwt-reviews-layout-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.cwt-reviews-column-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-reviews-column-title {
  color: #F8FAFC;
}

/* Reviews List */
.cwt-comment-list,
ol.commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

ol.commentlist li.review,
ol.commentlist li.comment {
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 22px;
  position: relative;
  transition: border-color 0.2s ease;
}

ol.commentlist li.review:hover,
ol.commentlist li.comment:hover {
  border-color: var(--cwt-primary);
}

.comment_container {
  display: flex;
  gap: 16px;
}

.comment_container img.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--cwt-border);
  object-fit: cover;
  flex-shrink: 0;
}

.comment-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-text .meta {
  font-size: 0.95rem;
  color: var(--cwt-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 4px 0;
}

[data-theme="dark"] .comment-text .meta {
  color: #F8FAFC;
}

.comment-text .woocommerce-review__verified {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.comment-text .woocommerce-review__published-date {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--cwt-text-muted);
}

.comment-text .star-rating,
.comment-text .cwt-rating-wrap {
  margin-bottom: 6px;
}

.comment-text .description {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--cwt-text);
  margin-top: 4px;
}

/* Empty Reviews State */
.cwt-no-reviews-box {
  background: var(--cwt-bg);
  border: 1px dashed var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cwt-no-reviews-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  color: #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.cwt-no-reviews-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-no-reviews-title {
  color: #F8FAFC;
}

.cwt-no-reviews-text {
  font-size: 0.88rem;
  color: var(--cwt-text-muted);
  max-width: 320px;
  margin: 0;
}

/* Review Submission Form */
.cwt-review-form-card {
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 26px;
  box-shadow: var(--cwt-shadow-sm);
}

.cwt-form-reply-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--cwt-dark);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cwt-border);
}

[data-theme="dark"] .cwt-form-reply-title {
  color: #F8FAFC;
}

.cwt-rating-picker-wrap {
  margin-bottom: 16px;
}

.cwt-rating-picker-wrap label,
.cwt-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-rating-picker-wrap label,
[data-theme="dark"] .cwt-form-group label {
  color: #F8FAFC;
}

.cwt-rating-select,
.cwt-input,
.cwt-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--cwt-radius-sm);
  border: 1px solid var(--cwt-border);
  background: var(--cwt-card-bg);
  color: var(--cwt-text);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cwt-rating-select:focus,
.cwt-input:focus,
.cwt-textarea:focus {
  border-color: var(--cwt-primary);
  box-shadow: 0 0 0 3px var(--cwt-primary-light);
}

.cwt-form-group {
  margin-bottom: 16px;
}

.cwt-submit-review-btn {
  margin-top: 10px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Related Products Section on Single Product */
.cwt-related-products-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--cwt-border);
}

.cwt-related-products-section .cwt-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.cwt-related-products-section .cwt-section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cwt-related-products-section .cwt-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cwt-dark);
  margin: 0;
}

[data-theme="dark"] .cwt-related-products-section .cwt-section-title {
  color: #F8FAFC;
}

.cwt-related-products-section .cwt-section-link {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cwt-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.cwt-related-products-section .cwt-section-link:hover {
  gap: 10px;
}

li.cwt-product-grid-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

li.cwt-product-grid-item .cwt-product-card {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   4. Shopping Cart Layout, Steps & Collaterals
   -------------------------------------------------------------------------- */
.woocommerce-cart .cwt-page-header,
.woocommerce-checkout .cwt-page-header,
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title,
.woocommerce-cart .cwt-standard-page > .cwt-container > .cwt-page-article > .cwt-page-header {
  display: none !important;
}

.cwt-cart-container {
  padding: 24px 20px 50px;
  max-width: var(--cwt-container-width);
  margin: 0 auto;
}

/* Checkout Progress Steps */
.cwt-checkout-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 12px 22px;
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  box-shadow: var(--cwt-shadow-sm);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cwt-checkout-steps-bar {
    gap: 8px;
    padding: 10px 12px;
    justify-content: space-between;
  }
}

.cwt-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cwt-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .cwt-step-item {
    font-size: 0.74rem;
    gap: 5px;
  }
}

.cwt-step-item.active {
  color: var(--cwt-primary);
  font-weight: 700;
}

.cwt-step-item.completed {
  color: #10B981;
  font-weight: 700;
}

.cwt-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cwt-bg);
  border: 2px solid var(--cwt-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cwt-text-muted);
  flex-shrink: 0;
}

.cwt-step-number svg {
  width: 12px;
  height: 12px;
}

.cwt-step-item.active .cwt-step-number {
  background: var(--cwt-primary);
  border-color: var(--cwt-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.cwt-step-item.completed .cwt-step-number {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.cwt-step-divider {
  width: 28px;
  height: 2px;
  background: var(--cwt-border);
  flex-shrink: 0;
}

.cwt-step-divider.active {
  background: var(--cwt-primary);
}

.cwt-step-divider.completed {
  background: #10B981;
}

@media (max-width: 640px) {
  .cwt-step-divider {
    width: 12px;
  }
}

@media (max-width: 480px) {
  .cwt-step-divider {
    display: none;
  }
}

/* Cart Header */
.cwt-cart-header {
  margin-bottom: 22px;
}

.cwt-cart-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-cart-title {
  color: #F8FAFC;
}

.cwt-cart-subtitle {
  color: var(--cwt-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Cart Grid */
.cwt-cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 992px) {
  .cwt-cart-grid {
    grid-template-columns: 1fr 380px;
    gap: 28px;
  }
}

/* Cart Items Card List Layout */
.cwt-cart-items-wrapper {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  overflow: hidden;
  box-shadow: var(--cwt-shadow-sm);
}

/* Cart List Header */
.cwt-cart-list-header {
  background: var(--cwt-bg);
  border-bottom: 1px solid var(--cwt-border);
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cwt-cart-list-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cwt-cart-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--cwt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cwt-cart-badge-icon svg {
  width: 14px;
  height: 14px;
}

.cwt-cart-list-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--cwt-dark);
  margin: 0;
}

[data-theme="dark"] .cwt-cart-list-title {
  color: #F8FAFC;
}

.cwt-cart-list-header-right {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cwt-cart-list-header-right svg {
  width: 12px;
  height: 12px;
}

/* Cart Items List Container */
.cwt-cart-items-list {
  display: flex;
  flex-direction: column;
}

.cwt-cart-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cwt-border);
  transition: background 0.2s ease;
}

.cwt-cart-item-row:last-child {
  border-bottom: none;
}

.cwt-cart-item-row:hover {
  background: rgba(37, 99, 235, 0.015);
}

@media (max-width: 640px) {
  .cwt-cart-item-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }
}

/* Item Thumbnail Box */
.cwt-cart-item-thumb-box {
  flex-shrink: 0;
}

.cwt-cart-thumb-link {
  display: block;
  width: 68px;
  height: 68px;
  border-radius: var(--cwt-radius-md);
  overflow: hidden;
  border: 1px solid var(--cwt-border);
  background: var(--cwt-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cwt-cart-thumb-img,
.cwt-cart-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Item Content Info */
.cwt-cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cwt-cart-item-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cwt-cart-digital-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cwt-cart-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6366F1;
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.cwt-cart-item-name {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.cwt-cart-item-name a {
  color: var(--cwt-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

[data-theme="dark"] .cwt-cart-item-name a {
  color: #F8FAFC;
}

.cwt-cart-item-name a:hover {
  color: var(--cwt-primary);
}

.cwt-cart-item-license-meta {
  font-size: 0.78rem;
  color: var(--cwt-text-muted);
}

.cwt-license-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cwt-license-text svg {
  width: 12px;
  height: 12px;
  color: var(--cwt-primary);
}

/* Item Right Side: Price & Remove */
.cwt-cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cwt-cart-item-right {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed var(--cwt-border);
  }
}

.cwt-cart-item-price-wrap {
  text-align: right;
}

.cwt-cart-subtotal-tag {
  font-family: var(--cwt-font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--cwt-primary);
}

.cwt-cart-remove-link,
a.cwt-cart-remove-link.remove,
.woocommerce a.cwt-cart-remove-link.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #EF4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  text-decoration: none !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.2 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.cwt-cart-remove-link svg,
a.cwt-cart-remove-link.remove svg {
  width: 13px !important;
  height: 13px !important;
  color: #EF4444 !important;
  flex-shrink: 0 !important;
}

.cwt-cart-remove-link:hover,
a.cwt-cart-remove-link.remove:hover {
  color: #FFFFFF !important;
  background: #EF4444 !important;
  border-color: #EF4444 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25) !important;
}

.cwt-cart-remove-link:hover svg,
a.cwt-cart-remove-link.remove:hover svg {
  color: #FFFFFF !important;
}

/* Cart Footer Actions Bar (Coupon + Update + Continue) */
.cwt-cart-footer-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  padding: 14px 20px !important;
  background: var(--cwt-bg) !important;
  border-top: 1px solid var(--cwt-border);
}

@media (max-width: 640px) {
  .cwt-cart-footer-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }
}

.cwt-coupon-input-group {
  display: flex;
  align-items: center;
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 3px 4px 3px 10px;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 640px) {
  .cwt-coupon-input-group {
    width: 100%;
  }

  .cwt-coupon-input-group input {
    flex: 1;
  }
}

.cwt-coupon-icon {
  color: var(--cwt-text-muted);
  display: flex;
  align-items: center;
}

.cwt-coupon-icon svg {
  width: 15px;
  height: 15px;
}

.cwt-coupon-input-group input {
  border: none !important;
  background: transparent !important;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--cwt-text);
  outline: none !important;
  box-shadow: none !important;
  width: 140px;
}

/* Apply Coupon Button */
.cwt-coupon-btn,
button.button.cwt-coupon-btn[name="apply_coupon"] {
  padding: 0 16px !important;
  font-size: 0.84rem !important;
  border-radius: var(--cwt-radius-sm) !important;
  font-weight: 700 !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.cwt-coupon-btn:hover,
button.button.cwt-coupon-btn[name="apply_coupon"]:hover {
  background: linear-gradient(135deg, #4338CA 0%, #3730A3 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.45) !important;
}

.cwt-cart-update-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cwt-cart-update-btns {
    width: 100%;
    justify-content: space-between;
  }

  .cwt-cart-update-btns .cwt-btn,
  .cwt-cart-update-btns button {
    flex: 1;
    justify-content: center;
  }
}

.cwt-btn-continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--cwt-radius-md);
  border: 1px solid var(--cwt-border);
  background: var(--cwt-card-bg);
  color: var(--cwt-dark);
  transition: all 0.2s ease;
  text-decoration: none;
}

[data-theme="dark"] .cwt-btn-continue-shopping {
  color: #F8FAFC;
}

.cwt-btn-continue-shopping:hover {
  background: var(--cwt-bg);
  border-color: var(--cwt-primary);
  color: var(--cwt-primary);
  transform: translateY(-1px);
}

/* Update Cart Button */
.cwt-cart-update-btns .cwt-btn-primary,
.cwt-cart-update-btns button[name="update_cart"],
button.button[name="update_cart"] {
  height: 38px !important;
  padding: 0 18px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  border-radius: var(--cwt-radius-md) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.cwt-cart-update-btns .cwt-btn-primary:hover,
.cwt-cart-update-btns button[name="update_cart"]:hover,
button.button[name="update_cart"]:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}

.cwt-cart-update-btns .cwt-btn-primary svg,
button.button[name="update_cart"] svg {
  width: 14px;
  height: 14px;
  color: #FFFFFF;
}

/* Cart Totals Sidebar Card */
.cwt-cart-totals-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

@media (min-width: 992px) {
  .cwt-cart-totals-wrapper {
    position: sticky;
    top: 90px;
  }
}

.cart-collaterals {
  width: 100% !important;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.cart-collaterals .cart_totals,
.cart_totals {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 24px 20px;
  box-shadow: var(--cwt-shadow-sm);
  box-sizing: border-box;
}

.cart_totals h2 {
  font-size: 1.22rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cwt-border);
  color: var(--cwt-dark);
}

[data-theme="dark"] .cart_totals h2 {
  color: #F8FAFC;
}

.cart_totals table.shop_table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  margin: 0 0 22px 0 !important;
}

.cart_totals table.shop_table tr th,
.cart_totals table.shop_table tr td {
  padding: 15px 0 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid var(--cwt-border) !important;
  font-size: 0.94rem;
  vertical-align: middle;
}

.cart_totals table.shop_table tr.cart-subtotal th,
.cart_totals table.shop_table tr.cart-subtotal td {
  padding-top: 6px !important;
  padding-bottom: 16px !important;
}

.cart_totals table.shop_table tr th {
  color: var(--cwt-text-muted);
  font-weight: 600;
  text-align: left;
}

.cart_totals table.shop_table tr td {
  text-align: right;
  font-weight: 700;
  color: var(--cwt-dark);
  font-family: var(--cwt-font-heading);
}

[data-theme="dark"] .cart_totals table.shop_table tr td {
  color: #F8FAFC;
}

.cart_totals table.shop_table tr.order-total th,
.cart_totals table.shop_table tr.order-total td {
  border-bottom: none !important;
  padding-top: 18px !important;
  padding-bottom: 6px !important;
}

.cart_totals table.shop_table tr.order-total th {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cart_totals table.shop_table tr.order-total th {
  color: #F8FAFC;
}

.cart_totals table.shop_table tr.order-total td {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--cwt-primary);
}

.wc-proceed-to-checkout {
  padding: 0 !important;
  margin-top: 4px;
}

.wc-proceed-to-checkout .checkout-button,
.wc-proceed-to-checkout a.button.alt {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 48px !important;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  text-align: center !important;
  padding: 12px 20px !important;
  border-radius: var(--cwt-radius-md) !important;
  font-family: var(--cwt-font-heading) !important;
  font-weight: 800 !important;
  font-size: 0.98rem !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  border: none !important;
}

.wc-proceed-to-checkout .checkout-button:hover,
.wc-proceed-to-checkout a.button.alt:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
}

/* Digital Security Guarantee Box below Totals */
.cwt-cart-security-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 16px 18px;
  box-shadow: var(--cwt-shadow-sm);
}

.cwt-security-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cwt-dark);
  margin-bottom: 10px;
}

[data-theme="dark"] .cwt-security-title {
  color: #F8FAFC;
}

.cwt-security-title svg {
  color: #10B981;
}

.cwt-security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cwt-security-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--cwt-text-muted);
}

.cwt-security-list li svg {
  width: 14px;
  height: 14px;
  color: #10B981;
  flex-shrink: 0;
}

/* Digital Security Guarantee Box below Totals */
.cwt-cart-security-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 20px;
  box-shadow: var(--cwt-shadow-sm);
}

.cwt-security-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--cwt-dark);
  margin-bottom: 12px;
}

[data-theme="dark"] .cwt-security-title {
  color: #F8FAFC;
}

.cwt-security-title svg {
  color: #10B981;
}

.cwt-security-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cwt-security-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cwt-text-muted);
}

.cwt-security-list li svg {
  color: #10B981;
  flex-shrink: 0;
}

/* Empty Cart State */
.cwt-cart-empty-container {
  padding: 60px 20px 90px;
}

.cwt-empty-cart-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-xl);
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--cwt-shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cwt-empty-cart-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--cwt-primary-light);
  color: var(--cwt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cwt-empty-cart-icon-circle svg {
  width: 36px;
  height: 36px;
}

.cwt-empty-cart-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-empty-cart-title {
  color: #F8FAFC;
}

.cwt-empty-cart-desc {
  color: var(--cwt-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 28px;
}

.cwt-empty-cart-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--cwt-border);
  flex-wrap: wrap;
}

.cwt-empty-perk-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cwt-text-muted);
}

.cwt-empty-perk-item svg {
  color: #10B981;
}

/* Mobile Responsive Cart Table */
@media (max-width: 767px) {
  .cwt-cart-table thead {
    display: none;
  }

  .cwt-cart-table,
  .cwt-cart-table tbody,
  .cwt-cart-table tr,
  .cwt-cart-table td {
    display: block;
    width: 100%;
  }

  .cwt-cart-table tr.cart_item {
    position: relative;
    padding: 18px;
    border-bottom: 1px solid var(--cwt-border);
  }

  .cwt-cart-table td.product-remove {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 0;
    border: none;
    width: auto;
  }

  .cwt-cart-table td.product-thumbnail {
    padding: 0 0 12px 0;
    border: none;
  }

  .cwt-cart-table td.product-name {
    padding: 0 0 12px 0;
    border: none;
  }

  .cwt-cart-table td.product-price,
  .cwt-cart-table td.product-quantity,
  .cwt-cart-table td.product-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border: none;
  }

  .cwt-cart-table td::before {
    content: attr(data-title);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--cwt-text-muted);
  }

  .cwt-cart-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cwt-coupon-input-group {
    width: 100%;
  }

  .cwt-coupon-input-group input {
    width: 100%;
  }

  .cwt-cart-update-btns {
    width: 100%;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   5. Checkout 2-Column Form & Simplified Digital Experience
   -------------------------------------------------------------------------- */
.cwt-checkout-page-container {
  padding: 30px 0 70px;
  max-width: var(--cwt-container-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.cwt-checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 992px) {
  .cwt-checkout-grid {
    grid-template-columns: 60fr 40fr; /* 60% Customer Information (Left) & 40% Order Summary (Right) */
    gap: 36px;
  }
}

.cwt-checkout-customer-col {
  width: 100%;
}

.cwt-checkout-order-col {
  width: 100%;
}

/* Customer Billing Card */
.cwt-customer-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 32px 28px;
  box-shadow: var(--cwt-shadow-sm);
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .cwt-customer-card {
    padding: 22px 18px;
  }
}

.cwt-checkout-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 6px;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-checkout-section-title {
  color: #F8FAFC;
}

.cwt-checkout-section-subtitle {
  font-size: 0.88rem;
  color: var(--cwt-text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Form Fields Grid (Name, Phone, Email) */
.cwt-simplified-billing-fields .woocommerce-billing-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 576px) {
  .cwt-simplified-billing-fields .woocommerce-billing-fields__field-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .cwt-simplified-billing-fields .form-row-first {
    grid-column: 1 / 2;
  }

  .cwt-simplified-billing-fields .form-row-last {
    grid-column: 2 / 3;
  }

  .cwt-simplified-billing-fields .form-row-wide {
    grid-column: 1 / -1;
  }
}

.cwt-simplified-billing-fields .form-row {
  margin: 0;
  padding: 0;
  float: none !important;
  width: 100% !important;
}

.cwt-simplified-billing-fields .form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--cwt-dark);
  margin-bottom: 6px;
}

[data-theme="dark"] .cwt-simplified-billing-fields .form-row label {
  color: #F8FAFC;
}

.cwt-simplified-billing-fields .form-row label .required {
  color: #EF4444;
}

.cwt-simplified-billing-fields .form-row input.input-text {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--cwt-radius-md);
  border: 1px solid var(--cwt-border);
  background: var(--cwt-bg);
  color: var(--cwt-text);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cwt-simplified-billing-fields .form-row input.input-text:focus {
  border-color: var(--cwt-primary);
  background: var(--cwt-card-bg);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Trust Perks Card */
.cwt-checkout-trust-card {
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 576px) {
  .cwt-checkout-trust-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cwt-checkout-trust-card .cwt-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cwt-checkout-trust-card .cwt-trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--cwt-primary);
  flex-shrink: 0;
}

.cwt-checkout-trust-card .cwt-trust-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-checkout-trust-card .cwt-trust-item strong {
  color: #F8FAFC;
}

.cwt-checkout-trust-card .cwt-trust-item span {
  font-size: 0.78rem;
  color: var(--cwt-text-muted);
}

/* Right Column: Order Review Card */
.cwt-order-review-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--cwt-shadow-sm);
}

@media (min-width: 992px) {
  .cwt-order-review-card {
    position: sticky;
    top: 90px;
  }
}

.cwt-order-review-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cwt-border);
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-order-review-title {
  color: #F8FAFC;
}

/* Review Order Table */
.cwt-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cwt-review-order-table th,
.cwt-review-order-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--cwt-border);
  font-size: 0.9rem;
}

.cwt-review-order-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--cwt-text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cwt-review-order-table .product-total {
  text-align: right;
  font-weight: 700;
  font-family: var(--cwt-font-heading);
}

.cwt-checkout-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cwt-checkout-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--cwt-radius-sm);
  overflow: hidden;
  border: 1px solid var(--cwt-border);
  flex-shrink: 0;
}

.cwt-checkout-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cwt-checkout-item-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cwt-checkout-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cwt-dark);
  line-height: 1.35;
}

[data-theme="dark"] .cwt-checkout-item-title {
  color: #F8FAFC;
}

.cwt-checkout-item-digital-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #10B981;
  font-weight: 700;
}

.cwt-review-order-table tfoot th {
  font-weight: 600;
  color: var(--cwt-text-muted);
}

.cwt-review-order-table tfoot .order-total th {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-review-order-table tfoot .order-total th {
  color: #F8FAFC;
}

.cwt-review-order-table tfoot .order-total td {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--cwt-primary);
  font-family: var(--cwt-font-heading);
  text-align: right;
}

/* Payment Gateway Box */
#payment {
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 18px;
  margin-top: 16px;
}

#payment ul.payment_methods {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#payment ul.payment_methods li {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-sm);
  padding: 12px 14px;
  transition: all 0.2s ease;
}

#payment ul.payment_methods li label {
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#payment .payment_box {
  background: var(--cwt-bg);
  border-radius: 6px;
  padding: 12px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--cwt-text-muted);
  line-height: 1.5;
}

#place_order {
  width: 100%;
  min-height: 50px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF !important;
  font-family: var(--cwt-font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px;
  border-radius: var(--cwt-radius-md);
  border: none;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#place_order:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* --------------------------------------------------------------------------
   7. Customer Account Dashboard & Portal Layout
   -------------------------------------------------------------------------- */
.woocommerce-account .woocommerce {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 0 60px 0 !important;
}

.woocommerce-account .cwt-page-header {
  display: none !important;
}

.woocommerce-account .woocommerce-notices-wrapper {
  margin-bottom: 20px;
  width: 100%;
  grid-column: 1 / -1;
}

/* My Account Breadcrumb */
.woocommerce-breadcrumb {
  font-size: 0.88rem !important;
  color: var(--cwt-text-muted) !important;
  margin-bottom: 26px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.woocommerce-breadcrumb a {
  color: var(--cwt-primary) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.woocommerce-breadcrumb a:hover {
  text-decoration: underline !important;
}

/* Page Spacing Below Sticky Header */
.cwt-standard-page,
.cwt-woocommerce-page {
  padding: 30px 0 60px !important;
}

/* My Account Top Header Banner Hidden */
.cwt-account-page-header {
  display: none !important;
}

/* Flex Layout between Sidebar & Main Content */
.cwt-myaccount-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  width: 100% !important;
  align-items: stretch !important;
}

@media (min-width: 992px) {
  .cwt-myaccount-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 32px !important;
    width: 100% !important;
  }
}

/* Full Width Clean Account Layout (No Top Navigation Bar) */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-page.woocommerce-account .woocommerce-MyAccount-navigation,
.cwt-myaccount-nav-bar,
.cwt-account-nav {
  display: none !important;
}

/* Main Content Area Override (Full Width) */
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-page.woocommerce-account .woocommerce-MyAccount-content,
.cwt-myaccount-main-content {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Dashboard Welcome Card */
.cwt-account-welcome-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 28px;
  box-shadow: var(--cwt-shadow-sm);
}

[data-theme="dark"] .cwt-account-welcome-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
}

@media (max-width: 576px) {
  .cwt-account-welcome-card {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px;
  }
}

.cwt-welcome-avatar {
  position: relative;
  flex-shrink: 0;
}

.cwt-welcome-avatar img {
  border-radius: 50%;
  border: 3px solid var(--cwt-primary);
  width: 72px;
  height: 72px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.cwt-welcome-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-welcome-title {
  color: #F8FAFC;
}

.cwt-welcome-desc {
  font-size: 0.92rem;
  color: var(--cwt-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Stats Metric Cards */
.cwt-account-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 576px) {
  .cwt-account-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.cwt-stat-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--cwt-shadow-sm);
}

.cwt-stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--cwt-primary);
}

.cwt-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.cwt-stat-icon.blue { background: rgba(37, 99, 235, 0.12); color: #2563EB; }
.cwt-stat-icon.purple { background: rgba(124, 58, 237, 0.12); color: #7C3AED; }
.cwt-stat-icon.green { background: rgba(16, 185, 129, 0.12); color: #10B981; }

.cwt-stat-number {
  font-family: var(--cwt-font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  display: block;
  line-height: 1.1;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-stat-number {
  color: #F8FAFC;
}

.cwt-stat-label {
  font-size: 0.82rem;
  color: var(--cwt-text-muted);
  margin-top: 4px;
  margin-bottom: 12px;
  font-weight: 500;
}

.cwt-stat-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cwt-primary);
  margin-top: auto;
}

/* Section 3: Dedicated Logout & Session Security Card (Directly Under Status) */
.cwt-dashboard-logout-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.02) 100%);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: var(--cwt-radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.04);
}

[data-theme="dark"] .cwt-dashboard-logout-card {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.28);
}

.cwt-dashboard-logout-card:hover {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.08);
}

.cwt-logout-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.cwt-logout-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cwt-logout-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.cwt-logout-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-logout-title {
  color: #F8FAFC;
}

.cwt-logout-desc {
  font-size: 0.86rem;
  color: var(--cwt-text-muted);
  line-height: 1.5;
  margin: 0;
}

.cwt-logout-desc code {
  background: rgba(0, 0, 0, 0.05);
  color: var(--cwt-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}

[data-theme="dark"] .cwt-logout-desc code {
  background: rgba(255, 255, 255, 0.1);
  color: #38BDF8;
}

.cwt-btn-logout-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EF4444;
  color: #FFFFFF !important;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--cwt-radius-md);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.cwt-btn-logout-action:hover {
  background: #DC2626;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.cwt-btn-logout-action svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .cwt-dashboard-logout-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
  }
  .cwt-btn-logout-action {
    width: 100%;
    justify-content: center;
  }
}

/* Downloads Section */
.cwt-downloads-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cwt-downloads-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.cwt-downloads-header p {
  color: var(--cwt-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.cwt-downloads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cwt-download-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .cwt-download-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .cwt-download-action {
    width: 100%;
  }
  .cwt-download-action .cwt-btn {
    width: 100%;
    justify-content: center;
  }
}

.cwt-download-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--cwt-primary-light);
  color: var(--cwt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cwt-download-details {
  flex: 1;
  min-width: 180px;
}

.cwt-download-prod-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cwt-download-prod-title a {
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-download-prod-title a {
  color: #F8FAFC;
}

.cwt-download-meta {
  font-size: 0.8rem;
  color: var(--cwt-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cwt-download-meta .cwt-meta-dot {
  opacity: 0.5;
}

.cwt-empty-downloads-box {
  background: var(--cwt-bg);
  border: 1px dashed var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cwt-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cwt-primary-light);
  color: var(--cwt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* Orders Table Responsive Card Styling */
table.woocommerce-orders-table,
table.my_account_orders {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  overflow: hidden;
  background: var(--cwt-card-bg);
  margin-bottom: 30px;
}

table.woocommerce-orders-table th {
  background: var(--cwt-bg);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cwt-text-muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--cwt-border);
  text-align: left;
}

table.woocommerce-orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--cwt-border);
  font-size: 0.9rem;
  vertical-align: middle;
}

table.woocommerce-orders-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 768px) {
  table.woocommerce-orders-table,
  table.woocommerce-orders-table thead,
  table.woocommerce-orders-table tbody,
  table.woocommerce-orders-table th,
  table.woocommerce-orders-table td,
  table.woocommerce-orders-table tr {
    display: block;
  }
  table.woocommerce-orders-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  table.woocommerce-orders-table tr {
    border: 1px solid var(--cwt-border);
    border-radius: var(--cwt-radius-sm);
    margin-bottom: 16px;
    padding: 12px;
  }
  table.woocommerce-orders-table td {
    border: none;
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  table.woocommerce-orders-table td:last-child {
    border-bottom: none;
    margin-top: 6px;
  }
  table.woocommerce-orders-table td::before {
    content: attr(data-title);
    font-weight: 700;
    color: var(--cwt-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
  }
}

/* Account Details & Address Forms */
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 24px;
}

@media (min-width: 768px) {
  .woocommerce-EditAccountForm,
  .woocommerce-address-fields {
    padding: 32px;
  }
}

.woocommerce-EditAccountForm fieldset {
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-sm);
  padding: 20px;
  margin: 24px 0;
}

.woocommerce-EditAccountForm fieldset legend {
  font-weight: 700;
  font-size: 1rem;
  padding: 0 10px;
  color: var(--cwt-primary);
}

.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row {
  margin-bottom: 16px;
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cwt-dark);
}

[data-theme="dark"] .woocommerce-EditAccountForm label,
[data-theme="dark"] .woocommerce-address-fields label {
  color: #F8FAFC;
}

.woocommerce-EditAccountForm input.input-text,
.woocommerce-address-fields input.input-text,
.woocommerce-address-fields select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--cwt-radius-sm);
  border: 1px solid var(--cwt-border);
  background: var(--cwt-bg);
  color: var(--cwt-text);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.woocommerce-EditAccountForm input.input-text:focus,
.woocommerce-address-fields input.input-text:focus {
  border-color: var(--cwt-primary);
  box-shadow: 0 0 0 3px var(--cwt-primary-light);
}

/* ==========================================================================
   7. CUSTOMER ACCOUNT AUTHENTICATION (LOGIN, REGISTER, RECOVERY & SET PASS)
   ========================================================================== */
.cwt-auth-page-wrapper {
  position: relative;
  overflow: hidden;
  padding: 40px 0 80px;
}

.cwt-auth-ambient-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.cwt-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
  animation: cwtAuthOrbFloat 8s ease-in-out infinite alternate;
}

.cwt-glow-orb.orb-1 {
  top: -60px;
  left: 20%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #2563EB 0%, rgba(37, 99, 235, 0) 70%);
}

.cwt-glow-orb.orb-2 {
  bottom: 40px;
  right: 20%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #7C3AED 0%, rgba(124, 58, 237, 0) 70%);
  animation-delay: -4s;
}

[data-theme="dark"] .cwt-glow-orb {
  opacity: 0.28;
}

@keyframes cwtAuthOrbFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(30px) scale(1.08); }
}

.cwt-account-auth-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.cwt-account-auth-container.cwt-lost-password-container {
  max-width: 540px;
}

.cwt-auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.cwt-auth-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--cwt-primary);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--cwt-radius-full);
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.cwt-auth-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: cwtPulseDot 1.5s infinite;
}

@keyframes cwtPulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.cwt-auth-title {
  font-size: 2.35rem;
  font-weight: 900;
  margin: 0 0 12px 0;
  color: var(--cwt-dark);
  letter-spacing: -0.6px;
  line-height: 1.2;
}

[data-theme="dark"] .cwt-auth-title {
  color: #F8FAFC;
}

.cwt-auth-subtitle {
  color: var(--cwt-text-muted);
  font-size: 0.96rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.cwt-auth-main-wrapper {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

[data-theme="dark"] .cwt-auth-main-wrapper {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* Tabs Nav Switcher */
.cwt-auth-tabs-nav {
  display: flex;
  background: var(--cwt-bg);
  padding: 8px;
  gap: 8px;
  border-bottom: 1px solid var(--cwt-border);
}

[data-theme="dark"] .cwt-auth-tabs-nav {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.cwt-auth-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cwt-text-muted);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cwt-auth-tab-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}

.cwt-auth-tab-btn:hover {
  color: var(--cwt-dark);
  background: rgba(0, 0, 0, 0.03);
}

.cwt-auth-tab-btn:hover svg {
  transform: translateY(-1px);
}

[data-theme="dark"] .cwt-auth-tab-btn:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.04);
}

.cwt-auth-tab-btn.active {
  background: var(--cwt-card-bg);
  color: var(--cwt-primary);
  border-color: var(--cwt-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .cwt-auth-tab-btn.active {
  background: #1E293B;
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Auth Cards & Panes */
.cwt-auth-grid.has-tabs .cwt-auth-card {
  display: none;
}

.cwt-auth-grid.has-tabs .cwt-auth-card.active {
  display: flex;
  animation: cwtFadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cwtFadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cwt-auth-card {
  background: transparent;
  border: none;
  padding: 36px;
  display: flex;
  flex-direction: column;
}

.cwt-recovery-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .cwt-recovery-card {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.cwt-auth-card-title {
  font-size: 1.55rem;
  font-weight: 900;
  margin: 14px 0 6px 0;
  color: var(--cwt-dark);
  letter-spacing: -0.3px;
}

[data-theme="dark"] .cwt-auth-card-title {
  color: #F8FAFC;
}

.cwt-auth-card-desc {
  font-size: 0.9rem;
  color: var(--cwt-text-muted);
  margin: 0 0 24px 0;
  line-height: 1.55;
}

/* Input Wrappers & Icons */
.cwt-label-with-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cwt-label-with-link label {
  margin-bottom: 0 !important;
}

.cwt-inline-forgot-link {
  font-size: 0.82rem;
  color: var(--cwt-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cwt-inline-forgot-link:hover {
  text-decoration: underline;
}

.cwt-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.cwt-input-icon {
  position: absolute;
  left: 15px;
  color: var(--cwt-text-muted);
  display: flex;
  pointer-events: none;
  transition: color 0.2s ease;
}

.cwt-input-icon svg {
  width: 18px;
  height: 18px;
}

.cwt-input-icon-wrap .cwt-input {
  padding-left: 44px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-size: 0.94rem !important;
  height: 48px !important;
  border-radius: var(--cwt-radius-md) !important;
  border: 1px solid var(--cwt-border) !important;
  background: var(--cwt-bg) !important;
  color: var(--cwt-text) !important;
  transition: all 0.25s ease !important;
}

.cwt-input-icon-wrap:focus-within .cwt-input-icon {
  color: var(--cwt-primary);
}

.cwt-input-icon-wrap .cwt-input:focus {
  border-color: var(--cwt-primary) !important;
  box-shadow: 0 0 0 3px var(--cwt-primary-light) !important;
  background: var(--cwt-card-bg) !important;
}

[data-theme="dark"] .cwt-input-icon-wrap .cwt-input {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .cwt-input-icon-wrap .cwt-input:focus {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
  background: #1E293B !important;
}

.cwt-pass-input-wrap .cwt-input {
  padding-right: 46px !important;
}

.cwt-toggle-pass-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--cwt-text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--cwt-radius-sm);
  transition: all 0.2s ease;
}

.cwt-toggle-pass-btn:hover {
  color: var(--cwt-primary);
  background: rgba(37, 99, 235, 0.08);
}

.cwt-toggle-pass-btn.is-revealed {
  color: var(--cwt-primary);
}

.cwt-toggle-pass-btn svg {
  width: 18px;
  height: 18px;
}

/* Password Strength Meter */
.cwt-pass-meter-wrap {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cwt-pass-meter-bar {
  width: 100%;
  height: 5px;
  background: var(--cwt-border);
  border-radius: 9999px;
  overflow: hidden;
}

.cwt-pass-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.cwt-pass-meter-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cwt-text-muted);
  text-align: right;
  transition: color 0.3s ease;
}

.cwt-pass-meter-fill.weak { width: 25%; background: #EF4444; }
.cwt-pass-meter-label.weak { color: #EF4444; }

.cwt-pass-meter-fill.fair { width: 50%; background: #F59E0B; }
.cwt-pass-meter-label.fair { color: #F59E0B; }

.cwt-pass-meter-fill.strong { width: 75%; background: #10B981; }
.cwt-pass-meter-label.strong { color: #10B981; }

.cwt-pass-meter-fill.secure { width: 100%; background: #2563EB; }
.cwt-pass-meter-label.secure { color: #2563EB; }

[data-theme="dark"] .cwt-pass-meter-fill.secure { background: #38BDF8; }
[data-theme="dark"] .cwt-pass-meter-label.secure { color: #38BDF8; }

.cwt-form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}

.cwt-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cwt-text);
  cursor: pointer;
  user-select: none;
}

.cwt-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cwt-primary);
  border-radius: 4px;
  cursor: pointer;
}

.cwt-btn-glow {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.98rem;
  border-radius: var(--cwt-radius-md);
  padding: 14px 24px;
  letter-spacing: 0.2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cwt-btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

/* 1. Distinct Vibrant Color: Sign In Submit Button (Electric Royal Blue) */
.cwt-login-submit-btn,
button.woocommerce-form-login__submit {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.42) !important;
}

.cwt-login-submit-btn:hover,
button.woocommerce-form-login__submit:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%) !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6) !important;
  transform: translateY(-2px);
}

/* 2. Distinct Vibrant Color: Register Submit Button (Emerald Green Glow) */
.cwt-register-submit-btn,
button.woocommerce-form-register__submit {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.42) !important;
}

.cwt-register-submit-btn:hover,
button.woocommerce-form-register__submit:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6) !important;
  transform: translateY(-2px);
}

/* 3. Distinct Vibrant Color: Password Reset Button (Royal Purple Glow) */
.cwt-recovery-card .cwt-btn-glow {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.42) !important;
}

.cwt-recovery-card .cwt-btn-glow:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #5B21B6 100%) !important;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.6) !important;
  transform: translateY(-2px);
}

/* 4. Active Color Differentiation for Auth Tabs */
.cwt-auth-tab-btn[data-auth-target="login"].active {
  color: #2563EB !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

.cwt-auth-tab-btn[data-auth-target="register"].active {
  color: #10B981 !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

[data-theme="dark"] .cwt-auth-tab-btn[data-auth-target="login"].active {
  color: #38BDF8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

[data-theme="dark"] .cwt-auth-tab-btn[data-auth-target="register"].active {
  color: #34D399 !important;
  background: rgba(52, 211, 153, 0.12) !important;
  border-color: rgba(52, 211, 153, 0.3) !important;
}

.cwt-auto-pass-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px dashed rgba(37, 99, 235, 0.25);
  border-radius: var(--cwt-radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--cwt-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.cwt-auth-switch-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--cwt-text-muted);
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--cwt-border);
}

.cwt-switch-link {
  background: transparent;
  border: none;
  color: var(--cwt-primary);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cwt-switch-link:hover {
  text-decoration: underline;
  color: #1D4ED8;
}

[data-theme="dark"] .cwt-switch-link:hover {
  color: #38BDF8;
}

/* Recovery Notice Box */
.cwt-recovery-notice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 14px 18px;
  margin-top: 20px;
  box-shadow: var(--cwt-shadow-sm);
}

.cwt-recovery-notice-box svg {
  width: 22px;
  height: 22px;
  color: var(--cwt-primary);
  flex-shrink: 0;
}

.cwt-recovery-notice-box strong {
  display: block;
  font-size: 0.84rem;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-recovery-notice-box strong {
  color: #F8FAFC;
}

.cwt-recovery-notice-box span {
  display: block;
  font-size: 0.78rem;
  color: var(--cwt-text-muted);
}

/* Security Perks Row Under Auth Box */
.cwt-auth-perks-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .cwt-auth-perks-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cwt-auth-card,
  .cwt-recovery-card {
    padding: 24px 18px;
  }
  .cwt-auth-title {
    font-size: 1.85rem;
  }
}

.cwt-auth-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 14px 16px;
  box-shadow: var(--cwt-shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.cwt-auth-perk:hover {
  transform: translateY(-2px);
  border-color: var(--cwt-primary);
}

.cwt-perk-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--cwt-radius-sm);
  background: rgba(37, 99, 235, 0.1);
  color: var(--cwt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cwt-perk-icon svg {
  width: 19px;
  height: 19px;
}

.cwt-auth-perk strong {
  display: block;
  font-size: 0.86rem;
  color: var(--cwt-dark);
  margin-bottom: 2px;
}

[data-theme="dark"] .cwt-auth-perk strong {
  color: #F8FAFC;
}

.cwt-auth-perk span {
  display: block;
  font-size: 0.74rem;
  color: var(--cwt-text-muted);
}

/* --------------------------------------------------------------------------
   8. Thank You / Order Received (Instant Digital Delivery Page)
   -------------------------------------------------------------------------- */
.cwt-thankyou-page-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px 70px;
}

.cwt-order-status-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: var(--cwt-shadow-sm);
}

.cwt-order-status-card.success {
  border-top: 4px solid #10B981;
}

.cwt-order-status-card.error {
  border-top: 4px solid #EF4444;
}

.cwt-status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.cwt-status-icon.success {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}

.cwt-status-icon.error {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
}

.cwt-status-icon svg {
  width: 28px;
  height: 28px;
}

.cwt-order-status-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-order-status-card h2 {
  color: #F8FAFC;
}

.cwt-order-status-card p {
  font-size: 0.95rem;
  color: var(--cwt-text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* Instant Digital Downloads Box */
.cwt-thankyou-downloads-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 28px 24px;
  margin-bottom: 28px;
  box-shadow: var(--cwt-shadow-sm);
}

.cwt-thankyou-downloads-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 18px;
}

.cwt-downloads-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cwt-download-card {
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cwt-download-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--cwt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cwt-download-icon-box svg {
  width: 22px;
  height: 22px;
}

.cwt-download-details {
  flex: 1;
  min-width: 220px;
}

.cwt-download-prod-title {
  font-size: 0.98rem;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.cwt-download-prod-title a {
  color: var(--cwt-dark);
  text-decoration: none;
}

[data-theme="dark"] .cwt-download-prod-title a {
  color: #F8FAFC;
}

.cwt-download-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--cwt-text-muted);
}

.cwt-download-action .cwt-btn {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Order Meta Grid */
.cwt-thankyou-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .cwt-thankyou-meta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cwt-meta-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cwt-meta-label {
  font-size: 0.78rem;
  color: var(--cwt-text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.cwt-meta-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-meta-val {
  color: #F8FAFC;
}

.cwt-meta-val.primary {
  color: var(--cwt-primary);
}

/* Details & Bottom CTA */
.cwt-thankyou-details-card {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-lg);
  padding: 28px 24px;
  margin-bottom: 28px;
}

.cwt-thankyou-details-card .woocommerce-order-details__title,
.cwt-thankyou-details-card .woocommerce-customer-details__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cwt-thankyou-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   bKash Payment Gateway Styling
   -------------------------------------------------------------------------- */
.cwt-bkash-badge-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  vertical-align: middle;
}

.cwt-bkash-logo-text {
  background: #E2136E;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
/* --------------------------------------------------------------------------
   bKash Payment Gateway Styling (100% Responsive)
   -------------------------------------------------------------------------- */
.cwt-bkash-badge-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  vertical-align: middle;
}

.cwt-bkash-logo-text {
  background: #E2136E;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(226, 19, 110, 0.3);
}

.payment_method_cwt_bkash label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  cursor: pointer !important;
  flex-wrap: wrap !important;
}

.cwt-bkash-checkout-box {
  background: rgba(226, 19, 110, 0.03);
  border: 1px solid rgba(226, 19, 110, 0.18);
  border-radius: var(--cwt-radius-md);
  padding: 16px 18px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .cwt-bkash-checkout-box {
    padding: 12px 14px;
  }
}

.cwt-bkash-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(226, 19, 110, 0.2);
  flex-wrap: wrap;
}

.cwt-bkash-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cwt-bkash-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: #E2136E;
}

.cwt-bkash-instant-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 7px;
  border-radius: 9999px;
}

.cwt-bkash-instant-pill svg {
  width: 12px;
  height: 12px;
}

.cwt-bkash-instruction {
  font-size: 0.82rem;
  color: var(--cwt-text);
  margin-bottom: 12px;
  line-height: 1.45;
}

.cwt-bkash-direct-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 19, 110, 0.2);
  border-radius: var(--cwt-radius-sm);
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(226, 19, 110, 0.06);
}

[data-theme="dark"] .cwt-bkash-direct-notice {
  background: var(--cwt-card-bg);
}

.cwt-bkash-direct-icon {
  color: #E2136E;
  margin-top: 1px;
  flex-shrink: 0;
}

.cwt-bkash-direct-icon svg {
  width: 18px;
  height: 18px;
}

.cwt-bkash-direct-text strong {
  font-size: 0.85rem;
  color: #E2136E;
  display: block;
  margin-bottom: 3px;
}

.cwt-bkash-direct-text p {
  font-size: 0.8rem;
  color: var(--cwt-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Vertical List Layout with Thin Lines */
.cwt-bkash-steps-vertical-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cwt-bkash-vlist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226, 19, 110, 0.12);
}

.cwt-bkash-vlist-item:first-child {
  padding-top: 4px;
}

.cwt-bkash-vlist-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cwt-bkash-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(226, 19, 110, 0.12);
  color: #E2136E;
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.cwt-bkash-step-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cwt-bkash-step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cwt-dark);
}

[data-theme="dark"] .cwt-bkash-step-title {
  color: #F8FAFC;
}

.cwt-bkash-num-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 19, 110, 0.22);
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  margin-top: 2px;
}

[data-theme="dark"] .cwt-bkash-num-pill {
  background: var(--cwt-card-bg);
}

.cwt-bkash-num-text {
  font-family: var(--cwt-font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  color: #E2136E;
  letter-spacing: 0.5px;
}

.cwt-bkash-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(226, 19, 110, 0.1);
  color: #E2136E;
  padding: 1px 6px;
  border-radius: 4px;
}

.cwt-bkash-dial-note {
  font-size: 0.74rem;
  color: var(--cwt-text-muted);
  margin: 3px 0 0 0;
  line-height: 1.35;
}

.cwt-bkash-input-label {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: var(--cwt-dark) !important;
  margin: 0 0 4px 0 !important;
  display: block !important;
}

[data-theme="dark"] .cwt-bkash-input-label {
  color: #F8FAFC !important;
}

.cwt-bkash-input {
  height: 38px !important;
  font-size: 0.85rem !important;
  width: 100% !important;
  padding: 6px 12px !important;
  border-radius: var(--cwt-radius-sm) !important;
  border: 1px solid var(--cwt-border) !important;
  background: var(--cwt-card-bg) !important;
  color: var(--cwt-text) !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.cwt-bkash-input:focus {
  border-color: #E2136E !important;
  box-shadow: 0 0 0 2px rgba(226, 19, 110, 0.15) !important;
  outline: none !important;
}

.cwt-thankyou-bkash-summary {
  background: rgba(226, 19, 110, 0.05);
  border: 1px solid rgba(226, 19, 110, 0.2);
  border-radius: var(--cwt-radius-md);
  padding: 16px 20px;
  margin: 20px 0;
}

.cwt-thankyou-bkash-summary h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E2136E;
  font-size: 0.95rem;
  margin: 0 0 10px 0;
}

.cwt-bkash-order-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.cwt-badge-trx {
  background: #E2136E;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-family: monospace;
}

/* --------------------------------------------------------------------------
   Binance Pay Checkout Styling
   -------------------------------------------------------------------------- */
.cwt-binance-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #181A20;
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.cwt-binance-logo-text {
  color: #F0B90B;
  font-family: var(--cwt-font-heading, sans-serif);
}

.cwt-binance-pay-tag {
  background: #F0B90B;
  color: #181A20;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 900;
  margin-left: 2px;
}

.cwt-binance-crypto-tags {
  font-size: 0.65rem;
  color: #94A3B8;
  font-weight: 600;
}

.cwt-binance-checkout-box {
  background: #FFFFFF;
  border: 1px solid rgba(240, 185, 11, 0.35);
  border-radius: var(--cwt-radius-md);
  padding: 20px;
  margin-top: 14px;
  box-shadow: 0 4px 20px rgba(240, 185, 11, 0.08);
}

[data-theme="dark"] .cwt-binance-checkout-box {
  background: #181A20;
  border-color: rgba(240, 185, 11, 0.3);
}

.cwt-binance-header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(240, 185, 11, 0.2);
  margin-bottom: 14px;
}

.cwt-binance-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cwt-binance-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #181A20;
}

[data-theme="dark"] .cwt-binance-title {
  color: #F0B90B;
}

.cwt-binance-zero-fee-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(240, 185, 11, 0.15);
  color: #D97706;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--cwt-radius-full);
}

.cwt-binance-instruction {
  font-size: 0.85rem;
  color: var(--cwt-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cwt-binance-steps-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cwt-binance-step-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--cwt-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-sm);
}

[data-theme="dark"] .cwt-binance-step-card {
  background: #23272E;
}

.cwt-binance-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F0B90B;
  color: #181A20;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.cwt-binance-step-details {
  flex: 1;
}

.cwt-binance-step-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cwt-dark);
  display: block;
  margin-bottom: 8px;
}

[data-theme="dark"] .cwt-binance-step-heading {
  color: #F8FAFC;
}

.cwt-binance-pay-id-box {
  background: var(--cwt-card-bg);
  border: 1px solid var(--cwt-border);
  border-radius: var(--cwt-radius-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
}

.cwt-binance-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cwt-binance-id-label {
  font-size: 0.8rem;
  color: var(--cwt-text-muted);
}

.cwt-binance-id-val {
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 800;
  color: #F0B90B;
  background: #181A20;
  padding: 2px 8px;
  border-radius: 4px;
}

.cwt-binance-copy-btn {
  background: var(--cwt-primary);
  color: #FFFFFF;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
}

.cwt-binance-merchant-info {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--cwt-text-muted);
  flex-wrap: wrap;
}

.cwt-binance-app-guide {
  font-size: 0.75rem;
  color: var(--cwt-text-muted);
  margin: 0;
}

.cwt-binance-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cwt-dark);
  display: block;
  margin-bottom: 4px;
}

[data-theme="dark"] .cwt-binance-label {
  color: #F8FAFC;
}

.cwt-binance-input {
  width: 100% !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  border: 1px solid var(--cwt-border) !important;
  background: var(--cwt-card-bg) !important;
  color: var(--cwt-text) !important;
  font-size: 0.88rem !important;
}

.cwt-binance-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--cwt-text-muted);
  margin-top: 4px;
}

/* Thank You Page Binance Box */
.cwt-binance-thankyou-receipt {
  background: rgba(240, 185, 11, 0.06);
  border: 1px solid rgba(240, 185, 11, 0.3);
  border-radius: var(--cwt-radius-md);
  padding: 16px 20px;
  margin: 20px 0;
}

.cwt-binance-receipt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #D97706;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.cwt-binance-receipt-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.cwt-binance-receipt-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.cwt-binance-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cwt-binance-receipt-row .lbl {
  color: var(--cwt-text-muted);
}

.cwt-binance-receipt-row .val code {
  background: #181A20;
  color: #F0B90B;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

/* --------------------------------------------------------------------------
   Mobile Responsive Product Cards (Clean Mode: Image + Name + Price + Add to Cart)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* Hide ONLY version tag, review stars and hover overlays on mobile and tablet */
  .cwt-card-overlay-actions,
  .cwt-card-version-tag,
  .cwt-product-card .cwt-card-version-tag,
  .cwt-rating-wrap,
  .cwt-product-card .cwt-rating-wrap,
  .cwt-product-card .star-rating,
  .cwt-product-card .woocommerce-product-rating {
    display: none !important;
  }
  
  .cwt-card-meta-top {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 6px !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  
  .cwt-product-cat-name {
    display: block !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: #2563EB !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
  }
  
  .cwt-products-grid,
  ul.products {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .cwt-product-card {
    border-radius: 16px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    border: 1px solid var(--cwt-border) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  [data-theme="dark"] .cwt-product-card {
    background: #1E293B !important;
  }
  
  .cwt-product-thumb-wrap {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    max-height: none !important;
    background: #0F172A !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  .cwt-product-img,
  .cwt-product-thumb-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  
  .cwt-product-body {
    padding: 14px 16px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }
  
  /* 1. Product Name */
  .cwt-product-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    min-height: auto !important;
    margin: 0 0 12px 0 !important;
  }
  
  .cwt-product-title a {
    color: var(--cwt-dark) !important;
    text-decoration: none !important;
  }
  
  [data-theme="dark"] .cwt-product-title a {
    color: #F8FAFC !important;
  }
  
  /* 2. Price & 3. Add to Cart Footer (Stacked: Price on Top, Add to Cart Button Below) */
  .cwt-product-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding-top: 12px !important;
    margin-top: auto !important;
    border-top: 1px solid var(--cwt-border) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .cwt-product-price {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--cwt-dark) !important;
    width: 100% !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    margin: 0 auto !important;
  }
  
  .cwt-product-price del {
    font-size: 0.82rem !important;
  }
  
  .cwt-product-price ins {
    font-size: 1.05rem !important;
  }
  
  [data-theme="dark"] .cwt-product-price {
    color: #F8FAFC !important;
  }
  
  .cwt-product-cart-wrap {
    width: 100% !important;
    display: flex !important;
  }
  
  .cwt-product-cart-wrap .cwt-ajax-cart-btn,
  .cwt-product-cart-wrap a.button {
    width: 100% !important;
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border: none !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .cwt-product-card {
    border-radius: 14px !important;
  }
  .cwt-product-thumb-wrap {
    aspect-ratio: 16 / 10 !important;
    max-height: none !important;
  }
  .cwt-product-body {
    padding: 12px 14px 14px !important;
  }
  .cwt-product-title {
    font-size: 0.98rem !important;
    margin-bottom: 8px !important;
  }
  .cwt-product-price {
    font-size: 0.98rem !important;
  }
  .cwt-product-price del {
    font-size: 0.78rem !important;
  }
  .cwt-product-price ins {
    font-size: 0.98rem !important;
  }
  .cwt-product-cart-wrap .cwt-ajax-cart-btn,
  .cwt-product-cart-wrap a.button {
    padding: 9px 14px !important;
    font-size: 0.84rem !important;
    height: 38px !important;
  }
}

/* ==========================================================================
   Exclusive Modern Mobile App Layout for My Account (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
  /* 1. Header Banner & Profile */
  .cwt-account-page-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px 14px !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.06) 100%) !important;
  }
  .cwt-account-breadcrumbs {
    font-size: 0.72rem !important;
    margin-bottom: 2px !important;
  }
  .cwt-account-page-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin: 0 0 2px !important;
  }
  .cwt-account-page-sub {
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
  }
  .cwt-account-header-right {
    width: 100% !important;
    margin-top: 4px !important;
  }
  .cwt-account-logout-btn {
    width: 100% !important;
    height: 34px !important;
    font-size: 0.76rem !important;
    justify-content: center !important;
    border-radius: 8px !important;
  }

  /* 2. Vertical Account Navigation Card on Mobile */
  .cwt-account-nav,
  .woocommerce-MyAccount-navigation {
    padding: 0 !important;
    border-radius: 14px !important;
    background: var(--cwt-card-bg) !important;
    border: 1px solid var(--cwt-border) !important;
    box-shadow: var(--cwt-shadow-sm) !important;
    margin-bottom: 20px !important;
    overflow: hidden !important;
    width: 100% !important;
  }
  .cwt-account-menu {
    gap: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .cwt-account-menu li {
    border-bottom: 1px solid var(--cwt-border) !important;
    width: 100% !important;
  }
  .cwt-account-menu li:last-child {
    border-bottom: none !important;
  }
  .cwt-account-menu li a {
    padding: 12px 16px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    gap: 10px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cwt-account-menu li a .cwt-nav-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* 3. Welcome Profile Card */
  .cwt-account-welcome-card {
    padding: 14px 12px !important;
    border-radius: 14px !important;
    gap: 12px !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    margin-bottom: 16px !important;
  }
  .cwt-welcome-avatar img {
    width: 46px !important;
    height: 46px !important;
    border-width: 2px !important;
  }
  .cwt-welcome-title {
    font-size: 1.05rem !important;
    margin-bottom: 2px !important;
  }
  .cwt-welcome-desc {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }

  /* 4. Sleek 3-Column Mobile Metric Stats Grid */
  .cwt-account-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 18px !important;
  }
  .cwt-stat-card {
    padding: 10px 6px !important;
    border-radius: 12px !important;
    text-align: center !important;
    align-items: center !important;
  }
  .cwt-stat-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    margin-bottom: 4px !important;
  }
  .cwt-stat-icon svg {
    width: 14px !important;
    height: 14px !important;
  }
  .cwt-stat-number {
    font-size: 1.08rem !important;
    line-height: 1.1 !important;
  }
  .cwt-stat-label {
    font-size: 0.62rem !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
  }
  .cwt-stat-link {
    display: none !important;
  }

  /* 5. Shortcuts Grid */
  .cwt-dashboard-quick-links h3 {
    font-size: 0.95rem !important;
    margin-bottom: 10px !important;
  }
  .cwt-shortcuts-grid {
    gap: 8px !important;
  }
  .cwt-shortcut-btn {
    padding: 10px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 10px !important;
    gap: 8px !important;
  }
  .cwt-shortcut-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* 6. Account Details & Address Forms on Mobile */
  .woocommerce-EditAccountForm,
  .woocommerce-address-fields,
  .woocommerce-MyAccount-orders,
  .woocommerce-MyAccount-downloads {
    font-size: 0.82rem !important;
  }
  .woocommerce-EditAccountForm .form-row,
  .woocommerce-address-fields .form-row {
    margin-bottom: 12px !important;
  }
  .woocommerce-EditAccountForm input.input-text,
  .woocommerce-address-fields input.input-text {
    height: 38px !important;
    font-size: 0.80rem !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
  }
  .woocommerce-EditAccountForm button.woocommerce-Button,
  .woocommerce-address-fields button.button {
    height: 38px !important;
    font-size: 0.80rem !important;
    width: 100% !important;
    border-radius: 8px !important;
  }
}

/* ==========================================================================
   Exclusive Compact & Aesthetic Mobile Layout for Cart Page (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .cwt-cart-container {
    padding: 12px 10px 40px !important;
  }

  /* 1. Progress Steps Bar */
  .cwt-checkout-steps-bar {
    padding: 6px 10px !important;
    margin-bottom: 12px !important;
    gap: 4px !important;
    border-radius: 10px !important;
    justify-content: space-between !important;
  }
  .cwt-step-item {
    font-size: 0.68rem !important;
    gap: 4px !important;
  }
  .cwt-step-number {
    width: 18px !important;
    height: 18px !important;
    font-size: 0.62rem !important;
    border-width: 1.5px !important;
  }
  .cwt-step-divider {
    display: none !important;
  }

  /* 2. Cart Title & Subtitle */
  .cwt-cart-header {
    margin-bottom: 12px !important;
    text-align: left !important;
  }
  .cwt-cart-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
    letter-spacing: -0.3px !important;
  }
  .cwt-cart-subtitle {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }

  /* 3. Cart Items Card */
  .cwt-cart-grid {
    gap: 16px !important;
  }
  .cwt-cart-items-wrapper {
    border-radius: 12px !important;
  }
  .cwt-cart-list-header {
    padding: 9px 12px !important;
  }
  .cwt-cart-list-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
  }
  .cwt-cart-badge-icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 5px !important;
  }
  .cwt-cart-badge-icon svg {
    width: 12px !important;
    height: 12px !important;
  }
  .cwt-cart-list-header-right {
    font-size: 0.66rem !important;
    padding: 2px 6px !important;
  }

  /* 4. Compact Item Row */
  .cwt-cart-item-row {
    padding: 12px 10px !important;
    gap: 10px !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }
  .cwt-cart-item-thumb-box {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
  }
  .cwt-cart-thumb-link {
    width: 52px !important;
    height: 52px !important;
    border-radius: 8px !important;
  }
  .cwt-cart-item-info {
    flex: 1 1 calc(100% - 64px) !important;
    gap: 2px !important;
  }
  .cwt-cart-item-badges {
    gap: 4px !important;
    margin-bottom: 2px !important;
  }
  .cwt-cart-digital-pill,
  .cwt-cart-version-pill {
    font-size: 0.60rem !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
  }
  .cwt-cart-item-name {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
  }
  .cwt-cart-item-name a {
    font-size: 0.85rem !important;
  }
  .cwt-cart-item-license-meta {
    font-size: 0.68rem !important;
    margin-top: 1px !important;
  }
  .cwt-license-text svg {
    width: 10px !important;
    height: 10px !important;
  }

  /* Price and Remove Row (Split Bar) */
  .cwt-cart-item-right {
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 8px !important;
    margin-top: 4px !important;
    border-top: 1px dashed var(--cwt-border) !important;
  }
  .cwt-cart-subtotal-tag {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
  }
  .cwt-cart-remove-link,
  a.cwt-cart-remove-link.remove,
  .woocommerce a.cwt-cart-remove-link.remove {
    font-size: 0.70rem !important;
    padding: 3px 8px !important;
    border-radius: 5px !important;
    gap: 4px !important;
  }
  .cwt-cart-remove-link svg,
  a.cwt-cart-remove-link.remove svg {
    width: 11px !important;
    height: 11px !important;
  }

  /* 5. Coupon & Actions Bar */
  .cwt-cart-footer-bar {
    padding: 10px 10px !important;
    gap: 8px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .cwt-cart-coupon-box {
    width: 100% !important;
  }
  .cwt-coupon-input-group {
    width: 100% !important;
    height: 36px !important;
    padding: 2px 4px 2px 8px !important;
    border-radius: 8px !important;
  }
  .cwt-coupon-input-group input {
    font-size: 0.75rem !important;
    width: 100% !important;
  }
  .cwt-coupon-btn,
  button.button.cwt-coupon-btn[name="apply_coupon"] {
    height: 30px !important;
    font-size: 0.72rem !important;
    padding: 0 12px !important;
    border-radius: 6px !important;
  }
  .cwt-cart-update-btns {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 4px !important;
  }
  .cwt-btn-continue-shopping,
  .cwt-cart-update-btns a.cwt-btn-continue-shopping {
    height: 38px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 0 16px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    gap: 6px !important;
  }
  .cwt-btn-continue-shopping svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
  }
  .cwt-cart-update-btns .cwt-btn-primary,
  .cwt-cart-update-btns button[name="update_cart"],
  button.button[name="update_cart"] {
    height: 38px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 0 16px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    gap: 6px !important;
  }
  .cwt-cart-update-btns .cwt-btn-primary svg,
  button.button[name="update_cart"] svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
  }

  /* 6. Cart Totals Box */
  .woocommerce-cart .cart-collaterals .cart_totals,
  .cart-collaterals .cart_totals,
  .cart_totals {
    padding: 14px 12px !important;
    border-radius: 12px !important;
  }
  .cart_totals h2 {
    font-size: 0.98rem !important;
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
  }
  .cart_totals table.shop_table {
    margin: 0 0 14px 0 !important;
  }
  .cart_totals table.shop_table tr th,
  .cart_totals table.shop_table tr td {
    padding: 8px 0 !important;
    font-size: 0.80rem !important;
  }
  .cart_totals table.shop_table tr.order-total th {
    font-size: 0.88rem !important;
    padding-top: 10px !important;
  }
  .cart_totals table.shop_table tr.order-total td {
    font-size: 1.10rem !important;
    padding-top: 10px !important;
  }
  .wc-proceed-to-checkout .checkout-button,
  .wc-proceed-to-checkout a.button.alt {
    min-height: 42px !important;
    height: 42px !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    border-radius: 9px !important;
    padding: 10px 16px !important;
  }

  /* 7. Security Card */
  .cwt-cart-security-card {
    padding: 10px 12px !important;
    border-radius: 10px !important;
  }
  .cwt-security-title {
    font-size: 0.76rem !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }
  .cwt-security-list li {
    font-size: 0.68rem !important;
    gap: 5px !important;
  }
  .cwt-security-list li svg {
    width: 11px !important;
    height: 11px !important;
  }
}





