.asp-subscription-page {
  margin: 0 auto;
  font-family: "Sofia Sans", sans-serif;
}

.asp-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.asp-package {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e0e0e0;
  background-color: rgb(0 0 0 / 4%);
  border-radius: 8px;
  padding: 40px 16px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  min-height: 320px;
}

.asp-package:hover {
  transform: translateY(-5px);
}

.asp-package h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #333;
}

.asp-duration-selector {
  margin: 15px 0;
  gap: 10px;
  align-items: center;
}

.asp-category-btn[data-category="subscription"] {
  display: none;
}

.asp-category-btn {
  border: 1px solid #cccccc !important;
  border-radius: 4px !important;
  margin-right: 8px !important;
}

.asp-category-btn:hover {
  background-color: #000 !important;
  color: #fff !important;
}

.asp-category-btn.active {
  background-color: #000 !important;
  color: #fff !important;
}

.asp-duration-message {
  margin-bottom: 24px;
  padding: 10px;
  background-color: #00000005;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  color: #333;
  text-align: left;
}

.asp-duration-selector label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  text-align: left;
}

.asp-duration-select {
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background: #dcfffd;
  cursor: pointer;
  transition: border-color 0.3s;
}

.asp-duration-select:focus {
  border-color: #007cba;
  outline: none;
}

.asp-price-display {
  font-size: 18px;
  font-weight: bold;
  color: #007cba;
  margin: 10px 0;
}

.asp-buttons {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.asp-subscribe-btn {
  background-color: #fff !important;
  color: #000 !important;
  width: 100% !important;
  transition: background-color 0.3s !important;
  border-radius: 8px !important;
}

.asp-subscribe-btn.asp-selected {
  background-color: #000 !important;
  color: #fff !important;
  border: 1px solid #000 !important;
  transition: all 0.3s ease;
}

.asp-subscribe-btn:hover {
  background-color: #000 !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.asp-products-container {
  margin-top: 30px;
  padding: 20px;
  background: rgb(0, 0, 0 / 4%);
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

/* Filters styling */
.asp-filters {
  margin-bottom: 25px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.asp-filters h3 {
  margin: 0 0 15px;
  color: #333;
  font-size: 18px;
}

.filter-row {
  display: flex;
  gap: 15px;
  align-items: center;
}

.asp-filter-select {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.3s;
}

.asp-filter-select:focus {
  border-color: #007cba;
  outline: none;
}

/* Products grid */
.asp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.asp-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.asp-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.asp-item input[type="checkbox"] {
  margin-bottom: 10px;
  transform: scale(1.2);
}

.asp-item label {
  cursor: pointer;
  display: block;
}

.asp-item .product-info h4 {
  margin: 10px 0 5px;
  font-size: 14px;
  color: #333;
  line-height: 1.3;
}

.asp-item .product-info .price {
  color: #007cba;
  font-weight: bold;
  font-size: 13px;
}

.asp-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* Selection info */
.asp-selection-info {
  color: #555;
  font-size: 16px;
  margin: 15px 0;
  font-weight: 500;
}

.asp-selected-count {
  color: #007cba;
  font-weight: bold;
  margin: 10px 0;
  padding: 8px 15px;
  background: #e3f2fd;
  border-radius: 5px;
  border-left: 4px solid #007cba;
}

/* Delivery mode */
.asp-delivery-mode {
  margin: 25px 0;
  padding: 8px 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.asp-delivery-mode h3 {
  margin: 0 0 15px;
  color: #333;
}

.asp-delivery-mode label {
  display: block;
  padding: 4px 0;
  cursor: pointer;
  font-size: 15px;
}

.wd-quick-shop img {
  height: 280px !important;
  object-fit: contain;
}

.asp-delivery-mode input[type="radio"] {
  margin-right: 10px;
  transform: scale(1.1);
}

.asp-distribution-options {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f8f9fa;
}

.asp-distribution-options h4 {
  margin: 0 0 15px;
  color: #333;
}

.month-distribution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.month-item label {
  font-size: 14px;
  font-weight: 500;
}

.month-input {
  width: 60px;
  margin-left: 10px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.auto-distribute-btn {
  background-color: #000 !important;
  color: #fff !important;
  text-transform: inherit !important;
}

.auto-distribute-btn:hover {
  background-color: #333 !important;
}

/* Form actions */
.asp-form-actions {
  margin-top: 25px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.asp-form-actions input[type="submit"] {
  background: #28a745;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.asp-form-actions input[type="submit"]:hover:not(:disabled) {
  background: #218838;
}

.asp-form-actions input[type="submit"]:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.asp-cancel-btn {
  background: #6c757d;
  border-radius: 4px !important;
}

.asp-cancel-btn:hover {
  background: #5a6268;
}

/* Error and loading states */
.asp-error-message {
  background: #fdf2f2;
  color: #e74c3c;
  padding: 15px;
  border-radius: 4px;
  border-left: 4px solid #e74c3c;
  text-align: center;
  margin: 20px 0;
}

.asp-no-products {
  background: #fff3cd;
  color: #856404;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
  text-align: center;
  font-size: 16px;
}

.asp-loading {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #007cba;
}

/* Subscription management */
.asp-my-subscriptions table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.asp-my-subscriptions th,
.asp-my-subscriptions td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.asp-my-subscriptions th {
  background: #f8f9fa;
  font-weight: bold;
  color: #333;
}

.asp-product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.asp-product-list li {
  padding: 2px 0;
  font-size: 13px;
}

.asp-status {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
}

.asp-status-active {
  background: #d4edda;
  color: #155724;
}

.asp-status-pending_selection {
  background: #fff3cd;
  color: #856404;
}

.asp-status-expired {
  background: #f8d7da;
  color: #721c24;
}

.asp-info-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
  border-radius: 8px;
  justify-content: space-between;
}

.asp-info-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: 23%;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.asp-info-box img {
  border-radius: 4px !important;
}

.asp-description {
  font-size: 14px;
  color: #666;
  background-color: rgb(0 0 0 / 4%);
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 16px;
  margin: 20px 0;
  text-align: justify;
}

.asp-description h2 {
  margin-bottom: 8px;
}

.asp-description p {
  margin-bottom: 4px;
}

.asp-info-box h4 {
  font-size: 14px;

  margin: 10px 0;
  color: #333;
}

.asp-info-box p {
  font-size: 0.9em;
  color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
  .asp-info-box {
    width: 47%;
  }
  .asp-products-container {
    padding: 10px;
  }
  .asp-info-box {
    padding: 10px;
  }
  .asp-packages {
    grid-template-columns: 1fr;
  }
  .asp-info-box h4 {
    font-size: 12px;
    font-weight: 500;
  }

  .asp-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .filter-row {
    flex-direction: column;
    gap: 10px;
  }

  .asp-form-actions {
    flex-direction: column;
  }

  .month-distribution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .asp-my-subscriptions {
    overflow-x: auto;
  }

  .asp-my-subscriptions table {
    min-width: 800px;
  }
}

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

  .month-distribution-grid {
    grid-template-columns: 1fr;
  }
}
/* CSS qo'shish (style.css yoki plugin fayliga qo'shing) */
.asp-item {
  border: 1px solid #ddd;
  padding: 10px;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.asp-item.selected {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-color: #007cba;
}

.asp-item input[type="checkbox"] {
  display: none; /* Checkboxni yashirish, butun div bosilganda ishlaydi */
}

@media (min-width: 1200px) {
  .cart-content-wrapper > .cart_totals {
    flex-grow: 0.4 !important;
  }
}

/* Popup stil */
.asp-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.asp-popup {
  background: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  margin: 40px auto;
}

.asp-popup-close {
  margin-top: 10px;
  padding: 5px 10px;
  background: #007cba;
  color: white;
  border: none;
  cursor: pointer;
}

/* Item stil */
.asp-item {
  border: 1px solid #ddd;
  padding: 10px;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.asp-item.selected {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-color: #007cba;
}

.asp-item input[type="checkbox"] {
  display: none; /* Checkboxni yashirish, butun div bosilganda ishlaydi */
}

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

.asp-category-buttons {
  display: flex;
  gap: 4px; /* tugmalar orasida bo‘shliq */
  overflow-x: auto; /* gorizontal scroll */
  white-space: nowrap; /* tugmalar pastga tushib ketmasin */
  padding: 10px 0;
  scrollbar-width: thin; /* Firefox uchun */
}
.asp-category-buttons::-webkit-scrollbar {
  height: 6px; /* scroll balandligi */
}
.asp-category-buttons::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
.asp-category-btn {
  flex: 0 0 auto; /* tugma doim yonma-yon bo‘lsin */
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.asp-category-btn.active {
  background: #0073aa;
  color: #fff;
}

.tagbox {
  display: flex;
  gap: 40px;
  margin: 40px 0;
}

.tagimagebox {
  width: 30%;
  padding: 24px;
  border: 1px solid #333;
}

.tagimagebox img {
  height: 300px !important;
  object-fit: cover;
  width: 100%;
}

.tagcontent {
  width: 70%;
}

.boxwrapper {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: left;
}

.boxitem {
  width: calc(16% - 5px);
}

.boxcard {
  text-align: center;
  margin: 0 auto;
}

.card-img-top {
  border-radius: 50% !important;
}

.card-title {
  margin: 8px 0 0 0 !important;
}
