/* Extracted custom frontend CSS from PHP inline/style blocks. */

/* Product integration: brand badge, stock line, hidden legacy product UI */
.ahmed-brand-display {
  display: block;
  margin-bottom: 10px;
}

.ahmed-brand-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 8px;
}

.ahmed-brand-value {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.ahmed-single-stock-line {
  display: inline-block;
  margin: 2px 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.ahmed-single-stock-line.in {
  background: #dcfce7;
  color: #166534;
}

.ahmed-single-stock-line.out {
  background: #fee2e2;
  color: #b91c1c;
}

.single-product .summary .stock,
.single-product .summary .availability,
.single-product .summary .mfn-stock,
.single-product .summary .mfn-stock-status,
.single-product .woocommerce-tabs #tab-additional_information,
.single-product .woocommerce-product-attributes,
.single-product .shop_attributes,
.single-product div.product div.summary .product_meta,
.single-product .product_meta,
.single-product .woocommerce-product-details__short-description {
  display: none !important;
}

/* Product integration: hide Betheme selectors and expose custom swatches */
.single-product .mfn-variations-wrapper,
.single-product .mfn-variations-form,
.single-product .mfn-variations-wrapper *,
.single-product .mfn-variations-form *,
.single-product form.variations .variations select,
.single-product form.variations .value select,
.single-product form.variations .variations,
.single-product form.variations .variations tbody,
.single-product form.variations .variations tr,
.single-product form.variations .variations td,
.single-product form.variations .variations td.label,
.single-product form.variations .variations td.value,
.single-product table.variations select,
.single-product table.variations .label,
.single-product table.variations .value,
.single-product table.variations tbody,
.single-product table.variations tr,
.single-product .variations select[name*="attribute"],
.single-product .reset_variations,
.single-product .mfn-variations-wrapper select,
.single-product .mfn-variations-form select,
.single-product .mfn-variations-wrapper .mfn-variations-reset,
.single-product .mfn-variations-wrapper .mfn-variations-price,
.single-product .mfn-variations-wrapper .mfn-variations-select,
.single-product .mfn-variations-select,
.single-product .mfn-variations-label,
.single-product .mfn-variations-value,
.single-product .select2-container,
.single-product .select2-dropdown,
.single-product .select2-container--open,
.single-product .mfn-custom-select,
.single-product .mfn-variations-dropdown,
.single-product .mfn-variations-wrapper select2-container,
.single-product form.variations_form .variations select,
.single-product form.variations_form .variations tbody,
.single-product form.variations_form .variations tr,
.single-product form.variations_form .variations td,
.single-product .woocommerce-variation select,
.single-product .woocommerce-variation .variations td {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  z-index: -1 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}


.ahmed-betheme-swatches, 
body.single-product .ahmed-betheme-swatches, 
body.single-product div.ahmed-betheme-swatches
 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    margin:0;
    padding:0;
    background: transparent !important;
    border: none;
    border-radius: 0;
    box-shadow: unset;
}

.ahmed-color-swatches-container {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.selected-color-name {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

#ahmed_selected_variation,
.single-product .single_variation_wrap,
.single-product .single_variation {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* Shop filter inline rules moved from PHP */
.woocommerce .woocommerce-sidebar,
.woocommerce-page .woocommerce-sidebar {
  display: none !important;
}

.ahmed-filter-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}

/* Brands slider */
.elwan-brands-grid {
  display: flex;
  gap: 22px;
  overflow: auto;
  padding: 12px 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.elwan-brand-card {
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  scroll-snap-align: start;
  text-decoration: none !important;
}

.elwan-brand-logo {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.elwan-brand-logo img {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 70%;
}

.elwan-brand-name {
  color: #111;
  text-align: center;
  font-weight: 600;
}

.elwan-brands-grid::-webkit-scrollbar {
  height: 8px;
}

.elwan-brands-grid::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 8px;
}

.elwan-brand-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.elwan-brand-slider {
  display: flex;
  gap: 16px;
  width: 100%;
  overflow: hidden;
  direction: ltr;
  scroll-behavior: smooth;
}

.elwan-brand-slide {
  position: relative;
  min-width: 340px;
  height: 220px;
  overflow: hidden;
  border-radius: 14px;
  background: #eee;
  background-position: center;
  background-size: cover;
  direction: rtl;
  text-decoration: none !important;
}

.elwan-brand-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.elwan-brand-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px;
  color: #fff;
  text-align: center;
  direction: rtl;
}

.elwan-brand-logo-circle {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}

.elwan-brand-logo-circle img {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 70%;
}

.elwan-brand-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.elwan-brand-subtitle {
  font-size: 13px;
  opacity: 0.9;
}

.elwan-brand-arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 40px;
  text-align: center;
}

.elwan-brand-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.elwan-brand-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-direction: row-reverse;
}

.elwan-brand-heading-row .elwan-brand-actions {
  margin-top: 0;
  flex: 0 0 auto;
}

.elwan-brand-heading-row h1,
.elwan-brand-heading-row h2,
.elwan-brand-heading-row h3,
.elwan-brand-heading-row h4,
.elwan-brand-heading-row h5,
.elwan-brand-heading-row h6 {
  margin-bottom: 0;
}

.elwan-brand-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 10px 18px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #0b4f78;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.elwan-brand-view-all:hover {
  border-color: #0b4f78;
  background: #f8fbff;
}

@media (max-width: 767px) {
  .elwan-brand-heading-row {
    flex-wrap: wrap;
  }
}

/* Brands page */
.page-template-default .elwan-brands-page-wrap,
body.page .elwan-brands-page-wrap {
  padding: 60px 0;
  display: flex;
  gap: 20px;
}

.elwan-brands-filters {
  width: 260px;
  min-width: 260px;
  padding: 16px 14px 16px 0;
  border: 1px solid #d8d8d8;
  background: #fff;
}
ul.elwan-brands-filter-list {
    margin: 0 !important;
}

.elwan-brands-filters-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

ul.elwan-brands-filter-list {
  list-style: none;
}

.elwan-brands-filters-subtitle {
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 700;
}

.elwan-brands-filter-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.elwan-brands-filter-item {
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  color: #111827;
  font-size: 16px;
  line-height: 1.2;
}

.elwan-brands-filter-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #0b4f78;
}

.elwan-brands-page-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 16px;
  align-self: flex-start;
}

.elwan-brands-page-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  width: 100%;
  max-width: 170px;
  transition: transform 0.2s ease;
  text-decoration: none !important;
  align-self: start;
}

.elwan-brands-page-card:hover {
  transform: translateY(-3px);
}

.elwan-brands-page-logo {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #ececec;
  background: #fff;
}

.elwan-brands-page-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.elwan-brands-page-fallback {
  color: #1f2937;
  font-size: 20px;
  font-weight: 700;
}

.elwan-brands-page-name {
  margin-top: 8px;
  color: #161616;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.elwan-brands-empty {
  grid-column: 1 / -1;
  margin: 20px 0;
  color: #4b5563;
  text-align: center;
  font-size: 16px;
}

/* Account / register */
.woocommerce .woocommerce-form-register .elwan-register-name-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.woocommerce .woocommerce-form-register .elwan-register-name-row .form-row {
  float: none !important;
  width: calc(50% - 6px) !important;
  margin: 0 0 15px !important;
}

body.woocommerce-account:not(.logged-in) #Content {
  background-image: url("https://elwan.eg/wp-content/uploads/2025/08/Background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.woocommerce-account:not(.logged-in) #Content .section.the_content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.woocommerce-account:not(.logged-in) #Content .section.section-page-footer {
  display: none !important;
}

body.woocommerce-account:not(.logged-in) #Content .woocommerce {
  box-sizing: border-box;
  width: calc(100% - 30px);
  max-width: 521px;
  margin: 60px auto;
  padding: 30px 0 0;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff !important;
}

body.woocommerce-account:not(.logged-in) #Content .account-tabs {
  background: transparent !important;
}

/* Bundle product helper state */
.is-bundle-product-page {
  position: relative;
}

.single-product.is-bundle-product-page .summary p.price,
.single-product.is-bundle-product-page .summary .woocommerce-product-rating {
  display: none !important;
}

@media (max-width: 1200px) {
  .elwan-brands-page-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .elwan-brands-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 12px;
  }
}

@media (max-width: 768px) {
  .elwan-brand-slider-wrap {
    display: block;
  }

  .elwan-brand-slide {
    min-width: 100px;
    height: 140px;
    background: transparent !important;
  }
  .elwan-brand-title {
    font-size: 14px;
  }
  .elwan-brand-slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    scrollbar-width: none;
  }

  .elwan-brand-slider::-webkit-scrollbar {
    display: none;
  }

  .elwan-brand-slide.has-cover-image {
    background-image: none !important;
  }

  .elwan-brand-overlay {
    display: none !important;
  }

  .elwan-brand-center {
    color: #111 !important;
  }

  .elwan-brand-logo-circle {
    border: 1px solid #d1d5db;
  }
.elwan-brand-center {
 
    justify-content: flex-start;
}
  .elwan-brand-arrow {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .elwan-brands-page-wrap {
    flex-direction: column;
    gap: 14px;
  }

  .elwan-brands-filters {
    width: 100%;
    min-width: 0;
  }

  .elwan-brands-filters-title {
    font-size: 22px;
  }

  .elwan-brands-filters-subtitle {
    font-size: 16px;
  }

  .elwan-brands-filter-item {
    font-size: 18px;
  }

  .elwan-brands-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .elwan-brands-page-logo {
    height: 84px;
  }

  .elwan-brands-page-name {
    font-size: 15px;
  }

  .woocommerce .woocommerce-form-register .elwan-register-name-row {
    display: block;
  }

  .woocommerce .woocommerce-form-register .elwan-register-name-row .form-row {
    width: 100% !important;
  }
}

.elwan-brand-slide.has-cover-image {
  background-image: var(--elwan-brand-cover-image);
}

.custom-collections-grid {
  display: grid;
  grid-template-columns: repeat(var(--collection-cols, 1), minmax(0, 1fr));
}

.complementary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.complementary-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  font-size: 13px;
  transition: all 0.25s ease;
}

.complementary-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.complementary-item img {
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.complementary-item h4 {
  font-size: 14px;
  margin: 8px 0 4px;
}

.complementary-item p {
  font-size: 12px;
  line-height: 1.4;
  color: #777;
}

.complementary-item span {
  display: block;
  margin: 5px 0;
  font-size: 13px;
  font-weight: bold;
}

.complementary-item .button {
  width: 100%;
  margin-top: 6px;
  padding: 6px 10px;
  font-size: 12px;
}

.complementary-close {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  background: #ffb128 !important;
  transition: all 0.2s ease;
}

.complementary-close:hover {
  background: #ffb400;
  color: #fff;
  transform: scale(1.1);
}

.complementary-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 25px;
}

.complementary-content h3 {
  margin-bottom: 20px;
  color: #123b5d;
  font-size: 20px;
  text-align: center;
}

.complementary-item .price,
.complementary-item .woocommerce-Price-amount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

.complementary-item .woocommerce-Price-currencySymbol {
  display: inline;
  margin-left: 2px;
  font-size: 13px;
}

.complementary-item del {
  margin-right: 6px;
  color: #999;
}

.complementary-item ins {
  color: #123b5d;
  text-decoration: none;
}

.ahmed-bundle-purchase-cta {
  margin: 24px 0 18px;
}

.bundle-message.is-visible {
  display: block;
}

.bundle-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 2px solid #ffb128;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.bundle-products-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.bundle-product-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.bundle-product-item.main-product {
  border: 2px solid #123b5d;
  border-radius: 8px;
  padding: 10px;
}

.bundle-product-image {
  width: 100px;
  height: 100px;
}

.bundle-product-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.bundle-product-info {
  margin-top: 8px;
}

.bundle-product-name {
  display: block;
  max-width: 100px;
  overflow: hidden;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bundle-product-price {
  display: block;
  margin-top: 4px;
  color: #ffb128;
  font-size: 13px;
  font-weight: bold;
}

.bundle-plus {
  margin: 0 5px;
  color: #ffb128;
  font-size: 24px;
  font-weight: bold;
}

.bundle-summary {
  text-align: center;
  padding-top: 15px;
  border-top: 2px dashed #ddd;
}

.bundle-savings {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px auto;
  padding: 10px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  font-size: 14px;
  font-weight: bold;
}

.bundle-savings .savings-icon {
  font-size: 16px;
}

.bundle-desc {
  margin-bottom: 15px;
  color: #666;
  font-size: 14px;
}

.bundle-add-btn {
  background: linear-gradient(135deg, #ffb128 0%, #ff9500 100%) !important;
  color: #fff !important;
  padding: 16px 40px !important;
  border: none !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: bold !important;
  overflow: hidden !important;
  position: relative !important;
  transition: all 0.3s ease !important;
}

.bundle-add-btn:hover {
  background: linear-gradient(135deg, #ff9500 0%, #ffb128 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 177, 40, 0.4);
}

.bundle-add-btn:disabled,
.bundle-add-btn.loading {
  opacity: 0.7;
  cursor: not-allowed !important;
  transform: none !important;
}

.bundle-loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bundle-spin 0.8s linear infinite;
  vertical-align: middle;
}

.bundle-add-btn.loading .bundle-loading-spinner {
  display: inline-block;
}

.bundle-add-btn.loading .bundle-btn-text {
  opacity: 0.8;
}

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

.bundle-message {
  display: none;
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
}

.bundle-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.bundle-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.product_meta {
  display: none !important;
}

.has-bundle-product .summary p.price {
  display: none !important;
}

.bundle-cart-item {
  padding: 10px 0;
}

.bundle-cart-item.enhanced-bundle-display {
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 2px solid #ffb128;
  border-radius: 10px;
  padding: 15px;
  margin: 5px 0;
}

.bundle-cart-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bundle-cart-item-header img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.bundle-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bundle-cart-item .bundle-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffb128 0%, #ff9500 100%);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.bundle-cart-item .bundle-discount-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #28a745;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
}

.bundle-main-product-name {
  margin-bottom: 12px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.bundle-includes {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}

.bundle-includes-title {
  margin: 0 0 10px;
  color: #123b5d;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.bundle-products-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bundle-products-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 13px;
}

.bundle-products-list li:last-child {
  border-bottom: none;
}

.bundle-products-list li.bundle-main-product-item {
  margin-bottom: 6px;
  padding: 8px;
  border-radius: 4px;
  background: #f0f7ff;
}

.bundle-p-name {
  color: #333;
}

.bundle-p-name strong {
  margin-right: 4px;
  color: #123b5d;
}

.bundle-p-price {
  color: #ffb128;
  font-weight: 600;
}

.bundle-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid #ffb128;
}

.bundle-regular-total {
  color: #999;
  font-size: 13px;
}

.bundle-regular-total del {
  color: #dc3545;
  font-size: 15px;
}

.bundle-final-total {
  color: #28a745;
  font-size: 18px;
  font-weight: bold;
}

.bundle-final-total strong {
  color: #28a745;
  font-size: 20px;
}

.mfn-ch-product.bundle-product {
  border-bottom: 2px solid #ffb128 !important;
  padding-bottom: 15px !important;
  margin-bottom: 15px !important;
}

.mfn-ch-product.bundle-product .mfn-chp-info h6 {
  font-weight: 600;
}

.mfn-ch-product.bundle-product .bundle-includes {
  margin: 8px 0;
  padding: 8px;
  border-radius: 4px;
  background: #f5f5f5;
}

.mfn-ch-product.bundle-product .bundle-products-list li {
  padding: 2px 0;
  font-size: 11px;
}

.bundle-remove-notice {
  display: none;
}

.woocommerce-cart .bundle-cart-item.enhanced-bundle-display,
.woocommerce-checkout .bundle-cart-item.enhanced-bundle-display {
  margin: 10px 0;
  padding: 20px;
}

.woocommerce-cart .bundle-cart-item.enhanced-bundle-display .bundle-includes,
.woocommerce-checkout .bundle-cart-item.enhanced-bundle-display .bundle-includes {
  background: #fff;
}

.mfn-ch-content .bundle-cart-item {
  padding: 8px;
}

.mfn-ch-content .bundle-cart-item-header img {
  width: 50px;
  height: 50px;
}

.woocommerce-cart .ahmed-bundle-cart-column {
  display: flex;
  flex-direction: column;
}

.woocommerce-cart .ahmed-bundle-cart-line {
  min-height: 74px;
  display: flex;
  align-items: center;
}

.woocommerce-cart td.product-thumbnail .ahmed-bundle-cart-column {
  align-items: center;
}

.woocommerce-cart .ahmed-bundle-cart-line-set {
  font-weight: 600;
}

.woocommerce-cart .ahmed-bundle-cart-line-part {
  padding-top: 10px;
  margin-top: 10px;
}

.woocommerce-cart td.product-thumbnail .ahmed-bundle-cart-line img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.woocommerce-cart td.product-thumbnail .ahmed-bundle-cart-line > a,
.woocommerce-cart td.product-thumbnail .ahmed-bundle-cart-line > span {
  width: 54px;
  display: flex;
  justify-content: center;
}

.woocommerce-cart .ahmed-bundle-cart-column-name .ahmed-bundle-cart-line {
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.woocommerce-cart .ahmed-bundle-cart-part-title {
  color: #243446;
  font-size: 16px;
  line-height: 1.5;
}

.woocommerce-cart .ahmed-bundle-cart-part-meta {
  color: #7d8a98;
  font-size: 13px;
  margin-top: 4px;
}

.woocommerce-cart .ahmed-bundle-cart-column-price .ahmed-bundle-cart-line {
  color: #0073ff;
}

.woocommerce-cart .ahmed-bundle-cart-stock {
  color: #7d8a98;
  font-size: 9px;
  line-height: 1;
}

.woocommerce-cart .quantity .quantity-change .icon-minus:before,
.woocommerce-cart .quantity .quantity-change .icon-plus:before,
.woocommerce-cart .quantity .minus .icon-minus:before,
.woocommerce-cart .quantity .plus .icon-plus:before {
  margin-right: 0;
}

.woocommerce-checkout .ahmed-checkout-bundle-column {
  display: flex;
  flex-direction: column;
}

.woocommerce-checkout .ahmed-checkout-bundle-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.woocommerce-checkout .ahmed-checkout-bundle-line + .ahmed-checkout-bundle-line {
  margin-top: 10px;
  padding-top: 10px;
}

.woocommerce-checkout .ahmed-checkout-bundle-thumb {
  width: 54px;
  display: flex;
  justify-content: center;
  flex: 0 0 54px;
}

.woocommerce-checkout .ahmed-checkout-bundle-thumb img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.woocommerce-checkout .ahmed-checkout-bundle-content {
  display: flex;
  flex-direction: column;
}

.woocommerce-checkout .ahmed-checkout-bundle-title {
  color: #243446;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.woocommerce-checkout .ahmed-checkout-bundle-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #7d8a98;
  font-size: 13px;
  margin-top: 4px;
}

.woocommerce-checkout .ahmed-checkout-bundle-qty {
  margin-top: 8px;
}

.woocommerce-order .ahmed-order-bundle-column,
.woocommerce-view-order .ahmed-order-bundle-column {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.woocommerce-order .ahmed-order-bundle-line,
.woocommerce-view-order .ahmed-order-bundle-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.woocommerce-order .ahmed-order-bundle-line + .ahmed-order-bundle-line,
.woocommerce-view-order .ahmed-order-bundle-line + .ahmed-order-bundle-line {
  margin-top: 10px;
  padding-top: 10px;
}

.woocommerce-order .ahmed-order-bundle-thumb,
.woocommerce-view-order .ahmed-order-bundle-thumb {
  width: 54px;
  flex: 0 0 54px;
  display: flex;
  justify-content: center;
}

.woocommerce-order .ahmed-order-bundle-thumb img,
.woocommerce-view-order .ahmed-order-bundle-thumb img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  display: block;
}

.woocommerce-order .ahmed-order-bundle-content,
.woocommerce-view-order .ahmed-order-bundle-content {
  display: flex;
  flex-direction: column;
}

.woocommerce-order .ahmed-order-bundle-title,
.woocommerce-view-order .ahmed-order-bundle-title {
  color: #243446;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.woocommerce-order .ahmed-order-bundle-meta,
.woocommerce-view-order .ahmed-order-bundle-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #7d8a98;
  font-size: 13px;
  margin-top: 4px;
}

.woocommerce-checkout .elwan-id-verification {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #d7e3f0;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.woocommerce-checkout .elwan-id-verification.is-hidden {
  display: none;
}

.woocommerce-checkout .elwan-id-verification__header h3 {
  margin: 0 0 8px;
  color: #0b4d78;
  font-size: 24px;
  line-height: 1.2;
}

.woocommerce-checkout .elwan-id-verification__header p {
  margin: 0;
  color: #4a6278;
  font-size: 15px;
  line-height: 1.7;
}

.woocommerce-checkout .elwan-id-verification__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

.woocommerce-checkout .elwan-id-verification__fields .form-row {
  margin-bottom: 18px;
}

.woocommerce-checkout .elwan-id-verification__fields label {
  font-weight: 700;
}

.woocommerce-checkout .elwan-id-verification__fields input[type="text"],
.woocommerce-checkout .elwan-id-verification__fields input[type="file"] {
  border-radius: 14px;
  border-color: #c9d8e8;
  background: #fff;
}

.woocommerce-checkout .elwan-id-verification__help {
  display: block;
  margin-top: 8px;
  color: #8a4d16;
  font-size: 13px;
  line-height: 1.6;
}

.woocommerce-checkout .elwan-id-verification__upload-status {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.woocommerce-checkout .elwan-id-verification__upload-status.is-uploading {
  color: #0b4d78;
}

.woocommerce-checkout .elwan-id-verification__upload-status.is-success {
  color: #24724a;
}

.woocommerce-checkout .elwan-id-verification__upload-status.is-error {
  color: #b42318;
}

.woocommerce-checkout .elwan-id-verification__example {
  padding: 18px;
  border: 1px dashed #bfd0e4;
  border-radius: 18px;
  background: #fff;
}

.woocommerce-checkout .elwan-id-verification__example-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #0b4d78;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce-checkout .elwan-id-verification__preview {
  overflow: hidden;
  border-radius: 16px;
  background: #eef4fb;
  box-shadow: inset 0 0 0 1px #d7e3f0;
}

.woocommerce-checkout .elwan-id-verification__preview img {
  display: block;
  width: 100%;
  height: auto;
}

.woocommerce-checkout .elwan-id-verification__example-note {
  margin: 12px 0 0;
  color: #5a7086;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .woocommerce-checkout .elwan-id-verification {
    padding: 18px;
    border-radius: 16px;
  }

  .woocommerce-checkout .elwan-id-verification__layout {
    grid-template-columns: 1fr;
  }
}

.mfn-ch-content .bundle-products-list li {
  padding: 4px 0;
  font-size: 11px;
}

.mfn-ch-content .bundle-totals {
  margin-top: 8px;
  padding-top: 8px;
}

.bundle-mini-label {
  display: flex;
  gap: 6px;
  margin: 8px 0;
}

.bundle-mini-label .bundle-label {
  padding: 3px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffb128 0%, #ff9500 100%);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
}

.bundle-mini-label .bundle-discount-badge {
  padding: 3px 6px;
  border-radius: 4px;
  background: #28a745;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
}

.bundle-mini-includes {
  margin: 8px 0;
  padding: 8px;
  border-radius: 6px;
  background: #f8f9fa;
}

.bundle-mini-title {
  display: block;
  margin-bottom: 6px;
  color: #123b5d;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.bundle-mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bundle-mini-list li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed #ddd;
  font-size: 11px;
}

.bundle-mini-list li:last-child {
  border-bottom: none;
}

.bundle-mini-list li.bundle-main {
  margin-bottom: 4px;
  padding: 4px;
  border-radius: 4px;
  background: #e8f4ff;
  font-weight: 600;
}

.bundle-mini-list li span:last-child {
  color: #ffb128;
  font-weight: 600;
}

.bundle-mini-totals {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ddd;
}

.bundle-mini-regular {
  color: #999;
  font-size: 11px;
}

.bundle-mini-regular del {
  color: #dc3545;
}

.bundle-mini-final {
  color: #28a745;
  font-size: 14px;
  font-weight: bold;
}

.bundle-mini-final strong {
  font-size: 16px;
}

.bundle-product-notice {
  margin: 20px 0;
  padding: 20px;
  border: 2px solid #ffc107;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
}

.bundle-notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bundle-notice-header .bundle-icon {
  font-size: 28px;
}

.bundle-notice-header h3 {
  margin: 0;
  color: #856404;
  font-size: 18px;
}

.bundle-notice-text {
  margin-bottom: 20px;
  color: #856404;
  font-size: 14px;
}

.bundle-option-card {
  margin-bottom: 15px;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

.bundle-option-card:last-child {
  margin-bottom: 0;
}

.bundle-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bundle-label {
  padding: 4px 12px;
  border-radius: 20px;
  background: #123b5d;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.bundle-discount-badge {
  padding: 4px 10px;
  border-radius: 4px;
  background: #28a745;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.bundle-option-products {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.bundle-main-item {
  padding: 8px 12px;
  border-radius: 6px;
  background: #f8f9fa;
}

.bundle-main-item strong {
  display: block;
  color: #333;
  font-size: 13px;
}

.bundle-price {
  color: #ffb128;
  font-size: 14px;
  font-weight: bold;
}

.bundle-includes-text {
  color: #666;
  font-size: 13px;
}

.bundle-count {
  color: #123b5d;
  font-weight: bold;
}

.bundle-option-totals {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #ddd;
}

.bundle-final-price {
  color: #28a745;
  font-size: 24px;
  font-weight: bold;
}

.bundle-product-btn {
  width: 100%;
  background: linear-gradient(135deg, #ffb128 0%, #ff9500 100%) !important;
  color: #fff !important;
  padding: 14px 20px !important;
  border: none !important;
  border-radius: 25px !important;
  font-size: 15px !important;
  font-weight: bold !important;
}

.bundle-product-btn:hover {
  background: linear-gradient(135deg, #ff9500 0%, #ffb128 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 177, 40, 0.4);
}

.bundle-product-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed !important;
}

.elwan-myaccount-logo {
  margin: 0 0 20px;
  text-align: center;
}

.elwan-myaccount-logo-image {
  display: inline-block;
  max-width: 220px;
  height: auto;
}

@media (max-width: 768px) {
  .bundle-wrapper {
    padding: 15px;
  }

  .bundle-products-grid,
  .bundle-option-products {
    flex-direction: column;
  }

  .bundle-option-products {
    align-items: flex-start;
  }

  .bundle-plus {
    margin: 5px 0;
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .bundle-mini-includes {
    padding: 6px;
  }

  .bundle-mini-list li {
    font-size: 10px;
  }

  .bundle-mini-final {
    font-size: 13px;
  }

  .bundle-mini-final strong {
    font-size: 15px;
  }
}
.elwan-print {
    margin-top: 20px;
    text-align: center;
}
.elwan-print-link {
    display: inline-block;
    padding: 10px 20px;
    background: #8a6b2f;
    color: #fff !important;
    text-decoration: none;
    border-radius: 30px;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions {
    white-space: nowrap;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account td.woocommerce-orders-table__cell-order-actions .button {
    margin: 0 8px 8px 0;
}
