.custom-basket-modal .modal-dialog {
  max-height: 90vh;
  margin: 1.75rem auto;
}

.custom-basket-modal .modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background-color: #FFFFFF;
}

.custom-basket-modal .modal-header {
  background-color: #F8FAF8;
  border-color: #E2ECE5 !important;
  padding: 1rem 1.25rem;
}

.custom-basket-modal .cart-header-icon {
  width: 32px;
  height: 32px;
  background-color: #EAF4EE;
  color: #2D6A4F;
}

.custom-basket-modal .modal-title {
  color: #1B2E24;
  font-size: 1.15rem;
}

.custom-basket-modal .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #FFFFFF;
}

.custom-basket-modal .cart-item-row {
  background-color: #F2F6F3;
  border-color: #E2ECE5 !important;
  transition: background-color 0.2s ease;
}

.custom-basket-modal .cart-item-row:hover {
  background-color: #EAF4EE;
}

.custom-basket-modal .cart-item-title {
  color: #1B2E24;
  font-size: 0.95rem;
}

.custom-basket-modal .cart-summary-block {
  background-color: #F8FAF8;
  border: 1px solid #E2ECE5;
}

.custom-basket-modal .text-primary-custom {
  color: #2D6A4F !important;
}

.custom-basket-modal .text-secondary-custom {
  color: #5A7365 !important;
}

.custom-basket-modal .btn-primary-custom {
  background-color: #2D6A4F;
  border-color: #2D6A4F;
  color: #FFFFFF;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.custom-basket-modal .btn-primary-custom:hover,
.custom-basket-modal .btn-primary-custom:focus {
  background-color: #21513C;
  border-color: #21513C;
  color: #FFFFFF;
}

.custom-basket-modal .btn-outline-custom {
  background-color: transparent;
  border: 1px solid #CFDFD4;
  color: #1B2E24;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.custom-basket-modal .btn-outline-custom:hover,
.custom-basket-modal .btn-outline-custom:focus {
  background-color: #F2F6F3;
  border-color: #52B788;
  color: #2D6A4F;
}

.custom-basket-modal .cart-btn-remove {
  font-size: 1.25rem;
  line-height: 1;
  color: #E76F51 !important;
  text-decoration: none;
}

.custom-basket-modal .cart-btn-remove:hover {
  color: #d15637 !important;
}

@media (max-width: 576px) {
  .custom-basket-modal .modal-dialog {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
  }
  .custom-basket-modal .modal-content {
    max-height: calc(100vh - 1rem);
  }
  .custom-basket-modal .cart-item-row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem;
  }
  .custom-basket-modal .cart-item-row > div:last-child {
    width: 100%;
    justify-content: space-between;
  }
}